diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index b91fa381f..4dd9974f2 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -104,7 +104,7 @@ jobs:
- uses: actions/setup-java@v4
with:
distribution: temurin
- java-version: 11
+ java-version: 17
- run: java -version
- run: .kokoro/build.sh
env:
diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml
index ba965f65c..26ecb69da 100644
--- a/.github/workflows/unmanaged_dependency_check.yaml
+++ b/.github/workflows/unmanaged_dependency_check.yaml
@@ -17,7 +17,7 @@ jobs:
# repository
.kokoro/build.sh
- name: Unmanaged dependency check
- uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.45.1
+ uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.46.0
with:
# java-bigquery does not produce a BOM. Fortunately the root pom.xml
# defines google-cloud-bigquery in dependencyManagement section. So
diff --git a/.kokoro/build.sh b/.kokoro/build.sh
index 64f559885..084b07b25 100755
--- a/.kokoro/build.sh
+++ b/.kokoro/build.sh
@@ -52,7 +52,7 @@ test)
RETURN_CODE=$?
;;
lint)
- mvn com.coveo:fmt-maven-plugin:check -B -ntp
+ mvn com.spotify.fmt:fmt-maven-plugin:check -B -ntp
RETURN_CODE=$?
;;
javadoc)
@@ -75,11 +75,6 @@ graalvm)
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
RETURN_CODE=$?
;;
-graalvm17)
- # Run Unit and Integration Tests with Native Image
- mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
- RETURN_CODE=$?
- ;;
samples)
SAMPLES_DIR=samples
# only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise.
diff --git a/.kokoro/continuous/graalvm-native.cfg b/.kokoro/continuous/graalvm-native-a.cfg
similarity index 98%
rename from .kokoro/continuous/graalvm-native.cfg
rename to .kokoro/continuous/graalvm-native-a.cfg
index 9216250ef..6ae3c9e81 100644
--- a/.kokoro/continuous/graalvm-native.cfg
+++ b/.kokoro/continuous/graalvm-native-a.cfg
@@ -3,7 +3,7 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
- value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.45.1"
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.46.2"
}
env_vars: {
diff --git a/.kokoro/continuous/graalvm-native-17.cfg b/.kokoro/continuous/graalvm-native-b.cfg
similarity index 95%
rename from .kokoro/continuous/graalvm-native-17.cfg
rename to .kokoro/continuous/graalvm-native-b.cfg
index 7e3c1177d..821f86cca 100644
--- a/.kokoro/continuous/graalvm-native-17.cfg
+++ b/.kokoro/continuous/graalvm-native-b.cfg
@@ -3,12 +3,12 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
- value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.45.1"
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.46.2"
}
env_vars: {
key: "JOB_TYPE"
- value: "graalvm17"
+ value: "graalvm"
}
# TODO: remove this after we've migrated all tests and scripts
diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/continuous/graalvm-native-c.cfg
similarity index 90%
rename from .kokoro/presubmit/graalvm-native.cfg
rename to .kokoro/continuous/graalvm-native-c.cfg
index fb1979a33..16e3d4ca4 100644
--- a/.kokoro/presubmit/graalvm-native.cfg
+++ b/.kokoro/continuous/graalvm-native-c.cfg
@@ -3,7 +3,7 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
- value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.45.1"
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.46.2"
}
env_vars: {
@@ -31,3 +31,8 @@ env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "java-it-service-account"
}
+
+env_vars: {
+ key: "ENABLE_FLAKYBOT"
+ value: "true"
+}
\ No newline at end of file
diff --git a/.kokoro/nightly/graalvm-native-17.cfg b/.kokoro/nightly/graalvm-native-17.cfg
deleted file mode 100644
index 15ed86292..000000000
--- a/.kokoro/nightly/graalvm-native-17.cfg
+++ /dev/null
@@ -1,38 +0,0 @@
-# Format: //devtools/kokoro/config/proto/build.proto
-
-# Configure the docker image for kokoro-trampoline.
-env_vars: {
- key: "TRAMPOLINE_IMAGE"
- value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17"
-}
-
-env_vars: {
- key: "JOB_TYPE"
- value: "nightly-graalvm17"
-}
-
-# TODO: remove this after we've migrated all tests and scripts
-env_vars: {
- key: "GCLOUD_PROJECT"
- value: "gcloud-devel"
-}
-
-env_vars: {
- key: "GOOGLE_CLOUD_PROJECT"
- value: "gcloud-devel"
-}
-
-env_vars: {
- key: "ENABLE_FLAKYBOT"
- value: "true"
-}
-
-env_vars: {
- key: "GOOGLE_APPLICATION_CREDENTIALS"
- value: "secret_manager/java-it-service-account"
-}
-
-env_vars: {
- key: "SECRET_MANAGER_KEYS"
- value: "java-it-service-account"
-}
\ No newline at end of file
diff --git a/.kokoro/nightly/graalvm-native.cfg b/.kokoro/nightly/graalvm-native.cfg
deleted file mode 100644
index 57c1e3511..000000000
--- a/.kokoro/nightly/graalvm-native.cfg
+++ /dev/null
@@ -1,38 +0,0 @@
-# Format: //devtools/kokoro/config/proto/build.proto
-
-# Configure the docker image for kokoro-trampoline.
-env_vars: {
- key: "TRAMPOLINE_IMAGE"
- value: "gcr.io/cloud-devrel-kokoro-resources/graalvm"
-}
-
-env_vars: {
- key: "JOB_TYPE"
- value: "nightly-graalvm"
-}
-
-# TODO: remove this after we've migrated all tests and scripts
-env_vars: {
- key: "GCLOUD_PROJECT"
- value: "gcloud-devel"
-}
-
-env_vars: {
- key: "GOOGLE_CLOUD_PROJECT"
- value: "gcloud-devel"
-}
-
-env_vars: {
- key: "ENABLE_FLAKYBOT"
- value: "true"
-}
-
-env_vars: {
- key: "GOOGLE_APPLICATION_CREDENTIALS"
- value: "secret_manager/java-it-service-account"
-}
-
-env_vars: {
- key: "SECRET_MANAGER_KEYS"
- value: "java-it-service-account"
-}
diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg
deleted file mode 100644
index 2ea1a05e0..000000000
--- a/.kokoro/presubmit/graalvm-native-17.cfg
+++ /dev/null
@@ -1,33 +0,0 @@
-# Format: //devtools/kokoro/config/proto/build.proto
-
-# Configure the docker image for kokoro-trampoline.
-env_vars: {
- key: "TRAMPOLINE_IMAGE"
- value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.45.1""
-}
-
-env_vars: {
- key: "JOB_TYPE"
- value: "graalvm17"
-}
-
-# TODO: remove this after we've migrated all tests and scripts
-env_vars: {
- key: "GCLOUD_PROJECT"
- value: "gcloud-devel"
-}
-
-env_vars: {
- key: "GOOGLE_CLOUD_PROJECT"
- value: "gcloud-devel"
-}
-
-env_vars: {
- key: "GOOGLE_APPLICATION_CREDENTIALS"
- value: "secret_manager/java-it-service-account"
-}
-
-env_vars: {
- key: "SECRET_MANAGER_KEYS"
- value: "java-it-service-account"
-}
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a4937424c..a9100a72b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,18 @@
# Changelog
+## [2.49.1](https://github.com/googleapis/java-bigquery/compare/v2.49.0...v2.49.1) (2025-04-24)
+
+
+### Bug Fixes
+
+* Add labels to converter for listTables method ([#3735](https://github.com/googleapis/java-bigquery/issues/3735)) ([#3736](https://github.com/googleapis/java-bigquery/issues/3736)) ([8634822](https://github.com/googleapis/java-bigquery/commit/8634822e1836c5ccc0f8d0263ac57ac561578360))
+
+
+### Dependencies
+
+* Update dependency com.google.cloud:sdk-platform-java-config to v3.46.0 ([#3753](https://github.com/googleapis/java-bigquery/issues/3753)) ([a335927](https://github.com/googleapis/java-bigquery/commit/a335927e16d0907d62e584f08fa8393daae40354))
+* Update netty.version to v4.2.0.final ([#3745](https://github.com/googleapis/java-bigquery/issues/3745)) ([bb811c0](https://github.com/googleapis/java-bigquery/commit/bb811c068b3efabf04fbe67dbb2979d562c604d9))
+
## [2.49.0](https://github.com/googleapis/java-bigquery/compare/v2.48.1...v2.49.0) (2025-03-20)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 3c0b4987c..3581e19eb 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.49.0
+ 2.49.1
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index 77a502ab8..3b40c2e58 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -3,12 +3,12 @@
4.0.0
com.google.cloud
google-cloud-bigquery-bom
- 2.49.0
+ 2.49.1
pom
com.google.cloud
sdk-platform-java-config
- 3.45.1
+ 3.46.0
@@ -54,7 +54,7 @@
com.google.cloud
google-cloud-bigquery
- 2.49.0
+ 2.49.1
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 073a72c76..fd0f5903f 100644
--- a/google-cloud-bigquery/pom.xml
+++ b/google-cloud-bigquery/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-bigquery
- 2.49.0
+ 2.49.1
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,11 +11,11 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.49.0
+ 2.49.1
google-cloud-bigquery
- 4.1.119.Final
+ 4.2.0.Final
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Acl.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Acl.java
index e6a2a0b91..d52124092 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Acl.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Acl.java
@@ -92,7 +92,9 @@ public static Role valueOf(String constant) {
return type.valueOf(constant);
}
- /** @return Return the known values for Role. */
+ /**
+ * @return Return the known values for Role.
+ */
public static Role[] values() {
return type.values();
}
@@ -184,7 +186,9 @@ public DatasetAclEntity(DatasetId id, List targetTypes) {
this.targetTypes = targetTypes;
}
- /** @return Returns DatasetAclEntity's identity. */
+ /**
+ * @return Returns DatasetAclEntity's identity.
+ */
public DatasetId getId() {
return id;
}
@@ -240,7 +244,9 @@ public Domain(String domain) {
this.domain = domain;
}
- /** @return Returns the domain name. */
+ /**
+ * @return Returns the domain name.
+ */
public String getDomain() {
return domain;
}
@@ -348,22 +354,30 @@ Access toPb() {
}
}
- /** @return Returns a Group entity representing all project's owners. */
+ /**
+ * @return Returns a Group entity representing all project's owners.
+ */
public static Group ofProjectOwners() {
return new Group(PROJECT_OWNERS);
}
- /** @return Returns a Group entity representing all project's readers. */
+ /**
+ * @return Returns a Group entity representing all project's readers.
+ */
public static Group ofProjectReaders() {
return new Group(PROJECT_READERS);
}
- /** @return Returns a Group entity representing all project's writers. */
+ /**
+ * @return Returns a Group entity representing all project's writers.
+ */
public static Group ofProjectWriters() {
return new Group(PROJECT_WRITERS);
}
- /** @return Returns a Group entity representing all BigQuery authenticated users. */
+ /**
+ * @return Returns a Group entity representing all BigQuery authenticated users.
+ */
public static Group ofAllAuthenticatedUsers() {
return new Group(ALL_AUTHENTICATED_USERS);
}
@@ -385,7 +399,9 @@ public User(String email) {
this.email = email;
}
- /** @return Returns user's email. */
+ /**
+ * @return Returns user's email.
+ */
public String getEmail() {
return email;
}
@@ -437,7 +453,9 @@ public View(TableId id) {
this.id = id;
}
- /** @return Returns table's identity. */
+ /**
+ * @return Returns table's identity.
+ */
public TableId getId() {
return id;
}
@@ -489,7 +507,9 @@ public Routine(RoutineId id) {
this.id = id;
}
- /** @return Returns routine's identity. */
+ /**
+ * @return Returns routine's identity.
+ */
public RoutineId getId() {
return id;
}
@@ -537,7 +557,9 @@ public IamMember(String iamMember) {
this.iamMember = iamMember;
}
- /** @return Returns iamMember. */
+ /**
+ * @return Returns iamMember.
+ */
public String getIamMember() {
return iamMember;
}
@@ -574,16 +596,19 @@ Access toPb() {
public static final class Expr implements Serializable {
// Textual representation of an expression in Common Expression Language syntax.
private final String expression;
+
/**
* Optional. Title for the expression, i.e. a short string describing its purpose. This can be
* used e.g. in UIs which allow to enter the expression.
*/
private final String title;
+
/**
* Optional. Description of the expression. This is a longer text which describes the
* expression, e.g. when hovered over it in a UI.
*/
private final String description;
+
/**
* Optional. String indicating the location of the expression for error reporting, e.g. a file
* name and a position in the file.
@@ -713,16 +738,23 @@ private Acl(Entity entity, Role role, Expr condition) {
this.condition = condition;
}
- /** @return Returns the entity for this ACL. */
+ /**
+ * @return Returns the entity for this ACL.
+ */
public Entity getEntity() {
return entity;
}
- /** @return Returns the role specified by this ACL. */
+ /**
+ * @return Returns the role specified by this ACL.
+ */
public Role getRole() {
return role;
}
- /** @return Returns the condition specified by this ACL. */
+
+ /**
+ * @return Returns the condition specified by this ACL.
+ */
public Expr getCondition() {
return condition;
}
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java
index 3db8c88f7..8f8e45ad3 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java
@@ -1409,8 +1409,7 @@ public TableResult query(QueryJobConfiguration configuration, JobOption... optio
if (getOptions().isQueryPreviewEnabled()) {
configuration =
- configuration
- .toBuilder()
+ configuration.toBuilder()
.setJobCreationMode(JobCreationMode.JOB_CREATION_OPTIONAL)
.build();
}
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ConnectionImpl.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ConnectionImpl.java
index d524cedfc..eb3a32db7 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ConnectionImpl.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ConnectionImpl.java
@@ -135,6 +135,7 @@ private int getBufferSize() {
? 20000
: Math.min(connectionSettings.getNumBufferedRows() * 2, 100000));
}
+
/**
* Cancel method shutdowns the pageFetcher and producerWorker threads gracefully using interrupt.
* The pageFetcher threat will not request for any subsequent threads after interrupting and
@@ -263,6 +264,7 @@ private BigQueryResult getExecuteSelectResponse(
throw new BigQuerySQLException(e.getMessage(), e, e.getErrors());
}
}
+
/**
* Execute a SQL statement that returns a single ResultSet and returns a ListenableFuture to
* process the response asynchronously.
@@ -527,6 +529,7 @@ BigQueryResultStats getBigQueryResultSetStats(JobId jobId) {
queryStatistics.getSessionInfo() == null ? null : queryStatistics.getSessionInfo();
return new BigQueryResultStatsImpl(queryStatistics, sessionInfo);
}
+
/* This method processed the first page of GetQueryResultsResponse and then it uses tabledata.list */
@VisibleForTesting
BigQueryResult tableDataList(GetQueryResultsResponse firstPage, JobId jobId) {
@@ -1109,7 +1112,9 @@ private ArrowRowReader(ArrowSchema arrowSchema, Map arrowNameTo
loader = new VectorLoader(root);
}
- /** @param batch object returned from the ReadRowsResponse. */
+ /**
+ * @param batch object returned from the ReadRowsResponse.
+ */
private void processRows(
ArrowRecordBatch batch, BlockingQueue buffer, Schema schema)
throws IOException { // deserialize the values and consume the hash of the values
@@ -1166,6 +1171,7 @@ public void close() {
allocator.close();
}
}
+
/*Returns just the first page of GetQueryResultsResponse using the jobId*/
@VisibleForTesting
GetQueryResultsResponse getQueryResultsFirstPage(JobId jobId) {
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ConnectionProperty.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ConnectionProperty.java
index a6206712e..7abd36b41 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ConnectionProperty.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ConnectionProperty.java
@@ -55,7 +55,8 @@ public static final class Builder {
private String key;
private String value;
- private Builder() {};
+ private Builder() {}
+ ;
private Builder(ConnectionProperty properties) {
this.key = properties.key;
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ExternalTableDefinition.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ExternalTableDefinition.java
index 5af3085e2..ea4cceead 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ExternalTableDefinition.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ExternalTableDefinition.java
@@ -167,7 +167,8 @@ public Builder setFormatOptions(FormatOptions formatOptions) {
/** Sets the table Hive partitioning options. */
public Builder setHivePartitioningOptions(HivePartitioningOptions hivePartitioningOptions) {
return setHivePartitioningOptionsInner(hivePartitioningOptions);
- };
+ }
+ ;
/**
* When creating an external table, the user can provide a reference file with the table schema.
@@ -253,7 +254,8 @@ public Builder setMaxStaleness(String maxStaleness) {
@Nullable
public Boolean ignoreUnknownValues() {
return getIgnoreUnknownValues();
- };
+ }
+ ;
@Nullable
public abstract Boolean getIgnoreUnknownValues();
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/JobException.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/JobException.java
index 612affd31..0bfa2572a 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/JobException.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/JobException.java
@@ -34,6 +34,7 @@ public class JobException extends RuntimeException {
public JobId getId() {
return id;
}
+
/**
* The errors reported by the job.
*
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/JobStatistics.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/JobStatistics.java
index 407e25a8f..c78378ab5 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/JobStatistics.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/JobStatistics.java
@@ -1400,7 +1400,8 @@ public static class Builder {
private String name;
private Long slotMs;
- private Builder() {};
+ private Builder() {}
+ ;
Builder setName(String name) {
this.name = name;
@@ -1486,7 +1487,8 @@ public static class Builder {
private String transactionId;
- private Builder() {};
+ private Builder() {}
+ ;
Builder setTransactionId(String transactionId) {
this.transactionId = transactionId;
@@ -1557,7 +1559,8 @@ public static class Builder {
private String sessionId;
- private Builder() {};
+ private Builder() {}
+ ;
Builder setSessionId(String sessionId) {
this.sessionId = sessionId;
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/LegacySQLTypeName.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/LegacySQLTypeName.java
index dec2583e9..334e3290b 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/LegacySQLTypeName.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/LegacySQLTypeName.java
@@ -46,56 +46,70 @@ public LegacySQLTypeName apply(String constant) {
/** Variable-length binary data. */
public static final LegacySQLTypeName BYTES =
type.createAndRegister("BYTES").setStandardType(StandardSQLTypeName.BYTES);
+
/** Variable-length character (Unicode) data. */
public static final LegacySQLTypeName STRING =
type.createAndRegister("STRING").setStandardType(StandardSQLTypeName.STRING);
+
/** A 64-bit signed integer value. */
public static final LegacySQLTypeName INTEGER =
type.createAndRegister("INTEGER").setStandardType(StandardSQLTypeName.INT64);
+
/** A 64-bit IEEE binary floating-point value. */
public static final LegacySQLTypeName FLOAT =
type.createAndRegister("FLOAT").setStandardType(StandardSQLTypeName.FLOAT64);
+
/**
* A decimal value with 38 digits of precision and 9 digits of scale. Note, support for this type
* is limited in legacy SQL.
*/
public static final LegacySQLTypeName NUMERIC =
type.createAndRegister("NUMERIC").setStandardType(StandardSQLTypeName.NUMERIC);
+
/**
* A decimal value with 76+ digits of precision (the 77th digit is partial) and 38 digits of scale
*/
public static final LegacySQLTypeName BIGNUMERIC =
type.createAndRegister("BIGNUMERIC").setStandardType(StandardSQLTypeName.BIGNUMERIC);
+
/** A Boolean value (true or false). */
public static final LegacySQLTypeName BOOLEAN =
type.createAndRegister("BOOLEAN").setStandardType(StandardSQLTypeName.BOOL);
+
/** Represents an absolute point in time, with microsecond precision. */
public static final LegacySQLTypeName TIMESTAMP =
type.createAndRegister("TIMESTAMP").setStandardType(StandardSQLTypeName.TIMESTAMP);
+
/** Represents a logical calendar date. Note, support for this type is limited in legacy SQL. */
public static final LegacySQLTypeName DATE =
type.createAndRegister("DATE").setStandardType(StandardSQLTypeName.DATE);
+
/** Represents a set of geographic points, represented as a Well Known Text (WKT) string. */
public static final LegacySQLTypeName GEOGRAPHY =
type.createAndRegister("GEOGRAPHY").setStandardType(StandardSQLTypeName.GEOGRAPHY);
+
/**
* Represents a time, independent of a specific date, to microsecond precision. Note, support for
* this type is limited in legacy SQL.
*/
public static final LegacySQLTypeName TIME =
type.createAndRegister("TIME").setStandardType(StandardSQLTypeName.TIME);
+
/**
* Represents a year, month, day, hour, minute, second, and subsecond (microsecond precision).
* Note, support for this type is limited in legacy SQL.
*/
public static final LegacySQLTypeName DATETIME =
type.createAndRegister("DATETIME").setStandardType(StandardSQLTypeName.DATETIME);
+
/** A record type with a nested schema. */
public static final LegacySQLTypeName RECORD =
type.createAndRegister("RECORD").setStandardType(StandardSQLTypeName.STRUCT);
+
/** Represents JSON data */
public static final LegacySQLTypeName JSON =
type.createAndRegister("JSON").setStandardType(StandardSQLTypeName.JSON);
+
/** Represents duration or amount of time. */
public static final LegacySQLTypeName INTERVAL =
type.createAndRegister("INTERVAL").setStandardType(StandardSQLTypeName.INTERVAL);
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ParquetOptions.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ParquetOptions.java
index b150f3b06..cc85eeda6 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ParquetOptions.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ParquetOptions.java
@@ -79,6 +79,7 @@ public ParquetOptions build() {
return new ParquetOptions(this);
}
}
+
/** Returns a builder for the {@link ParquetOptions} object. */
public Builder toBuilder() {
return new Builder(this);
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/RoutineInfo.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/RoutineInfo.java
index 7cea99f93..646a2fdea 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/RoutineInfo.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/RoutineInfo.java
@@ -429,7 +429,8 @@ public String getBody() {
/** Returns the Remote function specific options. */
public RemoteFunctionOptions getRemoteFunctionOptions() {
return remoteFunctionOptions;
- };
+ }
+ ;
/** Returns the data governance type of the routine, e.g. DATA_MASKING. */
public String getDataGovernanceType() {
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/BigQueryRpc.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/BigQueryRpc.java
index 8b0a83531..bbde70dc5 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/BigQueryRpc.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/BigQueryRpc.java
@@ -234,6 +234,7 @@ Tuple> listModels(
Tuple> listRoutines(
String projectId, String datasetId, Map