From 2cbded6600af1de8ec15b04a2496733ad2b50c47 Mon Sep 17 00:00:00 2001
From: Farhan Ahmed
Date: Tue, 5 Sep 2023 11:12:14 -0400
Subject: [PATCH 001/393] fix: hide TableReference data struct (#2855)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* fix: hide TableReference data struct
* chore: add clirr ignored differences
* chore: organize imports
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Neenu1995
Co-authored-by: Owl Bot
---
.gitignore | 4 +++-
google-cloud-bigquery/clirr-ignored-differences.xml | 10 ++++++++++
.../google/cloud/bigquery/IndexUnusedReason.java | 13 ++++++-------
3 files changed, 19 insertions(+), 8 deletions(-)
diff --git a/.gitignore b/.gitignore
index 1c7a7e78f..c94c87d10 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,4 +10,6 @@ __pycache__
.new-list.txt
.org-list.txt
SimpleBenchmarkApp/src/main/java/com/google/cloud/App.java
-.flattened-pom.xml
\ No newline at end of file
+.flattened-pom.xml
+# Local Test files
+*ITLocalTest.java
\ No newline at end of file
diff --git a/google-cloud-bigquery/clirr-ignored-differences.xml b/google-cloud-bigquery/clirr-ignored-differences.xml
index 500ce3f58..41067bd21 100644
--- a/google-cloud-bigquery/clirr-ignored-differences.xml
+++ b/google-cloud-bigquery/clirr-ignored-differences.xml
@@ -94,4 +94,14 @@
com/google/cloud/bigquery/TableInfo*
*TableConstraints(*)
+
+ 7013
+ com/google/cloud/bigquery/IndexUnusedReason*
+ *BaseTableId(*)
+
+
+ 7002
+ com/google/cloud/bigquery/IndexUnusedReason*
+ *BaseTable(*)
+
\ No newline at end of file
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/IndexUnusedReason.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/IndexUnusedReason.java
index 06a88b068..bb4f0c3c3 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/IndexUnusedReason.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/IndexUnusedReason.java
@@ -16,7 +16,6 @@
package com.google.cloud.bigquery;
-import com.google.api.services.bigquery.model.TableReference;
import com.google.auto.value.AutoValue;
import java.io.Serializable;
import javax.annotation.Nullable;
@@ -52,9 +51,9 @@ public abstract static class Builder {
/**
* Specifies the base table involved in the reason that no search index was used.
*
- * @param tableReference tableReference or {@code null} for none
+ * @param baseTable baseTable or {@code null} for none
*/
- public abstract Builder setBaseTable(TableReference tableReference);
+ public abstract Builder setBaseTableId(TableId baseTable);
/** Creates a @code IndexUnusedReason} object. */
public abstract IndexUnusedReason build();
@@ -96,7 +95,7 @@ public static Builder newBuilder() {
* @return value or {@code null} for none
*/
@Nullable
- public abstract TableReference getBaseTable();
+ public abstract TableId getBaseTableId();
com.google.api.services.bigquery.model.IndexUnusedReason toPb() {
com.google.api.services.bigquery.model.IndexUnusedReason indexUnusedReason =
@@ -110,8 +109,8 @@ com.google.api.services.bigquery.model.IndexUnusedReason toPb() {
if (getMessage() != null) {
indexUnusedReason.setMessage(indexUnusedReason.getMessage());
}
- if (getBaseTable() != null) {
- indexUnusedReason.setBaseTable(indexUnusedReason.getBaseTable());
+ if (getBaseTableId() != null) {
+ indexUnusedReason.setBaseTable(getBaseTableId().toPb());
}
return indexUnusedReason;
}
@@ -129,7 +128,7 @@ static IndexUnusedReason fromPb(
builder.setMessage(indexUnusedReason.getMessage());
}
if (indexUnusedReason.getBaseTable() != null) {
- builder.setBaseTable(indexUnusedReason.getBaseTable());
+ builder.setBaseTableId(TableId.fromPb(indexUnusedReason.getBaseTable()));
}
return builder.build();
}
From ad9c63cafad1788c64129c4f34f85537a52252ee Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Tue, 5 Sep 2023 15:30:14 +0000
Subject: [PATCH 002/393] chore(main): release 2.31.2-SNAPSHOT (#2847)
:robot: I have created a release *beep* *boop*
---
### Updating meta-information for bleeding-edge SNAPSHOT release.
---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
---
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 733ba5ff9..1c145087e 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.31.1
+ 2.31.2-SNAPSHOT
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index c69138853..6ecec984f 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.31.1
+ 2.31.2-SNAPSHOT
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.31.1
+ 2.31.2-SNAPSHOT
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 90bf5b323..4c0060677 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.31.1
+ 2.31.2-SNAPSHOT
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.31.1
+ 2.31.2-SNAPSHOT
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index b8737a835..74ddf77a9 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.31.1
+ 2.31.2-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index 88118a350..dea3f2773 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.31.1:2.31.1
\ No newline at end of file
+google-cloud-bigquery:2.31.1:2.31.2-SNAPSHOT
\ No newline at end of file
From 989d9978f6a8e2a067bbe0e17c3ba935165cbf12 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Tue, 5 Sep 2023 11:51:10 -0400
Subject: [PATCH 003/393] chore(main): release 2.31.2 (#2864)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
CHANGELOG.md | 8 ++++++++
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
6 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index eb61c92ca..3c833f4b7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## [2.31.2](https://github.com/googleapis/java-bigquery/compare/v2.31.1...v2.31.2) (2023-09-05)
+
+
+### Bug Fixes
+
+* Hide TableReference data struct ([#2855](https://github.com/googleapis/java-bigquery/issues/2855)) ([2cbded6](https://github.com/googleapis/java-bigquery/commit/2cbded6600af1de8ec15b04a2496733ad2b50c47))
+* SearchStats IndexUnusedReasons null bug ([#2825](https://github.com/googleapis/java-bigquery/issues/2825)) ([309ea60](https://github.com/googleapis/java-bigquery/commit/309ea607a9ff50e59dc4e1069c689c1da9605ed5))
+
## [2.31.1](https://github.com/googleapis/java-bigquery/compare/v2.31.0...v2.31.1) (2023-08-09)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 1c145087e..dde17cb10 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.31.2-SNAPSHOT
+ 2.31.2
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 6ecec984f..5ec3e04a6 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.31.2-SNAPSHOT
+ 2.31.2
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.31.2-SNAPSHOT
+ 2.31.2
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 4c0060677..7628435f2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.31.2-SNAPSHOT
+ 2.31.2
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.31.2-SNAPSHOT
+ 2.31.2
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 74ddf77a9..c811b89f9 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.31.2-SNAPSHOT
+ 2.31.2
diff --git a/versions.txt b/versions.txt
index dea3f2773..c9aaacf02 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.31.1:2.31.2-SNAPSHOT
\ No newline at end of file
+google-cloud-bigquery:2.31.2:2.31.2
\ No newline at end of file
From 2294c2ffca62a22a66786a9a4c6c9ef1be898e5d Mon Sep 17 00:00:00 2001
From: Obada Alabbadi <76101898+obada-ab@users.noreply.github.com>
Date: Wed, 6 Sep 2023 15:14:13 +0200
Subject: [PATCH 004/393] feat: add support for converting interval fields to
threeten PeriodDuration (#2838)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Add support for converting BigQuery interval type to threeten PeriodDuration, information about the canonical interval form can be found [here](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#canonical_format_3). Parsing logic was referenced from [here](https://cloud.google.com/bigquery/docs/reference/standard-sql/interval_functions#extract).
Fixes #1849 ☕️
---
README.md | 6 +-
.../com/google/cloud/bigquery/FieldValue.java | 87 +++++++++++++++++++
.../google/cloud/bigquery/FieldValueTest.java | 38 ++++++++
.../cloud/bigquery/it/ITBigQueryTest.java | 3 +
4 files changed, 131 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index aceecda14..1665fb7d1 100644
--- a/README.md
+++ b/README.md
@@ -60,13 +60,13 @@ implementation 'com.google.cloud:google-cloud-bigquery'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigquery:2.31.1'
+implementation 'com.google.cloud:google-cloud-bigquery:2.31.2'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.31.1"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.31.2"
```
@@ -351,7 +351,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquery/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.31.1
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.31.2
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/FieldValue.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/FieldValue.java
index 58c012a60..ea68075f7 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/FieldValue.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/FieldValue.java
@@ -27,10 +27,16 @@
import java.io.Serializable;
import java.math.BigDecimal;
import java.math.RoundingMode;
+import java.time.Duration;
import java.time.Instant;
+import java.time.Period;
+import java.time.format.DateTimeParseException;
import java.util.List;
import java.util.Map;
import java.util.Objects;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+import org.threeten.extra.PeriodDuration;
/**
* Google BigQuery Table Field Value class. Objects of this class represent values of a BigQuery
@@ -237,6 +243,28 @@ public List getRepeatedValue() {
return (List) value;
}
+ /**
+ * Returns this field's value as a {@link org.threeten.extra.PeriodDuration}. This method should
+ * be used if the corresponding field has {@link StandardSQLTypeName#INTERVAL} type, or if it is a
+ * legal canonical format "[sign]Y-M [sign]D [sign]H:M:S[.F]", e.g. "123-7 -19 0:24:12.000006" or
+ * ISO 8601.
+ *
+ * @throws ClassCastException if the field is not a primitive type
+ * @throws NullPointerException if {@link #isNull()} returns {@code true}
+ * @throws IllegalArgumentException if the field cannot be converted to a legal interval
+ */
+ @SuppressWarnings("unchecked")
+ public PeriodDuration getPeriodDuration() {
+ checkNotNull(value);
+ try {
+ // Try parsing from ISO 8601
+ return PeriodDuration.parse(getStringValue());
+ } catch (DateTimeParseException dateTimeParseException) {
+ // Try parsing from canonical interval format
+ return parseCanonicalInterval(getStringValue());
+ }
+ }
+
/**
* Returns this field's value as a {@link FieldValueList} instance. This method should only be
* used if the corresponding field has {@link LegacySQLTypeName#RECORD} type (i.e. {@link
@@ -325,4 +353,63 @@ static FieldValue fromPb(Object cellPb, Field recordSchema) {
}
throw new IllegalArgumentException("Unexpected table cell format");
}
+
+ /**
+ * Parse interval in canonical format and create instance of {@code PeriodDuration}.
+ *
+ * The parameter {@code interval} should be an interval in the canonical format: "[sign]Y-M
+ * [sign]D [sign]H:M:S[.F]". More details
+ * here
+ *
+ * @throws IllegalArgumentException if the {@code interval} is not a valid interval
+ */
+ static PeriodDuration parseCanonicalInterval(String interval) throws IllegalArgumentException {
+ // Pattern is [sign]Y-M [sign]D [sign]H:M:S[.F]
+ Pattern pattern =
+ Pattern.compile(
+ "(?[+-])?(?\\d+)-(?\\d+) (?[-|+])?(?\\d+) (?[-|+])?(?\\d+):(?\\d+):(?\\d+)(\\.(?\\d+))?");
+ Matcher matcher = pattern.matcher(interval);
+ if (!matcher.find()) {
+ throw new IllegalArgumentException();
+ }
+ String sign1 = matcher.group("sign1");
+ String year = matcher.group("year");
+ String month = matcher.group("month");
+ String sign2 = matcher.group("sign2");
+ String day = matcher.group("day");
+ String sign3 = matcher.group("sign3");
+ String hours = matcher.group("hours");
+ String minutes = matcher.group("minutes");
+ String seconds = matcher.group("seconds");
+ String fraction = matcher.group("fraction");
+
+ int yearInt = Integer.parseInt(year);
+ int monthInt = Integer.parseInt(month);
+ if (Objects.equals(sign1, "-")) {
+ yearInt *= -1;
+ monthInt *= -1;
+ }
+
+ int dayInt = Integer.parseInt(day);
+ if (Objects.equals(sign2, "-")) {
+ dayInt *= -1;
+ }
+ if (sign3 == null) {
+ sign3 = "";
+ }
+
+ String durationString =
+ sign3
+ + "PT"
+ + hours
+ + "H"
+ + minutes
+ + "M"
+ + seconds
+ + (fraction == null ? "" : "." + fraction)
+ + "S";
+
+ return PeriodDuration.of(Period.of(yearInt, monthInt, dayInt), Duration.parse(durationString));
+ }
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldValueTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldValueTest.java
index e4ec47b47..90cb69061 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldValueTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldValueTest.java
@@ -27,8 +27,13 @@
import com.google.common.collect.ImmutableMap;
import com.google.common.io.BaseEncoding;
import java.math.BigDecimal;
+import java.time.Duration;
+import java.time.Period;
+import java.util.LinkedHashMap;
import java.util.Map;
+import java.util.Map.Entry;
import org.junit.Test;
+import org.threeten.extra.PeriodDuration;
public class FieldValueTest {
@@ -43,6 +48,10 @@ public class FieldValueTest {
ImmutableMap.of("v", "123456789.123456789");
private static final Map STRING_FIELD = ImmutableMap.of("v", "string");
private static final Map TIMESTAMP_FIELD = ImmutableMap.of("v", "42");
+ private static final Map INTERVAL_FIELD_1 =
+ ImmutableMap.of("v", "P3Y2M1DT12H34M56.789S");
+ private static final Map INTERVAL_FIELD_2 =
+ ImmutableMap.of("v", "3-2 1 12:34:56.789");
private static final Map BYTES_FIELD = ImmutableMap.of("v", BYTES_BASE64);
private static final Map NULL_FIELD =
ImmutableMap.of("v", Data.nullOf(String.class));
@@ -74,6 +83,17 @@ public void testFromPb() {
value = FieldValue.fromPb(TIMESTAMP_FIELD);
assertEquals(FieldValue.Attribute.PRIMITIVE, value.getAttribute());
assertEquals(42000000, value.getTimestampValue());
+ value = FieldValue.fromPb(INTERVAL_FIELD_1);
+ assertEquals(FieldValue.Attribute.PRIMITIVE, value.getAttribute());
+ PeriodDuration periodDuration =
+ PeriodDuration.of(Period.of(3, 2, 1), Duration.parse("PT12H34M56.789S"));
+ assertEquals(periodDuration, value.getPeriodDuration());
+ assertEquals("P3Y2M1DT12H34M56.789S", value.getStringValue());
+ value = FieldValue.fromPb(INTERVAL_FIELD_2);
+ assertEquals(FieldValue.Attribute.PRIMITIVE, value.getAttribute());
+ periodDuration = PeriodDuration.of(Period.of(3, 2, 1), Duration.parse("PT12H34M56.789S"));
+ assertEquals(periodDuration, value.getPeriodDuration());
+ assertEquals("3-2 1 12:34:56.789", value.getStringValue());
value = FieldValue.fromPb(BYTES_FIELD);
assertEquals(FieldValue.Attribute.PRIMITIVE, value.getAttribute());
assertArrayEquals(BYTES, value.getBytesValue());
@@ -146,4 +166,22 @@ public void testEquals() {
assertEquals(recordValue, FieldValue.fromPb(RECORD_FIELD));
assertEquals(recordValue.hashCode(), FieldValue.fromPb(RECORD_FIELD).hashCode());
}
+
+ @Test
+ public void testParseCanonicalInterval() {
+ Map intervalToPeriodDuration = new LinkedHashMap<>();
+ intervalToPeriodDuration.put(
+ "125-7 -19 -0:24:12.001", PeriodDuration.parse("P125Y7M-19DT0H-24M-12.001S"));
+ intervalToPeriodDuration.put("-15-6 23 23:14:05", PeriodDuration.parse("P-15Y-6M23DT23H14M5S"));
+ intervalToPeriodDuration.put(
+ "06-01 06 01:01:00.123456", PeriodDuration.parse("P6Y1M6DT1H1M0.123456S"));
+ intervalToPeriodDuration.put("-0-0 -0 -0:0:0", PeriodDuration.parse("P0Y0M0DT0H0M0S"));
+ intervalToPeriodDuration.put(
+ "-99999-99999 9999 999:999:999.999999999",
+ PeriodDuration.parse("P-99999Y-99999M9999DT999H999M999.999999999S"));
+ for (Entry entry : intervalToPeriodDuration.entrySet()) {
+ assertEquals(FieldValue.parseCanonicalInterval(entry.getKey()), entry.getValue());
+ System.out.println(FieldValue.parseCanonicalInterval(entry.getKey()));
+ }
+ }
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
index bb9c233a4..cf180f9a3 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
@@ -1228,8 +1228,11 @@ public void testIntervalType() throws InterruptedException {
.build();
TableResult result = bigquery.query(queryJobConfiguration);
assertNotNull(result.getJobId());
+ PeriodDuration periodDuration =
+ PeriodDuration.of(Period.of(125, 7, -19), java.time.Duration.parse("PT24M12.000006S"));
for (FieldValueList values : result.iterateAll()) {
assertEquals("125-7 -19 0:24:12.000006", values.get(0).getValue());
+ assertEquals(periodDuration, values.get(0).getPeriodDuration());
}
} finally {
assertTrue(bigquery.delete(tableId));
From f24439b7adf1f08cee4b65918b4395861fe88517 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 12 Sep 2023 00:57:51 +0200
Subject: [PATCH 005/393] deps: update dependency
com.google.cloud:google-cloud-shared-dependencies to v3.15.0 (#2870)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 7628435f2..508962ae5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,7 +55,7 @@
github
google-cloud-bigquery-parent
v2-rev20230805-2.0.0
- 3.14.0
+ 3.15.0
12.0.1
From edd714129b65d73f894591c4d40e1a8e79c36b04 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 12 Sep 2023 00:58:12 +0200
Subject: [PATCH 006/393] deps: update dependency
org.graalvm.buildtools:native-maven-plugin to v0.9.26 (#2869)
---
samples/native-image-sample/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index 186ea50ab..e3307285d 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -121,7 +121,7 @@
org.graalvm.buildtools
native-maven-plugin
- 0.9.24
+ 0.9.26
true
com.example.bigquery.NativeImageBigquerySample
From d01031cbc6d50f9aff8c6d49a8d2c54496779451 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 12 Sep 2023 00:58:28 +0200
Subject: [PATCH 007/393] deps: update dependency
org.graalvm.buildtools:junit-platform-native to v0.9.26 (#2868)
---
samples/native-image-sample/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index e3307285d..7f18e0025 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -99,7 +99,7 @@
org.graalvm.buildtools
junit-platform-native
- 0.9.24
+ 0.9.26
test
From cbbf0fb8a99c0633335d81cd36a7b53dfe9df20b Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 12 Sep 2023 00:58:49 +0200
Subject: [PATCH 008/393] deps: update actions/upload-artifact action to v3.1.3
(#2867)
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index fa10a2473..4eab67ad5 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -59,7 +59,7 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
+ uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: SARIF file
path: results.sarif
From 7772c2adf04f3662055921e53b5599db52f7576c Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Mon, 11 Sep 2023 18:59:11 -0400
Subject: [PATCH 009/393] chore: for Java repos RenovateBot to ignore GitHub
Actions workflow file (#1855) (#2866)
chore: for Java repos RenovateBot to ignore GitHub Actions workflow file
The actions used in the GitHub Actions workflow files do not appear in libraries' dependencies and mostly maintained by Java postprocessor templates.
IgnorePath option document: https://docs.renovatebot.com/configuration-options/
Source-Link: https://github.com/googleapis/synthtool/commit/1543029c843989702adbe789acdead153ad696d1
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:88ba8dcc5c2c7792e1c3511381f4ab329002a1c42c512f66ca87ced572dfbf9f
Co-authored-by: Owl Bot
---
.github/.OwlBot.lock.yaml | 4 ++--
.kokoro/requirements.txt | 9 ++++-----
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index d5500ef44..52eaa54d8 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,5 +13,5 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
- digest: sha256:46d2d262cd285c638656c8bde468011b723dc0c7ffd6a5ecc2650fe639c82e8f
-# created: 2023-07-24T14:21:17.707234503Z
+ digest: sha256:88ba8dcc5c2c7792e1c3511381f4ab329002a1c42c512f66ca87ced572dfbf9f
+# created: 2023-09-05T18:54:42.225408832Z
diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt
index 32989051e..a73256ab8 100644
--- a/.kokoro/requirements.txt
+++ b/.kokoro/requirements.txt
@@ -12,9 +12,9 @@ cachetools==5.3.1 \
--hash=sha256:95ef631eeaea14ba2e36f06437f36463aac3a096799e876ee55e5cdccb102590 \
--hash=sha256:dce83f2d9b4e1f732a8cd44af8e8fab2dbe46201467fc98b3ef8f269092bf62b
# via google-auth
-certifi==2023.5.7 \
- --hash=sha256:0f0d56dc5a6ad56fd4ba36484d6cc34451e1c6548c61daad8c320169f91eddc7 \
- --hash=sha256:c6c2e98f5c7869efca1f8916fed228dd91539f9f1b444c314c06eef02980c716
+certifi==2023.7.22 \
+ --hash=sha256:539cc1d13202e33ca466e88b2807e29f4c13049d6d87031a3c110744495cb082 \
+ --hash=sha256:92d6037539857d8206b8f6ae472e8b77db8058fec5937a1ef3f54304089edbb9
# via requests
cffi==1.15.1 \
--hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \
@@ -485,6 +485,5 @@ zipp==3.16.1 \
# via importlib-metadata
# WARNING: The following packages were not pinned, but pip requires them to be
-# pinned when the requirements file includes hashes and the requirement is not
-# satisfied by a package already installed. Consider using the --allow-unsafe flag.
+# pinned when the requirements file includes hashes. Consider using the --allow-unsafe flag.
# setuptools
From bbb86fd8488ad253f2e9cf3fb08360330bd860a3 Mon Sep 17 00:00:00 2001
From: Obada Alabbadi <76101898+obada-ab@users.noreply.github.com>
Date: Wed, 13 Sep 2023 19:04:15 +0200
Subject: [PATCH 010/393] feat: add support for ExternalDatasetReference
(#2871)
API: https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets#externaldatasetreference
---
.../clirr-ignored-differences.xml | 5 ++
.../com/google/cloud/bigquery/Dataset.java | 6 ++
.../google/cloud/bigquery/DatasetInfo.java | 33 ++++++++
.../bigquery/ExternalDatasetReference.java | 79 +++++++++++++++++++
.../cloud/bigquery/DatasetInfoTest.java | 39 +++++++++
.../google/cloud/bigquery/DatasetTest.java | 31 ++++++++
.../ExternalDatasetReferenceTest.java | 70 ++++++++++++++++
pom.xml | 2 +-
8 files changed, 264 insertions(+), 1 deletion(-)
create mode 100644 google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ExternalDatasetReference.java
create mode 100644 google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/ExternalDatasetReferenceTest.java
diff --git a/google-cloud-bigquery/clirr-ignored-differences.xml b/google-cloud-bigquery/clirr-ignored-differences.xml
index 41067bd21..eaeeded13 100644
--- a/google-cloud-bigquery/clirr-ignored-differences.xml
+++ b/google-cloud-bigquery/clirr-ignored-differences.xml
@@ -104,4 +104,9 @@
com/google/cloud/bigquery/IndexUnusedReason*
*BaseTable(*)
+
+ 7013
+ com/google/cloud/bigquery/DatasetInfo*
+ *setExternalDatasetReference(*)
+
\ No newline at end of file
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Dataset.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Dataset.java
index 5f9fea892..3ed4b8928 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Dataset.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Dataset.java
@@ -152,6 +152,12 @@ public Builder setDefaultCollation(String defaultCollation) {
return this;
}
+ @Override
+ public Builder setExternalDatasetReference(ExternalDatasetReference externalDatasetReference) {
+ infoBuilder.setExternalDatasetReference(externalDatasetReference);
+ return this;
+ }
+
@Override
public Dataset build() {
return new Dataset(bigquery, infoBuilder);
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/DatasetInfo.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/DatasetInfo.java
index bd209952e..44583e0c8 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/DatasetInfo.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/DatasetInfo.java
@@ -73,6 +73,7 @@ public Dataset apply(DatasetInfo datasetInfo) {
private final EncryptionConfiguration defaultEncryptionConfiguration;
private final Long defaultPartitionExpirationMs;
private final String defaultCollation;
+ private final ExternalDatasetReference externalDatasetReference;
/** A builder for {@code DatasetInfo} objects. */
public abstract static class Builder {
@@ -127,6 +128,13 @@ public abstract static class Builder {
public abstract Builder setLabels(Map labels);
+ /**
+ * Optional. Information about the external metadata storage where the dataset is defined.
+ * Filled out when the dataset type is EXTERNAL
+ */
+ public abstract Builder setExternalDatasetReference(
+ ExternalDatasetReference externalDatasetReference);
+
/**
* The default encryption key for all tables in the dataset. Once this property is set, all
* newly-created partitioned tables in the dataset will have encryption key set to this value,
@@ -183,6 +191,7 @@ static final class BuilderImpl extends Builder {
private EncryptionConfiguration defaultEncryptionConfiguration;
private Long defaultPartitionExpirationMs;
private String defaultCollation;
+ private ExternalDatasetReference externalDatasetReference;
BuilderImpl() {}
@@ -202,6 +211,7 @@ static final class BuilderImpl extends Builder {
this.defaultEncryptionConfiguration = datasetInfo.defaultEncryptionConfiguration;
this.defaultPartitionExpirationMs = datasetInfo.defaultPartitionExpirationMs;
this.defaultCollation = datasetInfo.defaultCollation;
+ this.externalDatasetReference = datasetInfo.externalDatasetReference;
}
BuilderImpl(com.google.api.services.bigquery.model.Dataset datasetPb) {
@@ -236,6 +246,10 @@ public Acl apply(Dataset.Access accessPb) {
}
this.defaultPartitionExpirationMs = datasetPb.getDefaultPartitionExpirationMs();
this.defaultCollation = datasetPb.getDefaultCollation();
+ if (datasetPb.getExternalDatasetReference() != null) {
+ this.externalDatasetReference =
+ ExternalDatasetReference.fromPb(datasetPb.getExternalDatasetReference());
+ }
}
@Override
@@ -336,6 +350,12 @@ public Builder setDefaultCollation(String defaultCollation) {
return this;
}
+ @Override
+ public Builder setExternalDatasetReference(ExternalDatasetReference externalDatasetReference) {
+ this.externalDatasetReference = externalDatasetReference;
+ return this;
+ }
+
@Override
public DatasetInfo build() {
return new DatasetInfo(this);
@@ -358,6 +378,7 @@ public DatasetInfo build() {
defaultEncryptionConfiguration = builder.defaultEncryptionConfiguration;
defaultPartitionExpirationMs = builder.defaultPartitionExpirationMs;
defaultCollation = builder.defaultCollation;
+ externalDatasetReference = builder.externalDatasetReference;
}
/** Returns the dataset identity. */
@@ -487,6 +508,14 @@ public String getDefaultCollation() {
return defaultCollation;
}
+ /**
+ * Returns information about the external metadata storage where the dataset is defined. Filled
+ * out when the dataset type is EXTERNAL.
+ */
+ public ExternalDatasetReference getExternalDatasetReference() {
+ return externalDatasetReference;
+ }
+
/** Returns a builder for the dataset object. */
public Builder toBuilder() {
return new BuilderImpl(this);
@@ -510,6 +539,7 @@ public String toString() {
.add("defaultEncryptionConfiguration", defaultEncryptionConfiguration)
.add("defaultPartitionExpirationMs", defaultPartitionExpirationMs)
.add("defaultCollation", defaultCollation)
+ .add("externalDatasetReference", externalDatasetReference)
.toString();
}
@@ -588,6 +618,9 @@ public Dataset.Access apply(Acl acl) {
if (defaultCollation != null) {
datasetPb.setDefaultCollation(defaultCollation);
}
+ if (externalDatasetReference != null) {
+ datasetPb.setExternalDatasetReference(externalDatasetReference.toPb());
+ }
return datasetPb;
}
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ExternalDatasetReference.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ExternalDatasetReference.java
new file mode 100644
index 000000000..ecfe54c50
--- /dev/null
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ExternalDatasetReference.java
@@ -0,0 +1,79 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.bigquery;
+
+import com.google.auto.value.AutoValue;
+import com.google.common.annotations.VisibleForTesting;
+import java.io.Serializable;
+import javax.annotation.Nullable;
+
+/** Configures the access a dataset defined in an external metadata storage. */
+@AutoValue
+public abstract class ExternalDatasetReference implements Serializable {
+
+ public static ExternalDatasetReference.Builder newBuilder() {
+ return new AutoValue_ExternalDatasetReference.Builder();
+ }
+
+ static ExternalDatasetReference fromPb(
+ com.google.api.services.bigquery.model.ExternalDatasetReference externalDatasetReference) {
+ ExternalDatasetReference.Builder builder = newBuilder();
+
+ if (externalDatasetReference.getConnection() != null) {
+ builder.setConnection(externalDatasetReference.getConnection());
+ }
+ if (externalDatasetReference.getExternalSource() != null) {
+ builder.setExternalSource(externalDatasetReference.getExternalSource());
+ }
+
+ return builder.build();
+ }
+
+ public com.google.api.services.bigquery.model.ExternalDatasetReference toPb() {
+ com.google.api.services.bigquery.model.ExternalDatasetReference externalDatasetReference =
+ new com.google.api.services.bigquery.model.ExternalDatasetReference();
+
+ externalDatasetReference.setConnection(getConnection());
+ externalDatasetReference.setExternalSource(getExternalSource());
+ return externalDatasetReference;
+ }
+
+ @Nullable
+ public abstract String getConnection();
+
+ @Nullable
+ public abstract String getExternalSource();
+
+ /** Returns a builder for an ExternalDatasetReference. */
+ @VisibleForTesting
+ public abstract ExternalDatasetReference.Builder toBuilder();
+
+ @AutoValue.Builder
+ public abstract static class Builder {
+ /**
+ * The connection id that is used to access the external_source. Format:
+ * projects/{project_id}/locations/{location_id}/connections/{connection_id} *
+ */
+ public abstract ExternalDatasetReference.Builder setConnection(String connection);
+
+ /** External source that backs this dataset * */
+ public abstract ExternalDatasetReference.Builder setExternalSource(String externalSource);
+
+ /** Creates a {@code ExternalDatasetReference} object. */
+ public abstract ExternalDatasetReference build();
+ }
+}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/DatasetInfoTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/DatasetInfoTest.java
index 453701e3a..c91cbc2f3 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/DatasetInfoTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/DatasetInfoTest.java
@@ -58,6 +58,12 @@ public class DatasetInfoTest {
private static final DatasetId DATASET_ID_COMPLETE = DatasetId.of("project", "dataset");
private static final EncryptionConfiguration DATASET_ENCRYPTION_CONFIGURATION =
EncryptionConfiguration.newBuilder().setKmsKeyName("KMS_KEY_1").build();
+
+ private static final ExternalDatasetReference EXTERNAL_DATASET_REFERENCE =
+ ExternalDatasetReference.newBuilder()
+ .setExternalSource("source")
+ .setConnection("connection")
+ .build();
private static final DatasetInfo DATASET_INFO =
DatasetInfo.newBuilder(DATASET_ID)
.setAcl(ACCESS_RULES)
@@ -82,6 +88,8 @@ public class DatasetInfoTest {
.build();
private static final DatasetInfo DATASET_INFO_COMPLETE_WITH_IAM_MEMBER =
DATASET_INFO.toBuilder().setAcl(ACCESS_RULES_IAM_MEMBER).build();
+ private static final DatasetInfo DATASET_INFO_COMPLETE_WITH_EXTERNAL_DATASET_REFERENCE =
+ DATASET_INFO.toBuilder().setExternalDatasetReference(EXTERNAL_DATASET_REFERENCE).build();
@Test
public void testToBuilder() {
@@ -108,6 +116,28 @@ public void testToBuilderIncomplete() {
assertEquals(datasetInfo, datasetInfo.toBuilder().build());
}
+ @Test
+ public void testToBuilderWithExternalDatasetReference() {
+ compareDatasets(
+ DATASET_INFO_COMPLETE_WITH_EXTERNAL_DATASET_REFERENCE,
+ DATASET_INFO_COMPLETE_WITH_EXTERNAL_DATASET_REFERENCE.toBuilder().build());
+
+ ExternalDatasetReference externalDatasetReference =
+ ExternalDatasetReference.newBuilder()
+ .setExternalSource("source2")
+ .setConnection("connection2")
+ .build();
+ DatasetInfo datasetInfo =
+ DATASET_INFO_COMPLETE_WITH_EXTERNAL_DATASET_REFERENCE
+ .toBuilder()
+ .setExternalDatasetReference(externalDatasetReference)
+ .build();
+ assertEquals(externalDatasetReference, datasetInfo.getExternalDatasetReference());
+ datasetInfo =
+ datasetInfo.toBuilder().setExternalDatasetReference(EXTERNAL_DATASET_REFERENCE).build();
+ compareDatasets(DATASET_INFO_COMPLETE_WITH_EXTERNAL_DATASET_REFERENCE, datasetInfo);
+ }
+
@Test
public void testBuilder() {
assertNull(DATASET_INFO.getDatasetId().getProject());
@@ -137,6 +167,9 @@ public void testBuilder() {
assertEquals(LOCATION, DATASET_INFO_COMPLETE.getLocation());
assertEquals(SELF_LINK, DATASET_INFO_COMPLETE.getSelfLink());
assertEquals(LABELS, DATASET_INFO_COMPLETE.getLabels());
+ assertEquals(
+ EXTERNAL_DATASET_REFERENCE,
+ DATASET_INFO_COMPLETE_WITH_EXTERNAL_DATASET_REFERENCE.getExternalDatasetReference());
}
@Test
@@ -156,6 +189,7 @@ public void testOf() {
assertNull(datasetInfo.getDefaultEncryptionConfiguration());
assertNull(datasetInfo.getDefaultPartitionExpirationMs());
assertTrue(datasetInfo.getLabels().isEmpty());
+ assertNull(datasetInfo.getExternalDatasetReference());
datasetInfo = DatasetInfo.of(DATASET_ID);
assertEquals(DATASET_ID, datasetInfo.getDatasetId());
@@ -172,11 +206,15 @@ public void testOf() {
assertNull(datasetInfo.getDefaultEncryptionConfiguration());
assertNull(datasetInfo.getDefaultPartitionExpirationMs());
assertTrue(datasetInfo.getLabels().isEmpty());
+ assertNull(datasetInfo.getExternalDatasetReference());
}
@Test
public void testToPbAndFromPb() {
compareDatasets(DATASET_INFO_COMPLETE, DatasetInfo.fromPb(DATASET_INFO_COMPLETE.toPb()));
+ compareDatasets(
+ DATASET_INFO_COMPLETE_WITH_EXTERNAL_DATASET_REFERENCE,
+ DatasetInfo.fromPb(DATASET_INFO_COMPLETE_WITH_EXTERNAL_DATASET_REFERENCE.toPb()));
DatasetInfo datasetInfo = DatasetInfo.newBuilder("project", "dataset").build();
compareDatasets(datasetInfo, DatasetInfo.fromPb(datasetInfo.toPb()));
}
@@ -204,5 +242,6 @@ private void compareDatasets(DatasetInfo expected, DatasetInfo value) {
expected.getDefaultEncryptionConfiguration(), value.getDefaultEncryptionConfiguration());
assertEquals(
expected.getDefaultPartitionExpirationMs(), value.getDefaultPartitionExpirationMs());
+ assertEquals(expected.getExternalDatasetReference(), value.getExternalDatasetReference());
}
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/DatasetTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/DatasetTest.java
index d1c97a694..b244cf260 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/DatasetTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/DatasetTest.java
@@ -83,6 +83,11 @@ public class DatasetTest {
TableInfo.newBuilder(
TableId.of(NEW_PROJECT_ID, "dataset", "table3"), EXTERNAL_TABLE_DEFINITION)
.build();
+ private static final ExternalDatasetReference EXTERNAL_DATASET_REFERENCE =
+ ExternalDatasetReference.newBuilder()
+ .setExternalSource("source")
+ .setConnection("connection")
+ .build();
@Rule public MockitoRule rule;
@@ -319,6 +324,31 @@ public void testToAndFromPb() {
compareDataset(expectedDataset, Dataset.fromPb(bigquery, expectedDataset.toPb()));
}
+ @Test
+ public void testExternalDatasetReference() {
+ Dataset datasetWithExternalDatasetReference =
+ new Dataset.Builder(bigquery, DATASET_ID)
+ .setAcl(ACCESS_RULES)
+ .setCreationTime(CREATION_TIME)
+ .setDefaultTableLifetime(DEFAULT_TABLE_EXPIRATION)
+ .setDescription(DESCRIPTION)
+ .setEtag(ETAG)
+ .setFriendlyName(FRIENDLY_NAME)
+ .setGeneratedId(GENERATED_ID)
+ .setLastModified(LAST_MODIFIED)
+ .setLocation(LOCATION)
+ .setSelfLink(SELF_LINK)
+ .setLabels(LABELS)
+ .setExternalDatasetReference(EXTERNAL_DATASET_REFERENCE)
+ .build();
+ assertEquals(
+ EXTERNAL_DATASET_REFERENCE,
+ datasetWithExternalDatasetReference.getExternalDatasetReference());
+ compareDataset(
+ datasetWithExternalDatasetReference,
+ datasetWithExternalDatasetReference.toBuilder().build());
+ }
+
private void compareDataset(Dataset expected, Dataset value) {
assertEquals(expected, value);
compareDatasetInfo(expected, value);
@@ -338,5 +368,6 @@ private void compareDatasetInfo(DatasetInfo expected, DatasetInfo value) {
assertEquals(expected.getCreationTime(), value.getCreationTime());
assertEquals(expected.getDefaultTableLifetime(), value.getDefaultTableLifetime());
assertEquals(expected.getLastModified(), value.getLastModified());
+ assertEquals(expected.getExternalDatasetReference(), value.getExternalDatasetReference());
}
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/ExternalDatasetReferenceTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/ExternalDatasetReferenceTest.java
new file mode 100644
index 000000000..6d241948b
--- /dev/null
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/ExternalDatasetReferenceTest.java
@@ -0,0 +1,70 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.bigquery;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+
+import org.junit.Test;
+
+public class ExternalDatasetReferenceTest {
+ private static final String EXTERNAL_SOURCE = "test_source";
+ private static final String CONNECTION = "test_connection";
+ private static final ExternalDatasetReference EXTERNAL_DATASET_REFERENCE =
+ ExternalDatasetReference.newBuilder()
+ .setExternalSource(EXTERNAL_SOURCE)
+ .setConnection(CONNECTION)
+ .build();
+
+ @Test
+ public void testToBuilder() {
+ compareExternalDatasetReference(
+ EXTERNAL_DATASET_REFERENCE, EXTERNAL_DATASET_REFERENCE.toBuilder().build());
+ ExternalDatasetReference externalDatasetReference =
+ EXTERNAL_DATASET_REFERENCE.toBuilder().setExternalSource("test_source2").build();
+ assertEquals("test_source2", externalDatasetReference.getExternalSource());
+ }
+
+ @Test
+ public void testBuilder() {
+ assertEquals(EXTERNAL_SOURCE, EXTERNAL_DATASET_REFERENCE.getExternalSource());
+ assertEquals(CONNECTION, EXTERNAL_DATASET_REFERENCE.getConnection());
+ ExternalDatasetReference externalDatasetReference =
+ ExternalDatasetReference.newBuilder()
+ .setExternalSource(EXTERNAL_SOURCE)
+ .setConnection(CONNECTION)
+ .build();
+ assertEquals(EXTERNAL_DATASET_REFERENCE, externalDatasetReference);
+ }
+
+ @Test
+ public void testToAndFromPb() {
+ ExternalDatasetReference externalDatasetReference =
+ EXTERNAL_DATASET_REFERENCE.toBuilder().build();
+ assertTrue(
+ ExternalDatasetReference.fromPb(externalDatasetReference.toPb())
+ instanceof ExternalDatasetReference);
+ compareExternalDatasetReference(
+ externalDatasetReference, ExternalDatasetReference.fromPb(externalDatasetReference.toPb()));
+ }
+
+ private void compareExternalDatasetReference(
+ ExternalDatasetReference expected, ExternalDatasetReference value) {
+ assertEquals(expected.getExternalSource(), value.getExternalSource());
+ assertEquals(expected.getConnection(), value.getConnection());
+ }
+}
diff --git a/pom.xml b/pom.xml
index 508962ae5..be820053d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,7 +54,7 @@
UTF-8
github
google-cloud-bigquery-parent
- v2-rev20230805-2.0.0
+ v2-rev20230812-2.0.0
3.15.0
12.0.1
From 6cafedf634bc88f41b2b5d3ec1425341b02ac8b6 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 14 Sep 2023 00:49:57 +0200
Subject: [PATCH 011/393] deps: update dependency
com.google.cloud:google-cloud-datacatalog-bom to v1.30.0 (#2874)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index be820053d..64fc26907 100644
--- a/pom.xml
+++ b/pom.xml
@@ -97,7 +97,7 @@
com.google.cloud
google-cloud-datacatalog-bom
- 1.29.0
+ 1.30.0
pom
import
From 1985acc9343b8014f110252a02cd578ce73d6a7f Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 14 Sep 2023 01:37:58 +0200
Subject: [PATCH 012/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquerystorage-bom to v2.42.0 (#2877)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 64fc26907..34eceda6c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -73,7 +73,7 @@
com.google.cloud
google-cloud-bigquerystorage-bom
- 2.41.1
+ 2.42.0
pom
import
From 6196625d614ce80641008ffab3b5bf9720651bb9 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 14 Sep 2023 01:38:20 +0200
Subject: [PATCH 013/393] deps: update dependency
com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.26.0
(#2873)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 34eceda6c..9b6268418 100644
--- a/pom.xml
+++ b/pom.xml
@@ -167,7 +167,7 @@
com.google.api.grpc
proto-google-cloud-bigqueryconnection-v1
- 2.25.0
+ 2.26.0
test
From 5702109aff3f5c3357c8bca83b18e6e16ca8d878 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 14 Sep 2023 01:38:38 +0200
Subject: [PATCH 014/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigqueryconnection to v2.26.0 (#2872)
---
pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 9b6268418..13abbec2a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -161,7 +161,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.25.0
+ 2.26.0
test
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 5c186115b..e307f5c09 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -69,7 +69,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.25.0
+ 2.26.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index c811b89f9..efe17ad41 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -67,7 +67,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.25.0
+ 2.26.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 080f1e84c..e9e85bf7e 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -85,7 +85,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.25.0
+ 2.26.0
test
From f8c163ea697f574a57e024c2872634fa2a03940c Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Wed, 13 Sep 2023 21:31:49 -0400
Subject: [PATCH 015/393] chore(main): release 2.31.3-SNAPSHOT (#2865)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index dde17cb10..479eecb8a 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.31.2
+ 2.31.3-SNAPSHOT
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 5ec3e04a6..d1441f1a7 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.31.2
+ 2.31.3-SNAPSHOT
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.31.2
+ 2.31.3-SNAPSHOT
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 13abbec2a..c7af98af7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.31.2
+ 2.31.3-SNAPSHOT
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.31.2
+ 2.31.3-SNAPSHOT
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index efe17ad41..6d3190ee2 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.31.2
+ 2.31.3-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index c9aaacf02..49aa7879b 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.31.2:2.31.2
\ No newline at end of file
+google-cloud-bigquery:2.31.2:2.31.3-SNAPSHOT
\ No newline at end of file
From 902e9b97cd548910354297ff6e605df094a03175 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 14 Sep 2023 03:32:21 +0200
Subject: [PATCH 016/393] deps: update actions/checkout action to v4 (#2862)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update actions/checkout action to v4
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 4eab67ad5..4959517d4 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -32,7 +32,7 @@ jobs:
steps:
- name: "Checkout code"
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
+ uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
persist-credentials: false
From 6b6d809657376cf3591e732e6440770156ae0382 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 14 Sep 2023 04:30:29 +0200
Subject: [PATCH 017/393] test(deps): update dependency
com.google.cloud:google-cloud-storage to v2.26.1 (#2851)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* test(deps): update dependency com.google.cloud:google-cloud-storage to v2.26.1
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
Co-authored-by: Mridula <66699525+mpeddada1@users.noreply.github.com>
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index c7af98af7..9aafd3a38 100644
--- a/pom.xml
+++ b/pom.xml
@@ -155,7 +155,7 @@
com.google.cloud
google-cloud-storage
- 2.26.0
+ 2.26.1
test
From ff8371e72aacff8ce3b550c55aa7bda3523bc2d8 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 14 Sep 2023 04:30:51 +0200
Subject: [PATCH 018/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquery to v2.31.1 (#2848)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigquery to v2.31.1
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
Co-authored-by: Mridula <66699525+mpeddada1@users.noreply.github.com>
---
README.md | 2 +-
samples/install-without-bom/pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 1665fb7d1..73be1efe4 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquery
- 2.31.0
+ 2.31.1
```
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index e307f5c09..3189c3d6a 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -45,7 +45,7 @@
com.google.cloud
google-cloud-bigquery
- 2.31.0
+ 2.31.1
From 6b380a668045580b1aa1878c56ca73dcf576e68c Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 14 Sep 2023 04:31:03 +0200
Subject: [PATCH 019/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigtable to v2.26.0 (#2850)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigtable to v2.26.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
Co-authored-by: Mridula <66699525+mpeddada1@users.noreply.github.com>
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 3189c3d6a..7018c5c33 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -63,7 +63,7 @@
com.google.cloud
google-cloud-bigtable
- 2.25.1
+ 2.26.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 6d3190ee2..5de6ade6f 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -61,7 +61,7 @@
com.google.cloud
google-cloud-bigtable
- 2.25.1
+ 2.26.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index e9e85bf7e..2e8a7890d 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -79,7 +79,7 @@
com.google.cloud
google-cloud-bigtable
- 2.25.1
+ 2.26.0
test
From 0f7306cff99d7f38c504d006e1518b9389507673 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 14 Sep 2023 14:12:17 +0200
Subject: [PATCH 020/393] test(deps): update dependency
com.google.cloud:google-cloud-storage to v2.27.0 (#2880)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 9aafd3a38..2f9020484 100644
--- a/pom.xml
+++ b/pom.xml
@@ -155,7 +155,7 @@
com.google.cloud
google-cloud-storage
- 2.26.1
+ 2.27.0
test
From 93bdcedcd90927c6144adc3de5e6460d608ebfe2 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 14 Sep 2023 14:12:30 +0200
Subject: [PATCH 021/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquery to v2.31.2 (#2881)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigquery to v2.31.2
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 2 +-
samples/install-without-bom/pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 73be1efe4..d5521d986 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquery
- 2.31.1
+ 2.31.2
```
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 7018c5c33..0b6b5994b 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -45,7 +45,7 @@
com.google.cloud
google-cloud-bigquery
- 2.31.1
+ 2.31.2
From 42a999640dfe84005007d571daa58e526187c5e2 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Thu, 14 Sep 2023 09:28:30 -0400
Subject: [PATCH 022/393] chore(main): release 2.32.0 (#2878)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
CHANGELOG.md | 19 +++++++++++++++++++
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
6 files changed, 26 insertions(+), 7 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3c833f4b7..05a148540 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,24 @@
# Changelog
+## [2.32.0](https://github.com/googleapis/java-bigquery/compare/v2.31.2...v2.32.0) (2023-09-14)
+
+
+### Features
+
+* Add support for converting interval fields to threeten PeriodDuration ([#2838](https://github.com/googleapis/java-bigquery/issues/2838)) ([2294c2f](https://github.com/googleapis/java-bigquery/commit/2294c2ffca62a22a66786a9a4c6c9ef1be898e5d))
+* Add support for ExternalDatasetReference ([#2871](https://github.com/googleapis/java-bigquery/issues/2871)) ([bbb86fd](https://github.com/googleapis/java-bigquery/commit/bbb86fd8488ad253f2e9cf3fb08360330bd860a3))
+
+
+### Dependencies
+
+* Update actions/checkout action to v4 ([#2862](https://github.com/googleapis/java-bigquery/issues/2862)) ([902e9b9](https://github.com/googleapis/java-bigquery/commit/902e9b97cd548910354297ff6e605df094a03175))
+* Update actions/upload-artifact action to v3.1.3 ([#2867](https://github.com/googleapis/java-bigquery/issues/2867)) ([cbbf0fb](https://github.com/googleapis/java-bigquery/commit/cbbf0fb8a99c0633335d81cd36a7b53dfe9df20b))
+* Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.26.0 ([#2873](https://github.com/googleapis/java-bigquery/issues/2873)) ([6196625](https://github.com/googleapis/java-bigquery/commit/6196625d614ce80641008ffab3b5bf9720651bb9))
+* Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.30.0 ([#2874](https://github.com/googleapis/java-bigquery/issues/2874)) ([6cafedf](https://github.com/googleapis/java-bigquery/commit/6cafedf634bc88f41b2b5d3ec1425341b02ac8b6))
+* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.15.0 ([#2870](https://github.com/googleapis/java-bigquery/issues/2870)) ([f24439b](https://github.com/googleapis/java-bigquery/commit/f24439b7adf1f08cee4b65918b4395861fe88517))
+* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.26 ([#2868](https://github.com/googleapis/java-bigquery/issues/2868)) ([d01031c](https://github.com/googleapis/java-bigquery/commit/d01031cbc6d50f9aff8c6d49a8d2c54496779451))
+* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.26 ([#2869](https://github.com/googleapis/java-bigquery/issues/2869)) ([edd7141](https://github.com/googleapis/java-bigquery/commit/edd714129b65d73f894591c4d40e1a8e79c36b04))
+
## [2.31.2](https://github.com/googleapis/java-bigquery/compare/v2.31.1...v2.31.2) (2023-09-05)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 479eecb8a..7f06c9245 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.31.3-SNAPSHOT
+ 2.32.0
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index d1441f1a7..f7fdee106 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.31.3-SNAPSHOT
+ 2.32.0
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.31.3-SNAPSHOT
+ 2.32.0
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 2f9020484..ed6e9d964 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.31.3-SNAPSHOT
+ 2.32.0
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.31.3-SNAPSHOT
+ 2.32.0
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 5de6ade6f..f602d39b9 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.31.3-SNAPSHOT
+ 2.32.0
diff --git a/versions.txt b/versions.txt
index 49aa7879b..0b7ba086a 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.31.2:2.31.3-SNAPSHOT
\ No newline at end of file
+google-cloud-bigquery:2.32.0:2.32.0
\ No newline at end of file
From 599e3b3d7e948a0688c6e08d4910f9db5c532f99 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 19 Sep 2023 15:46:17 +0200
Subject: [PATCH 023/393] deps: update github/codeql-action action to v2.21.4
(#2829)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update github/codeql-action action to v2.21.4
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
Co-authored-by: Mridula <66699525+mpeddada1@users.noreply.github.com>
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 4959517d4..f3044fe4c 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@6ca1aa8c195c3ca3e77c174fe0356db1bce3b319 # v2.21.1
+ uses: github/codeql-action/upload-sarif@a09933a12a80f87b87005513f0abb1494c27a716 # v2.21.4
with:
sarif_file: results.sarif
From 4a50f38129056da19ed5b0be1ab81ad786a1c276 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 19 Sep 2023 15:47:44 +0200
Subject: [PATCH 024/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigtable to v2.27.2 (#2882)
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 0b6b5994b..d373ea764 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -63,7 +63,7 @@
com.google.cloud
google-cloud-bigtable
- 2.26.0
+ 2.27.2
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index f602d39b9..0952a1d2b 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -61,7 +61,7 @@
com.google.cloud
google-cloud-bigtable
- 2.26.0
+ 2.27.2
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 2e8a7890d..a37ed03fb 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -79,7 +79,7 @@
com.google.cloud
google-cloud-bigtable
- 2.26.0
+ 2.27.2
test
From 6695f8e79bfd7503cdb991b931a252d57fd42e8a Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 19 Sep 2023 15:48:02 +0200
Subject: [PATCH 025/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquery to v2.32.0 (#2884)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigquery to v2.32.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 8 ++++----
samples/install-without-bom/pom.xml | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index d5521d986..3d19e5759 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquery
- 2.31.2
+ 2.32.0
```
@@ -60,13 +60,13 @@ implementation 'com.google.cloud:google-cloud-bigquery'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigquery:2.31.2'
+implementation 'com.google.cloud:google-cloud-bigquery:2.32.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.31.2"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.32.0"
```
@@ -351,7 +351,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquery/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.31.2
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.32.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index d373ea764..55b2bfc13 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -45,7 +45,7 @@
com.google.cloud
google-cloud-bigquery
- 2.31.2
+ 2.32.0
From 2237ca2a1dbe9e1dc1d5e6c0dc2bd2fd39e01ef0 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 19 Sep 2023 15:48:39 +0200
Subject: [PATCH 026/393] deps: update dependency
org.graalvm.buildtools:junit-platform-native to v0.9.27 (#2885)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.27
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 2 +-
samples/native-image-sample/pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 3d19e5759..60649dc7b 100644
--- a/README.md
+++ b/README.md
@@ -53,7 +53,7 @@ If you are using Maven without the BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:
```Groovy
-implementation platform('com.google.cloud:libraries-bom:26.22.0')
+implementation platform('com.google.cloud:libraries-bom:26.23.0')
implementation 'com.google.cloud:google-cloud-bigquery'
```
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index 7f18e0025..e5a19a5ee 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -99,7 +99,7 @@
org.graalvm.buildtools
junit-platform-native
- 0.9.26
+ 0.9.27
test
From 123ad59b60bbda26c816b5442c3f006cae806932 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 19 Sep 2023 15:48:58 +0200
Subject: [PATCH 027/393] build(deps): update dependency
org.apache.maven.plugins:maven-javadoc-plugin to v3.6.0 (#2887)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.6.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index ed6e9d964..6c00cf8f6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -224,7 +224,7 @@
org.apache.maven.plugins
maven-javadoc-plugin
- 3.5.0
+ 3.6.0
html
From 86442522401a2b264ca547a6a619588592f954f8 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 10:01:47 -0400
Subject: [PATCH 028/393] build(deps): bump cryptography from 41.0.2 to 41.0.3
in /.kokoro (#2835)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* build(deps): bump cryptography from 41.0.2 to 41.0.3 in /.kokoro
Bumps [cryptography](https://github.com/pyca/cryptography) from 41.0.2 to 41.0.3.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/41.0.2...41.0.3)
---
updated-dependencies:
- dependency-name: cryptography
dependency-type: indirect
...
Signed-off-by: dependabot[bot]
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot
Co-authored-by: Mridula <66699525+mpeddada1@users.noreply.github.com>
From 7e040e97eeec762ab97190dea33b94769d681bf0 Mon Sep 17 00:00:00 2001
From: Sumit Banerjee <123063931+forksumit@users.noreply.github.com>
Date: Thu, 21 Sep 2023 18:38:37 +0530
Subject: [PATCH 029/393] fix: update samples snippet to write to BYTES instead
of ARRAY (#2876)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* fix: update snippet to write to BYTES instead of ARRAY
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.../java/com/example/bigquery/InsertingDataTypes.java | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/samples/snippets/src/main/java/com/example/bigquery/InsertingDataTypes.java b/samples/snippets/src/main/java/com/example/bigquery/InsertingDataTypes.java
index 3d721e727..0f2946488 100644
--- a/samples/snippets/src/main/java/com/example/bigquery/InsertingDataTypes.java
+++ b/samples/snippets/src/main/java/com/example/bigquery/InsertingDataTypes.java
@@ -30,6 +30,7 @@
import com.google.cloud.bigquery.TableDefinition;
import com.google.cloud.bigquery.TableId;
import com.google.cloud.bigquery.TableInfo;
+import java.util.Base64;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -53,10 +54,7 @@ public static void insertingDataTypes(String datasetName, String tableName) {
// Inserting data types
Field name = Field.of("name", StandardSQLTypeName.STRING);
Field age = Field.of("age", StandardSQLTypeName.INT64);
- Field school =
- Field.newBuilder("school", StandardSQLTypeName.BYTES)
- .setMode(Field.Mode.REPEATED)
- .build();
+ Field school = Field.of("school", StandardSQLTypeName.BYTES);
Field location = Field.of("location", StandardSQLTypeName.GEOGRAPHY);
Field measurements =
Field.newBuilder("measurements", StandardSQLTypeName.FLOAT64)
@@ -86,7 +84,7 @@ public static void insertingDataTypes(String datasetName, String tableName) {
Map rowContent = new HashMap<>();
rowContent.put("name", "Tom");
rowContent.put("age", 30);
- rowContent.put("school", "Test University".getBytes());
+ rowContent.put("school", Base64.getEncoder().encodeToString("Test University".getBytes()));
rowContent.put("location", "POINT(1 2)");
rowContent.put("measurements", new Float[] {50.05f, 100.5f});
rowContent.put("datesTime", datesTimeContent);
From 3895bd94b283b6ff731cfa94426ea0691e0d54c4 Mon Sep 17 00:00:00 2001
From: emkornfield
Date: Mon, 25 Sep 2023 04:33:52 -0700
Subject: [PATCH 030/393] feat: Add support for FileSetSpec (#2888)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* feat: Add support for FileSetSpec
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.../bigquery/ExternalTableDefinition.java | 30 +++++++++++++++++++
.../cloud/bigquery/LoadJobConfiguration.java | 26 ++++++++++++++++
.../bigquery/ExternalTableDefinitionTest.java | 2 ++
.../bigquery/LoadJobConfigurationTest.java | 2 ++
4 files changed, 60 insertions(+)
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 18c78e750..d307b8232 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
@@ -79,8 +79,20 @@ public Builder setSourceUris(List sourceUris) {
return setSourceUrisImmut(ImmutableList.copyOf(sourceUris));
}
+ abstract Builder setFileSetSpecTypeInner(String spec);
+
abstract Builder setSourceUrisImmut(ImmutableList sourceUris);
+ /**
+ * Defines how to interpret files denoted by URIs. By default the files are assumed to be data
+ * files (this can be specified explicitly via FILE_SET_SPEC_TYPE_FILE_SYSTEM_MATCH). A second
+ * option is "FILE_SET_SPEC_TYPE_NEW_LINE_DELIMITED_MANIFEST" which interprets each file as a
+ * manifest file, where each line is a reference to a file.
+ */
+ public Builder setFileSetSpecType(String fileSetSpecType) {
+ return setFileSetSpecTypeInner(fileSetSpecType);
+ }
+
/**
* Sets the source format, and possibly some parsing options, of the external data. Supported
* formats are {@code CSV} and {@code NEWLINE_DELIMITED_JSON}.
@@ -232,6 +244,14 @@ public List getSourceUris() {
return getSourceUrisImmut();
}
+ @Nullable
+ public String getFileSetSpecType() {
+ return getFileSetSpecTypeInner();
+ }
+
+ @Nullable
+ abstract String getFileSetSpecTypeInner();
+
@Nullable
public abstract ImmutableList getSourceUrisImmut();
@@ -338,6 +358,10 @@ com.google.api.services.bigquery.model.ExternalDataConfiguration toExternalDataC
if (getHivePartitioningOptions() != null) {
externalConfigurationPb.setHivePartitioningOptions(getHivePartitioningOptions().toPb());
}
+ if (getFileSetSpecType() != null) {
+ externalConfigurationPb.setFileSetSpecType(getFileSetSpecType());
+ }
+
return externalConfigurationPb;
}
@@ -507,6 +531,9 @@ static ExternalTableDefinition fromPb(Table tablePb) {
if (externalDataConfiguration.getReferenceFileSchemaUri() != null) {
builder.setReferenceFileSchemaUri(externalDataConfiguration.getReferenceFileSchemaUri());
}
+ if (externalDataConfiguration.getFileSetSpecType() != null) {
+ builder.setFileSetSpecType(externalDataConfiguration.getFileSetSpecType());
+ }
}
return builder.build();
}
@@ -566,6 +593,9 @@ static ExternalTableDefinition fromExternalDataConfiguration(
builder.setHivePartitioningOptions(
HivePartitioningOptions.fromPb(externalDataConfiguration.getHivePartitioningOptions()));
}
+ if (externalDataConfiguration.getFileSetSpecType() != null) {
+ builder.setFileSetSpecType(externalDataConfiguration.getFileSetSpecType());
+ }
return builder.build();
}
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/LoadJobConfiguration.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/LoadJobConfiguration.java
index 321d542a6..fefff3409 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/LoadJobConfiguration.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/LoadJobConfiguration.java
@@ -38,6 +38,7 @@ public final class LoadJobConfiguration extends JobConfiguration implements Load
private static final long serialVersionUID = -2673554846792429829L;
private final List sourceUris;
+ private final String fileSetSpecType;
private final TableId destinationTable;
private final List decimalTargetTypes;
private final EncryptionConfiguration destinationEncryptionConfiguration;
@@ -67,6 +68,7 @@ public static final class Builder extends JobConfiguration.Builder sourceUris;
+ private String fileSetSpecType;
private TableId destinationTable;
private List decimalTargetTypes;
private EncryptionConfiguration destinationEncryptionConfiguration;
@@ -107,6 +109,7 @@ private Builder(LoadJobConfiguration loadConfiguration) {
this.schema = loadConfiguration.schema;
this.ignoreUnknownValues = loadConfiguration.ignoreUnknownValues;
this.sourceUris = loadConfiguration.sourceUris;
+ this.fileSetSpecType = loadConfiguration.fileSetSpecType;
this.schemaUpdateOptions = loadConfiguration.schemaUpdateOptions;
this.autodetect = loadConfiguration.autodetect;
this.destinationEncryptionConfiguration =
@@ -175,6 +178,9 @@ private Builder(com.google.api.services.bigquery.model.JobConfiguration configur
if (loadConfigurationPb.getSourceUris() != null) {
this.sourceUris = ImmutableList.copyOf(configurationPb.getLoad().getSourceUris());
}
+ if (loadConfigurationPb.getFileSetSpecType() != null) {
+ this.fileSetSpecType = loadConfigurationPb.getFileSetSpecType();
+ }
if (loadConfigurationPb.getSchemaUpdateOptions() != null) {
ImmutableList.Builder schemaUpdateOptionsBuilder =
new ImmutableList.Builder<>();
@@ -306,6 +312,17 @@ public Builder setSourceUris(List sourceUris) {
return this;
}
+ /**
+ * Defines how to interpret files denoted by URIs. By default the files are assumed to be data
+ * files (this can be specified explicitly via FILE_SET_SPEC_TYPE_FILE_SYSTEM_MATCH). A second
+ * option is "FILE_SET_SPEC_TYPE_NEW_LINE_DELIMITED_MANIFEST" which interprets each file as a
+ * manifest file, where each line is a reference to a file.
+ */
+ public Builder setFileSetSpecType(String fileSetSpecType) {
+ this.fileSetSpecType = fileSetSpecType;
+ return this;
+ }
+
/**
* Defines the list of possible SQL data types to which the source decimal values are converted.
* This list and the precision and the scale parameters of the decimal field determine the
@@ -403,6 +420,7 @@ public LoadJobConfiguration build() {
private LoadJobConfiguration(Builder builder) {
super(builder);
this.sourceUris = builder.sourceUris;
+ this.fileSetSpecType = builder.fileSetSpecType;
this.destinationTable = builder.destinationTable;
this.decimalTargetTypes = builder.decimalTargetTypes;
this.createDisposition = builder.createDisposition;
@@ -497,6 +515,10 @@ public List getSourceUris() {
return sourceUris;
}
+ public String getFileSetSpecType() {
+ return fileSetSpecType;
+ }
+
public List getDecimalTargetTypes() {
return decimalTargetTypes;
}
@@ -575,6 +597,7 @@ ToStringHelper toStringHelper() {
.add("schema", schema)
.add("ignoreUnknownValue", ignoreUnknownValues)
.add("sourceUris", sourceUris)
+ .add("fileSetSpecType", fileSetSpecType)
.add("schemaUpdateOptions", schemaUpdateOptions)
.add("autodetect", autodetect)
.add("timePartitioning", timePartitioning)
@@ -655,6 +678,9 @@ com.google.api.services.bigquery.model.JobConfiguration toPb() {
if (sourceUris != null) {
loadConfigurationPb.setSourceUris(ImmutableList.copyOf(sourceUris));
}
+ if (fileSetSpecType != null) {
+ loadConfigurationPb.setFileSetSpecType(fileSetSpecType);
+ }
if (decimalTargetTypes != null) {
loadConfigurationPb.setDecimalTargetTypes(ImmutableList.copyOf(decimalTargetTypes));
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/ExternalTableDefinitionTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/ExternalTableDefinitionTest.java
index 4a7409162..3e67ad959 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/ExternalTableDefinitionTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/ExternalTableDefinitionTest.java
@@ -60,6 +60,7 @@ public class ExternalTableDefinitionTest {
.build();
private static final ExternalTableDefinition EXTERNAL_TABLE_DEFINITION =
ExternalTableDefinition.newBuilder(SOURCE_URIS, TABLE_SCHEMA, CSV_OPTIONS)
+ .setFileSetSpecType("FILE_SET_SPEC_TYPE_FILE_SYSTEM_MATCH")
.setDecimalTargetTypes(DECIMAL_TARGET_TYPES)
.setCompression(COMPRESSION)
.setConnectionId(CONNECTION_ID)
@@ -154,6 +155,7 @@ public void testToAndFromPbParquet() {
private void compareExternalTableDefinition(
ExternalTableDefinition expected, ExternalTableDefinition value) {
assertEquals(expected, value);
+ assertEquals(expected.getFileSetSpecType(), value.getFileSetSpecType());
assertEquals(expected.getDecimalTargetTypes(), value.getDecimalTargetTypes());
assertEquals(expected.getCompression(), value.getCompression());
assertEquals(expected.getConnectionId(), value.getConnectionId());
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/LoadJobConfigurationTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/LoadJobConfigurationTest.java
index 341965fb8..563a3f34a 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/LoadJobConfigurationTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/LoadJobConfigurationTest.java
@@ -91,6 +91,7 @@ public class LoadJobConfigurationTest {
.setCreateDisposition(CREATE_DISPOSITION)
.setWriteDisposition(WRITE_DISPOSITION)
.setFormatOptions(CSV_OPTIONS)
+ .setFileSetSpecType("FILE_SET_SPEC_TYPE_FILE_SYSTEM_MATCH")
.setIgnoreUnknownValues(IGNORE_UNKNOWN_VALUES)
.setMaxBadRecords(MAX_BAD_RECORDS)
.setSchema(TABLE_SCHEMA)
@@ -240,6 +241,7 @@ private void compareLoadJobConfiguration(
LoadJobConfiguration expected, LoadJobConfiguration value) {
assertEquals(expected, value);
assertEquals(expected.hashCode(), value.hashCode());
+ assertEquals(expected.getFileSetSpecType(), value.getFileSetSpecType());
assertEquals(expected.toString(), value.toString());
assertEquals(expected.getDestinationTable(), value.getDestinationTable());
assertEquals(expected.getDecimalTargetTypes(), value.getDecimalTargetTypes());
From 8c68dbe507406b134e1ff300d819f46836595c13 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 26 Sep 2023 21:50:27 +0200
Subject: [PATCH 031/393] test(deps): update dependency
com.google.cloud:google-cloud-storage to v2.27.1 (#2896)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 6c00cf8f6..092adfe77 100644
--- a/pom.xml
+++ b/pom.xml
@@ -155,7 +155,7 @@
com.google.cloud
google-cloud-storage
- 2.27.0
+ 2.27.1
test
From 487c310b251000006a782cf331b73f33b7f5d2a1 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 26 Sep 2023 21:50:41 +0200
Subject: [PATCH 032/393] build(deps): update dependency
org.apache.maven.plugins:maven-shade-plugin to v3.5.1 (#2894)
---
benchmark/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 7f06c9245..16888be6e 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -42,7 +42,7 @@
org.apache.maven.plugins
maven-shade-plugin
- 3.5.0
+ 3.5.1
package
From 539b4e62f80598fb510fad37429ae0441db04c6f Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 26 Sep 2023 21:53:39 +0200
Subject: [PATCH 033/393] deps: update dependency
org.graalvm.buildtools:native-maven-plugin to v0.9.27 (#2886)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.27
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
samples/native-image-sample/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index e5a19a5ee..1f18d2c06 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -121,7 +121,7 @@
org.graalvm.buildtools
native-maven-plugin
- 0.9.26
+ 0.9.27
true
com.example.bigquery.NativeImageBigquerySample
From b568026fe1b8fb7365306b718b5f8540fb13b8dc Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 26 Sep 2023 21:53:46 +0200
Subject: [PATCH 034/393] deps: update github/codeql-action action to v2.21.8
(#2889)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update github/codeql-action action to v2.21.8
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index f3044fe4c..19fbe5ba1 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@a09933a12a80f87b87005513f0abb1494c27a716 # v2.21.4
+ uses: github/codeql-action/upload-sarif@6a28655e3dcb49cb0840ea372fd6d17733edd8a4 # v2.21.8
with:
sarif_file: results.sarif
From e1d987199ad8994aa3e9115daf26e0fb27aef911 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 27 Sep 2023 03:11:10 +0200
Subject: [PATCH 035/393] deps: update dependency
com.google.cloud:google-cloud-shared-dependencies to v3.16.1 (#2892)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 092adfe77..0afbe6652 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,7 +55,7 @@
github
google-cloud-bigquery-parent
v2-rev20230812-2.0.0
- 3.15.0
+ 3.16.1
12.0.1
From 43a1345f3288ffbf7435a93a91537a06a6381595 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Wed, 27 Sep 2023 11:51:35 -0400
Subject: [PATCH 036/393] chore(main): release 2.32.1-SNAPSHOT (#2883)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 16888be6e..adb3df32a 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.32.0
+ 2.32.1-SNAPSHOT
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index f7fdee106..e8857bfc4 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.32.0
+ 2.32.1-SNAPSHOT
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.32.0
+ 2.32.1-SNAPSHOT
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 0afbe6652..40abac928 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.32.0
+ 2.32.1-SNAPSHOT
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.32.0
+ 2.32.1-SNAPSHOT
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 0952a1d2b..0a0005d9c 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.32.0
+ 2.32.1-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index 0b7ba086a..9301fb640 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.32.0:2.32.0
\ No newline at end of file
+google-cloud-bigquery:2.32.0:2.32.1-SNAPSHOT
\ No newline at end of file
From e3655af235f002128979ed592c5aade33a4c7596 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 27 Sep 2023 22:37:07 +0200
Subject: [PATCH 037/393] deps: update actions/checkout action (#2893)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update actions/checkout action
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 19fbe5ba1..418aff482 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -32,7 +32,7 @@ jobs:
steps:
- name: "Checkout code"
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
+ uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
persist-credentials: false
From ab4e1d026c34b7d28caaf5b0b1465ac2de62c530 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 27 Sep 2023 22:37:19 +0200
Subject: [PATCH 038/393] deps: update github/codeql-action action to v2.21.8 -
abandoned (#2897)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update github/codeql-action action to v2.21.8
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
From 33a729f367ba6d9f04595e1b781c7eb321289380 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 27 Sep 2023 22:56:22 +0200
Subject: [PATCH 039/393] deps: update github/codeql-action action to v2.21.9
(#2901)
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 418aff482..32d3cc29b 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@6a28655e3dcb49cb0840ea372fd6d17733edd8a4 # v2.21.8
+ uses: github/codeql-action/upload-sarif@ddccb873888234080b77e9bc2d4764d5ccaaccf9 # v2.21.9
with:
sarif_file: results.sarif
From 682460580d0e50c4c7993ceef7daac93b49880f7 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Wed, 27 Sep 2023 17:37:27 -0400
Subject: [PATCH 040/393] chore(main): release 2.33.0 (#2900)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
CHANGELOG.md | 24 ++++++++++++++++++++++++
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
6 files changed, 31 insertions(+), 7 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 05a148540..94c2f34ac 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,29 @@
# Changelog
+## [2.33.0](https://github.com/googleapis/java-bigquery/compare/v2.32.0...v2.33.0) (2023-09-27)
+
+
+### Features
+
+* Add support for FileSetSpec ([#2888](https://github.com/googleapis/java-bigquery/issues/2888)) ([3895bd9](https://github.com/googleapis/java-bigquery/commit/3895bd94b283b6ff731cfa94426ea0691e0d54c4))
+
+
+### Bug Fixes
+
+* Update samples snippet to write to BYTES instead of ARRAY<BYTES> ([#2876](https://github.com/googleapis/java-bigquery/issues/2876)) ([7e040e9](https://github.com/googleapis/java-bigquery/commit/7e040e97eeec762ab97190dea33b94769d681bf0))
+
+
+### Dependencies
+
+* Update actions/checkout action ([#2893](https://github.com/googleapis/java-bigquery/issues/2893)) ([e3655af](https://github.com/googleapis/java-bigquery/commit/e3655af235f002128979ed592c5aade33a4c7596))
+* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.16.1 ([#2892](https://github.com/googleapis/java-bigquery/issues/2892)) ([e1d9871](https://github.com/googleapis/java-bigquery/commit/e1d987199ad8994aa3e9115daf26e0fb27aef911))
+* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.27 ([#2885](https://github.com/googleapis/java-bigquery/issues/2885)) ([2237ca2](https://github.com/googleapis/java-bigquery/commit/2237ca2a1dbe9e1dc1d5e6c0dc2bd2fd39e01ef0))
+* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.27 ([#2886](https://github.com/googleapis/java-bigquery/issues/2886)) ([539b4e6](https://github.com/googleapis/java-bigquery/commit/539b4e62f80598fb510fad37429ae0441db04c6f))
+* Update github/codeql-action action to v2.21.4 ([#2829](https://github.com/googleapis/java-bigquery/issues/2829)) ([599e3b3](https://github.com/googleapis/java-bigquery/commit/599e3b3d7e948a0688c6e08d4910f9db5c532f99))
+* Update github/codeql-action action to v2.21.8 - abandoned ([#2897](https://github.com/googleapis/java-bigquery/issues/2897)) ([ab4e1d0](https://github.com/googleapis/java-bigquery/commit/ab4e1d026c34b7d28caaf5b0b1465ac2de62c530))
+* Update github/codeql-action action to v2.21.8 ([#2889](https://github.com/googleapis/java-bigquery/issues/2889)) ([b568026](https://github.com/googleapis/java-bigquery/commit/b568026fe1b8fb7365306b718b5f8540fb13b8dc))
+* Update github/codeql-action action to v2.21.9 ([#2901](https://github.com/googleapis/java-bigquery/issues/2901)) ([33a729f](https://github.com/googleapis/java-bigquery/commit/33a729f367ba6d9f04595e1b781c7eb321289380))
+
## [2.32.0](https://github.com/googleapis/java-bigquery/compare/v2.31.2...v2.32.0) (2023-09-14)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index adb3df32a..5c3a2a765 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.32.1-SNAPSHOT
+ 2.33.0
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index e8857bfc4..8e836b6f3 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.32.1-SNAPSHOT
+ 2.33.0
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.32.1-SNAPSHOT
+ 2.33.0
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 40abac928..13123299d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.32.1-SNAPSHOT
+ 2.33.0
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.32.1-SNAPSHOT
+ 2.33.0
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 0a0005d9c..7f01cd52e 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.32.1-SNAPSHOT
+ 2.33.0
diff --git a/versions.txt b/versions.txt
index 9301fb640..139a31485 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.32.0:2.32.1-SNAPSHOT
\ No newline at end of file
+google-cloud-bigquery:2.33.0:2.33.0
\ No newline at end of file
From 8f85a4d540623e8b4c83005e62e842ba36f8fb1b Mon Sep 17 00:00:00 2001
From: Obada Alabbadi <76101898+obada-ab@users.noreply.github.com>
Date: Thu, 28 Sep 2023 10:18:14 +0200
Subject: [PATCH 041/393] fix: dry run NPE when there is no query parameters
(#2899)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [X] Make sure to open an issue as a [bug/issue](https://togithub.com/googleapis/java-bigquery/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
- [X] Ensure the tests and linter pass
- [X] Code coverage does not decrease (if any source code was changed)
- [X] Appropriate docs were updated (if necessary)
Fixes #2895 ☕️
---
.../google/cloud/bigquery/ConnectionImpl.java | 5 +++-
.../cloud/bigquery/ConnectionImplTest.java | 28 +++++++++++++++++++
.../cloud/bigquery/it/ITBigQueryTest.java | 28 +++++++++++++++++++
3 files changed, 60 insertions(+), 1 deletion(-)
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 17a459312..2d0367790 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
@@ -55,6 +55,7 @@
import java.io.IOException;
import java.util.AbstractList;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
@@ -173,7 +174,9 @@ public BigQueryDryRunResult dryRun(String sql) throws BigQuerySQLException {
List queryParametersPb =
dryRunJob.getStatistics().getQuery().getUndeclaredQueryParameters();
List queryParameters =
- Lists.transform(queryParametersPb, QUERY_PARAMETER_FROM_PB_FUNCTION);
+ queryParametersPb == null
+ ? Collections.emptyList()
+ : Lists.transform(queryParametersPb, QUERY_PARAMETER_FROM_PB_FUNCTION);
QueryStatistics queryStatistics = JobStatistics.fromPb(dryRunJob);
SessionInfo sessionInfo =
queryStatistics.getSessionInfo() == null ? null : queryStatistics.getSessionInfo();
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/ConnectionImplTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/ConnectionImplTest.java
index d6348f053..dff73d6bd 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/ConnectionImplTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/ConnectionImplTest.java
@@ -237,6 +237,34 @@ public void testQueryDryRun() throws BigQuerySQLException {
.createJobForQuery(any(com.google.api.services.bigquery.model.Job.class));
}
+ @Test
+ public void testQueryDryRunNoQueryParameters() throws BigQuerySQLException {
+ com.google.api.services.bigquery.model.JobStatistics2 queryMock =
+ new com.google.api.services.bigquery.model.JobStatistics2()
+ .setSchema(FAST_QUERY_TABLESCHEMA);
+ com.google.api.services.bigquery.model.JobStatistics jobStatsMock =
+ new com.google.api.services.bigquery.model.JobStatistics()
+ .setCreationTime(1234L)
+ .setStartTime(5678L)
+ .setQuery(queryMock);
+ com.google.api.services.bigquery.model.JobConfigurationQuery jobConfigurationQuery =
+ new com.google.api.services.bigquery.model.JobConfigurationQuery();
+ com.google.api.services.bigquery.model.JobConfiguration jobConfig =
+ new com.google.api.services.bigquery.model.JobConfiguration()
+ .setQuery(jobConfigurationQuery);
+ com.google.api.services.bigquery.model.Job mockDryRunJob =
+ new com.google.api.services.bigquery.model.Job()
+ .setStatistics(jobStatsMock)
+ .setConfiguration(jobConfig);
+ when(bigqueryRpcMock.createJobForQuery(any(com.google.api.services.bigquery.model.Job.class)))
+ .thenReturn(mockDryRunJob);
+ BigQueryDryRunResult dryRunResult = connection.dryRun(DRY_RUN_SQL);
+ assertEquals(0, dryRunResult.getQueryParameters().size());
+ assertEquals(QUERY_SCHEMA, dryRunResult.getSchema());
+ verify(bigqueryRpcMock, times(1))
+ .createJobForQuery(any(com.google.api.services.bigquery.model.Job.class));
+ }
+
@Test
public void testParseDataTask() throws InterruptedException {
BlockingQueue, Boolean>> pageCache =
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
index cf180f9a3..549066c5f 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
@@ -2989,6 +2989,34 @@ public void testConnectionImplDryRun() throws SQLException {
assertEquals(StatementType.SELECT, queryStatistics.getStatementType());
}
+ @Test
+ public void testConnectionImplDryRunNoQueryParameters() throws SQLException {
+ String query =
+ String.format(
+ "select StringField, BigNumericField, BooleanField, BytesField, IntegerField, "
+ + "TimestampField, FloatField, NumericField, TimeField, DateField, DateTimeField, "
+ + "GeographyField, RecordField.BytesField, RecordField.BooleanField, "
+ + "IntegerArrayField from %s order by TimestampField",
+ TABLE_ID_FASTQUERY_BQ_RESULTSET.getTable());
+ ConnectionSettings connectionSettings =
+ ConnectionSettings.newBuilder()
+ .setDefaultDataset(DatasetId.of(DATASET))
+ .setCreateSession(true)
+ .build();
+ Connection connection = bigquery.createConnection(connectionSettings);
+ BigQueryDryRunResult bigQueryDryRunResultSet = connection.dryRun(query);
+ assertNotNull(bigQueryDryRunResultSet.getSchema());
+ assertEquals(
+ BQ_RESULTSET_EXPECTED_SCHEMA, bigQueryDryRunResultSet.getSchema()); // match the schema
+ List queryParameters = bigQueryDryRunResultSet.getQueryParameters();
+ assertEquals(0, queryParameters.size());
+ QueryStatistics queryStatistics = bigQueryDryRunResultSet.getStatistics().getQueryStatistics();
+ assertNotNull(queryStatistics);
+ SessionInfo sessionInfo = bigQueryDryRunResultSet.getStatistics().getSessionInfo();
+ assertNotNull(sessionInfo.getSessionId());
+ assertEquals(StatementType.SELECT, queryStatistics.getStatementType());
+ }
+
@Test
// This test case test the order of the records, making sure that the result is not jumbled up due
// to the multithreaded BigQueryResult implementation
From b0a3311a85132f077f183251c3ad4f1205fb2fb3 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Thu, 28 Sep 2023 14:28:18 -0400
Subject: [PATCH 042/393] chore(main): release 2.33.1-SNAPSHOT (#2902)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(main): release 2.33.1-SNAPSHOT
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot
---
README.md | 6 +++---
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
6 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/README.md b/README.md
index 60649dc7b..e7eb451e7 100644
--- a/README.md
+++ b/README.md
@@ -60,13 +60,13 @@ implementation 'com.google.cloud:google-cloud-bigquery'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigquery:2.32.0'
+implementation 'com.google.cloud:google-cloud-bigquery:2.33.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.32.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.33.0"
```
@@ -351,7 +351,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquery/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.32.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.33.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 5c3a2a765..9ba91158f 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.33.0
+ 2.33.1-SNAPSHOT
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 8e836b6f3..64ca9d223 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.33.0
+ 2.33.1-SNAPSHOT
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.33.0
+ 2.33.1-SNAPSHOT
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 13123299d..047ad0cdb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.33.0
+ 2.33.1-SNAPSHOT
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.33.0
+ 2.33.1-SNAPSHOT
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 7f01cd52e..e0363b69e 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.33.0
+ 2.33.1-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index 139a31485..d9423a3ac 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.33.0:2.33.0
\ No newline at end of file
+google-cloud-bigquery:2.33.0:2.33.1-SNAPSHOT
\ No newline at end of file
From 0ab89134897bed696d50e22aebc2f651684ff999 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 28 Sep 2023 21:06:34 +0200
Subject: [PATCH 043/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquerystorage-bom to v2.43.0 (#2906)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 047ad0cdb..3d5313499 100644
--- a/pom.xml
+++ b/pom.xml
@@ -73,7 +73,7 @@
com.google.cloud
google-cloud-bigquerystorage-bom
- 2.42.0
+ 2.43.0
pom
import
From b81202b3bc4d53b2ef57edb0f9b9f3b9318c8871 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 28 Sep 2023 21:06:59 +0200
Subject: [PATCH 044/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquery to v2.33.0 (#2903)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigquery to v2.33.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 2 +-
samples/install-without-bom/pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index e7eb451e7..80b1ce1a9 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquery
- 2.32.0
+ 2.33.0
```
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 55b2bfc13..65f4ca961 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -45,7 +45,7 @@
com.google.cloud
google-cloud-bigquery
- 2.32.0
+ 2.33.0
From 91b83db5343d757cc02e1958b6028c14cfd72e52 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Thu, 28 Sep 2023 15:45:44 -0400
Subject: [PATCH 045/393] chore(main): release 2.33.1 (#2907)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
CHANGELOG.md | 7 +++++++
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
6 files changed, 14 insertions(+), 7 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 94c2f34ac..732bdec1a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,12 @@
# Changelog
+## [2.33.1](https://github.com/googleapis/java-bigquery/compare/v2.33.0...v2.33.1) (2023-09-28)
+
+
+### Bug Fixes
+
+* Dry run NPE when there is no query parameters ([#2899](https://github.com/googleapis/java-bigquery/issues/2899)) ([8f85a4d](https://github.com/googleapis/java-bigquery/commit/8f85a4d540623e8b4c83005e62e842ba36f8fb1b))
+
## [2.33.0](https://github.com/googleapis/java-bigquery/compare/v2.32.0...v2.33.0) (2023-09-27)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 9ba91158f..cef22f9b9 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.33.1-SNAPSHOT
+ 2.33.1
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 64ca9d223..f2d3a307a 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.33.1-SNAPSHOT
+ 2.33.1
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.33.1-SNAPSHOT
+ 2.33.1
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 3d5313499..fedd467c0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.33.1-SNAPSHOT
+ 2.33.1
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.33.1-SNAPSHOT
+ 2.33.1
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index e0363b69e..dae733610 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.33.1-SNAPSHOT
+ 2.33.1
diff --git a/versions.txt b/versions.txt
index d9423a3ac..ec7dfb0ad 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.33.0:2.33.1-SNAPSHOT
\ No newline at end of file
+google-cloud-bigquery:2.33.1:2.33.1
\ No newline at end of file
From 436ee8ebe9104f6ca721f1a14bd409158c7bdb5a Mon Sep 17 00:00:00 2001
From: Obada Alabbadi <76101898+obada-ab@users.noreply.github.com>
Date: Tue, 3 Oct 2023 10:42:13 +0200
Subject: [PATCH 046/393] fix: getDouble in read API path (#2919)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [X] Make sure to open an issue as a [bug/issue](https://togithub.com/googleapis/java-bigquery/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
- [X] Ensure the tests and linter pass
- [X] Code coverage does not decrease (if any source code was changed)
- [X] Appropriate docs were updated (if necessary)
Fixes #2905 ☕️
---
README.md | 6 +++---
.../java/com/google/cloud/bigquery/BigQueryResultImpl.java | 2 +-
.../java/com/google/cloud/bigquery/it/ITBigQueryTest.java | 5 +++--
3 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index 80b1ce1a9..80d18fd30 100644
--- a/README.md
+++ b/README.md
@@ -60,13 +60,13 @@ implementation 'com.google.cloud:google-cloud-bigquery'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigquery:2.33.0'
+implementation 'com.google.cloud:google-cloud-bigquery:2.33.1'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.33.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.33.1"
```
@@ -351,7 +351,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquery/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.33.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.33.1
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryResultImpl.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryResultImpl.java
index 2a2aba7cd..e944efceb 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryResultImpl.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryResultImpl.java
@@ -337,7 +337,7 @@ public double getDouble(String fieldName) throws SQLException {
throw new SQLException(String.format("Field %s not found", fieldName));
}
Object curVal = curRow.get(fieldName);
- return curVal == null ? 0.0d : ((BigDecimal) curVal).doubleValue();
+ return curVal == null ? 0.0d : new BigDecimal(curVal.toString()).doubleValue();
}
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
index 549066c5f..1ff859745 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
@@ -3230,7 +3230,7 @@ public void testReadAPIIterationAndOrderAsync()
throws SQLException, ExecutionException,
InterruptedException { // use read API to read 300K records and check the order
String query =
- "SELECT date, county, state_name, confirmed_cases, deaths FROM "
+ "SELECT date, county, state_name, confirmed_cases, deaths / 10 FROM "
+ TABLE_ID_LARGE.getTable()
+ " where date is not null and county is not null and state_name is not null order by confirmed_cases asc limit 300000";
@@ -3255,7 +3255,8 @@ public void testReadAPIIterationAndOrderAsync()
assertNotNull(rs.getString(1));
assertNotNull(rs.getString(2));
assertTrue(rs.getInt(3) >= 0);
- assertTrue(rs.getInt(4) >= 0);
+ assertTrue(rs.getDouble(3) >= 0);
+ assertTrue(rs.getDouble(4) >= 0);
// check if the records are sorted
assertTrue(rs.getInt(3) >= lasConfirmedCases);
From bc6ae298164e03be7ce6a7c6be2ef8e955c33a36 Mon Sep 17 00:00:00 2001
From: Alice <65933803+alicejli@users.noreply.github.com>
Date: Tue, 10 Oct 2023 09:47:34 -0400
Subject: [PATCH 047/393] build: do not declare javadoc plugin version (#2929)
---
README.md | 2 +-
pom.xml | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 80d18fd30..361806ec5 100644
--- a/README.md
+++ b/README.md
@@ -53,7 +53,7 @@ If you are using Maven without the BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:
```Groovy
-implementation platform('com.google.cloud:libraries-bom:26.23.0')
+implementation platform('com.google.cloud:libraries-bom:26.24.0')
implementation 'com.google.cloud:google-cloud-bigquery'
```
diff --git a/pom.xml b/pom.xml
index fedd467c0..860f1f329 100644
--- a/pom.xml
+++ b/pom.xml
@@ -224,7 +224,6 @@
org.apache.maven.plugins
maven-javadoc-plugin
- 3.6.0
html
From 66ab2294d57580deca45008da012e75412db6418 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 10 Oct 2023 17:03:09 +0200
Subject: [PATCH 048/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquery to v2.33.1 (#2909)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigquery to v2.33.1
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 2 +-
samples/install-without-bom/pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 361806ec5..2a30c8073 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquery
- 2.33.0
+ 2.33.1
```
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 65f4ca961..10c1f5de1 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -45,7 +45,7 @@
com.google.cloud
google-cloud-bigquery
- 2.33.0
+ 2.33.1
From 719be8a6a010fa8eaf535bb34f2ee2505f461bab Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 10 Oct 2023 17:03:33 +0200
Subject: [PATCH 049/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigqueryconnection to v2.29.0 (#2910)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigqueryconnection to v2.29.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 860f1f329..df707a4a7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -161,7 +161,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.26.0
+ 2.29.0
test
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 10c1f5de1..eab1c8fcd 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -69,7 +69,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.26.0
+ 2.29.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index dae733610..8f1de32c5 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -67,7 +67,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.26.0
+ 2.29.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index a37ed03fb..20910eb89 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -85,7 +85,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.26.0
+ 2.29.0
test
From 052f5c2f722243be39c0d93b1f81b81a0db48ef1 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 10 Oct 2023 17:03:57 +0200
Subject: [PATCH 050/393] deps: update dependency
com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.29.0
(#2911)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.29.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index df707a4a7..1503c0d7b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -167,7 +167,7 @@
com.google.api.grpc
proto-google-cloud-bigqueryconnection-v1
- 2.26.0
+ 2.29.0
test
From e05349476a8d987b2cd24ee6a80b2d9b7b9463ee Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 11 Oct 2023 16:21:12 +0200
Subject: [PATCH 051/393] deps: update dependency
com.google.cloud:google-cloud-datacatalog-bom to v1.33.0 (#2912)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.33.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 1503c0d7b..fe077b043 100644
--- a/pom.xml
+++ b/pom.xml
@@ -97,7 +97,7 @@
com.google.cloud
google-cloud-datacatalog-bom
- 1.30.0
+ 1.33.0
pom
import
From e497cb07c16350bf3b24921368cb3fb78fc3512b Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 11 Oct 2023 16:21:39 +0200
Subject: [PATCH 052/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigtable to v2.27.3 (#2914)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigtable to v2.27.3
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index eab1c8fcd..a3b699fef 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -63,7 +63,7 @@
com.google.cloud
google-cloud-bigtable
- 2.27.2
+ 2.27.3
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 8f1de32c5..2fc00f056 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -61,7 +61,7 @@
com.google.cloud
google-cloud-bigtable
- 2.27.2
+ 2.27.3
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 20910eb89..0436705e7 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -79,7 +79,7 @@
com.google.cloud
google-cloud-bigtable
- 2.27.2
+ 2.27.3
test
From f0fb64f43817c5aa53adb6c5152afe3fd44b7df1 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 11 Oct 2023 16:22:00 +0200
Subject: [PATCH 053/393] deps: update dependency
com.google.apis:google-api-services-bigquery to v2-rev20230925-2.0.0 (#2921)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update dependency com.google.apis:google-api-services-bigquery to v2-rev20230925-2.0.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index fe077b043..755ec2034 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,7 +54,7 @@
UTF-8
github
google-cloud-bigquery-parent
- v2-rev20230812-2.0.0
+ v2-rev20230925-2.0.0
3.16.1
12.0.1
From f67a67078791a685bdfb0be86d461737a7fa9314 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 11 Oct 2023 16:22:22 +0200
Subject: [PATCH 054/393] build(deps): update dependency
com.google.cloud:google-cloud-shared-config to v1.5.8 (#2924)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.8
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 755ec2034..47e367328 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
com.google.cloud
google-cloud-shared-config
- 1.5.7
+ 1.5.8
From 33ce4aee8b10f630212d96901af00f063c43f440 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 11 Oct 2023 16:22:53 +0200
Subject: [PATCH 055/393] deps: update github/codeql-action action to v2.22.0
(#2926)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update github/codeql-action action to v2.22.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 32d3cc29b..72c0fc871 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@ddccb873888234080b77e9bc2d4764d5ccaaccf9 # v2.21.9
+ uses: github/codeql-action/upload-sarif@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0
with:
sarif_file: results.sarif
From 93bfd8eb7fe35121e97b06cf8b103a3960fe9535 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 11 Oct 2023 16:23:21 +0200
Subject: [PATCH 056/393] deps: update ossf/scorecard-action action to v2.3.0
(#2927)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update ossf/scorecard-action action to v2.3.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 72c0fc871..14f628fc9 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -37,7 +37,7 @@ jobs:
persist-credentials: false
- name: "Run analysis"
- uses: ossf/scorecard-action@08b4669551908b1024bb425080c797723083c031 # v2.2.0
+ uses: ossf/scorecard-action@483ef80eb98fb506c348f7d62e28055e49fe2398 # v2.3.0
with:
results_file: results.sarif
results_format: sarif
From 7c05b51364e38a4fb6b193ef6de930110c1266db Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Wed, 11 Oct 2023 11:28:29 -0400
Subject: [PATCH 057/393] chore(main): release 2.33.2-SNAPSHOT (#2908)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index cef22f9b9..5b508fd35 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.33.1
+ 2.33.2-SNAPSHOT
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index f2d3a307a..c7d9db971 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.33.1
+ 2.33.2-SNAPSHOT
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.33.1
+ 2.33.2-SNAPSHOT
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 47e367328..0715de4df 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.33.1
+ 2.33.2-SNAPSHOT
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.33.1
+ 2.33.2-SNAPSHOT
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 2fc00f056..daf40c959 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.33.1
+ 2.33.2-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index ec7dfb0ad..b9e92abbc 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.33.1:2.33.1
\ No newline at end of file
+google-cloud-bigquery:2.33.1:2.33.2-SNAPSHOT
\ No newline at end of file
From 25a94f1da840c0cb32bed882e18f7b10f9890d04 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 11 Oct 2023 17:28:57 +0200
Subject: [PATCH 058/393] deps: update dependency
com.google.cloud:google-cloud-shared-dependencies to v3.17.0 (#2931)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 0715de4df..a771fb99b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,7 +55,7 @@
github
google-cloud-bigquery-parent
v2-rev20230925-2.0.0
- 3.16.1
+ 3.17.0
12.0.1
From f6b4b60a08ad3de409267581ba2e1145d5d1073d Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 11 Oct 2023 17:29:30 +0200
Subject: [PATCH 059/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigtable to v2.27.4 (#2933)
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index a3b699fef..0648fec10 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -63,7 +63,7 @@
com.google.cloud
google-cloud-bigtable
- 2.27.3
+ 2.27.4
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index daf40c959..4236aca13 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -61,7 +61,7 @@
com.google.cloud
google-cloud-bigtable
- 2.27.3
+ 2.27.4
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 0436705e7..352e86ada 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -79,7 +79,7 @@
com.google.cloud
google-cloud-bigtable
- 2.27.3
+ 2.27.4
test
From 7ae7b99ab21fcd6e74cbaa95e750da961c09ae80 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 11 Oct 2023 17:29:54 +0200
Subject: [PATCH 060/393] deps: update github/codeql-action action to v2.22.1
(#2934)
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 14f628fc9..71db8036b 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0
+ uses: github/codeql-action/upload-sarif@fdcae64e1484d349b3366718cdfef3d404390e85 # v2.22.1
with:
sarif_file: results.sarif
From 1831e5f8bcdb70e5d562925277c90774e830b037 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 11 Oct 2023 18:53:16 +0200
Subject: [PATCH 061/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquerystorage-bom to v2.44.0 (#2936)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index a771fb99b..1e6b4f8d5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -73,7 +73,7 @@
com.google.cloud
google-cloud-bigquerystorage-bom
- 2.43.0
+ 2.44.0
pom
import
From b82692a82f4bbed88b7954cd50aeb6cef1416b52 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Wed, 11 Oct 2023 13:56:20 -0400
Subject: [PATCH 062/393] chore(main): release 2.33.2 (#2937)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
CHANGELOG.md | 18 ++++++++++++++++++
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
6 files changed, 25 insertions(+), 7 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 732bdec1a..07d11f888 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,23 @@
# Changelog
+## [2.33.2](https://github.com/googleapis/java-bigquery/compare/v2.33.1...v2.33.2) (2023-10-11)
+
+
+### Bug Fixes
+
+* GetDouble in read API path ([#2919](https://github.com/googleapis/java-bigquery/issues/2919)) ([436ee8e](https://github.com/googleapis/java-bigquery/commit/436ee8ebe9104f6ca721f1a14bd409158c7bdb5a))
+
+
+### Dependencies
+
+* Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.29.0 ([#2911](https://github.com/googleapis/java-bigquery/issues/2911)) ([052f5c2](https://github.com/googleapis/java-bigquery/commit/052f5c2f722243be39c0d93b1f81b81a0db48ef1))
+* Update dependency com.google.apis:google-api-services-bigquery to v2-rev20230925-2.0.0 ([#2921](https://github.com/googleapis/java-bigquery/issues/2921)) ([f0fb64f](https://github.com/googleapis/java-bigquery/commit/f0fb64f43817c5aa53adb6c5152afe3fd44b7df1))
+* Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.33.0 ([#2912](https://github.com/googleapis/java-bigquery/issues/2912)) ([e053494](https://github.com/googleapis/java-bigquery/commit/e05349476a8d987b2cd24ee6a80b2d9b7b9463ee))
+* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.17.0 ([#2931](https://github.com/googleapis/java-bigquery/issues/2931)) ([25a94f1](https://github.com/googleapis/java-bigquery/commit/25a94f1da840c0cb32bed882e18f7b10f9890d04))
+* Update github/codeql-action action to v2.22.0 ([#2926](https://github.com/googleapis/java-bigquery/issues/2926)) ([33ce4ae](https://github.com/googleapis/java-bigquery/commit/33ce4aee8b10f630212d96901af00f063c43f440))
+* Update github/codeql-action action to v2.22.1 ([#2934](https://github.com/googleapis/java-bigquery/issues/2934)) ([7ae7b99](https://github.com/googleapis/java-bigquery/commit/7ae7b99ab21fcd6e74cbaa95e750da961c09ae80))
+* Update ossf/scorecard-action action to v2.3.0 ([#2927](https://github.com/googleapis/java-bigquery/issues/2927)) ([93bfd8e](https://github.com/googleapis/java-bigquery/commit/93bfd8eb7fe35121e97b06cf8b103a3960fe9535))
+
## [2.33.1](https://github.com/googleapis/java-bigquery/compare/v2.33.0...v2.33.1) (2023-09-28)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 5b508fd35..cd086b111 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.33.2-SNAPSHOT
+ 2.33.2
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index c7d9db971..53bd43904 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.33.2-SNAPSHOT
+ 2.33.2
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.33.2-SNAPSHOT
+ 2.33.2
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 1e6b4f8d5..9def71c13 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.33.2-SNAPSHOT
+ 2.33.2
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.33.2-SNAPSHOT
+ 2.33.2
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 4236aca13..53288c26e 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.33.2-SNAPSHOT
+ 2.33.2
diff --git a/versions.txt b/versions.txt
index b9e92abbc..004398030 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.33.1:2.33.2-SNAPSHOT
\ No newline at end of file
+google-cloud-bigquery:2.33.2:2.33.2
\ No newline at end of file
From 1d660fa19f0d82c2b6ec2ea9590881e513274c25 Mon Sep 17 00:00:00 2001
From: Teja Vemparala <40125841+vteja11@users.noreply.github.com>
Date: Thu, 12 Oct 2023 10:19:13 -0700
Subject: [PATCH 063/393] feat: Add BigLakeConfiguration Property in
StandardTableDefinition.java (#2916)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* Added BigLakeConfiguration in standard table defenition
* feat: Add BigLakeConfiguration Property in StandardTableDefinition.java
* feat: Update copyright dates to 2023
* feat: Removed bigstore and gs:/ from docs
* feat: Renamed Biglake to BigLake
* feat: Adding difference entry to resolve clirr error
* feat: Refactored formatting to comply with project rules
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.../clirr-ignored-differences.xml | 5 +
.../cloud/bigquery/BigLakeConfiguration.java | 120 ++++++++++++++++++
.../bigquery/StandardTableDefinition.java | 21 +++
.../bigquery/BigLakeConfigurationTest.java | 80 ++++++++++++
.../bigquery/StandardTableDefinitionTest.java | 8 ++
5 files changed, 234 insertions(+)
create mode 100644 google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigLakeConfiguration.java
create mode 100644 google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigLakeConfigurationTest.java
diff --git a/google-cloud-bigquery/clirr-ignored-differences.xml b/google-cloud-bigquery/clirr-ignored-differences.xml
index eaeeded13..b2d5aef0f 100644
--- a/google-cloud-bigquery/clirr-ignored-differences.xml
+++ b/google-cloud-bigquery/clirr-ignored-differences.xml
@@ -109,4 +109,9 @@
com/google/cloud/bigquery/DatasetInfo*
*setExternalDatasetReference(*)
+
+ 7013
+ com/google/cloud/bigquery/StandardTableDefinition*
+ *BigLakeConfiguration(*)
+
\ No newline at end of file
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigLakeConfiguration.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigLakeConfiguration.java
new file mode 100644
index 000000000..76b3f55d9
--- /dev/null
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigLakeConfiguration.java
@@ -0,0 +1,120 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.bigquery;
+
+import com.google.auto.value.AutoValue;
+import java.io.Serializable;
+
+@AutoValue
+public abstract class BigLakeConfiguration implements Serializable {
+
+ private static final long serialVersionUID = -5951589238459622025L;
+
+ /**
+ * Credential reference for accessing external storage system. Normalized as
+ * project_id.location_id.connection_id.
+ *
+ * @return value or {@code null} for none
+ */
+ public abstract String getConnectionId();
+
+ /**
+ * Open source file format that the table data is stored in. Currently only PARQUET is supported.
+ *
+ * @return value or {@code null} for none
+ */
+ public abstract String getFileFormat();
+
+ /**
+ * Fully qualified location prefix of the external folder where data is stored. Starts with
+ * "gs://" ends with "/". Does not contain "*".
+ *
+ * @return value or {@code null} for none
+ */
+ public abstract String getStorageUri();
+
+ /**
+ * Open source file format that the table data is stored in. Currently only PARQUET is supported.
+ *
+ * @return value or {@code null} for none
+ */
+ public abstract String getTableFormat();
+
+ public static Builder newBuilder() {
+ return new AutoValue_BigLakeConfiguration.Builder();
+ }
+
+ public abstract Builder toBuilder();
+
+ @AutoValue.Builder
+ public abstract static class Builder {
+ /**
+ * [Required] Required and immutable. Credential reference for accessing external storage
+ * system. Normalized as project_id.location_id.connection_id.
+ *
+ * @param connectionId connectionId or {@code null} for none
+ */
+ public abstract Builder setConnectionId(String connectionId);
+
+ /**
+ * [Required] Required and immutable. Open source file format that the table data is stored in.
+ * Currently only PARQUET is supported.
+ *
+ * @param fileFormat fileFormat or {@code null} for none
+ */
+ public abstract Builder setFileFormat(String fileFormat);
+
+ /**
+ * [Required] Required and immutable. Fully qualified location prefix of the external folder
+ * where data is stored. Starts with "gs://" and ends with "/". Does not contain "*".
+ *
+ * @param storageUri storageUri or {@code null} for none
+ */
+ public abstract Builder setStorageUri(String storageUri);
+
+ /**
+ * [Required] Required and immutable. Open source file format that the table data is stored in.
+ * Currently only PARQUET is supported.
+ *
+ * @param tableFormat tableFormat or {@code null} for none
+ */
+ public abstract Builder setTableFormat(String tableFormat);
+
+ public abstract BigLakeConfiguration build();
+ }
+
+ com.google.api.services.bigquery.model.BigLakeConfiguration toPb() {
+ com.google.api.services.bigquery.model.BigLakeConfiguration biglakeConfiguration =
+ new com.google.api.services.bigquery.model.BigLakeConfiguration();
+ biglakeConfiguration.setConnectionId(getConnectionId());
+ biglakeConfiguration.setFileFormat(getFileFormat());
+ biglakeConfiguration.setStorageUri(getStorageUri());
+ biglakeConfiguration.setTableFormat(getTableFormat());
+
+ return biglakeConfiguration;
+ }
+
+ static BigLakeConfiguration fromPb(
+ com.google.api.services.bigquery.model.BigLakeConfiguration biglakeConfigurationPb) {
+ return newBuilder()
+ .setConnectionId(biglakeConfigurationPb.getConnectionId())
+ .setFileFormat(biglakeConfigurationPb.getFileFormat())
+ .setStorageUri(biglakeConfigurationPb.getStorageUri())
+ .setTableFormat(biglakeConfigurationPb.getTableFormat())
+ .build();
+ }
+}
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/StandardTableDefinition.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/StandardTableDefinition.java
index f4459d734..0319a6a4d 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/StandardTableDefinition.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/StandardTableDefinition.java
@@ -177,6 +177,12 @@ public abstract static class Builder
public abstract Builder setTableConstraints(TableConstraints tableConstraints);
+ /**
+ * Set the configuration of a BigLake managed table. If not set, the table is not a BigLake
+ * managed table.
+ */
+ public abstract Builder setBigLakeConfiguration(BigLakeConfiguration biglakeConfiguration);
+
/** Creates a {@code StandardTableDefinition} object. */
public abstract StandardTableDefinition build();
}
@@ -300,6 +306,13 @@ public abstract static class Builder
@Nullable
public abstract TableConstraints getTableConstraints();
+ /**
+ * [Optional] Specifies the configuration of a BigLake managed table. The value may be {@code
+ * null}.
+ */
+ @Nullable
+ public abstract BigLakeConfiguration getBigLakeConfiguration();
+
/** Returns a builder for a BigQuery standard table definition. */
public static Builder newBuilder() {
return new AutoValue_StandardTableDefinition.Builder().setType(Type.TABLE);
@@ -348,6 +361,9 @@ Table toPb() {
if (getTableConstraints() != null) {
tablePb.setTableConstraints(getTableConstraints().toPb());
}
+ if (getBigLakeConfiguration() != null) {
+ tablePb.setBiglakeConfiguration(getBigLakeConfiguration().toPb());
+ }
return tablePb;
}
@@ -409,6 +425,11 @@ static StandardTableDefinition fromPb(Table tablePb) {
if (tablePb.getTableConstraints() != null) {
builder.setTableConstraints(TableConstraints.fromPb(tablePb.getTableConstraints()));
}
+ if (tablePb.getBiglakeConfiguration() != null) {
+ builder.setBigLakeConfiguration(
+ BigLakeConfiguration.fromPb(tablePb.getBiglakeConfiguration()));
+ }
+
return builder.setNumBytes(tablePb.getNumBytes()).setLocation(tablePb.getLocation()).build();
}
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigLakeConfigurationTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigLakeConfigurationTest.java
new file mode 100644
index 000000000..afb2b5b10
--- /dev/null
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigLakeConfigurationTest.java
@@ -0,0 +1,80 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.bigquery;
+
+import static org.junit.Assert.assertEquals;
+
+import org.junit.Test;
+
+public class BigLakeConfigurationTest {
+
+ private static final String STORAGE_URI = "gs://storage-uri";
+ private static final String FILE_FORMAT = "PARQUET";
+ private static final String TABLE_FORMAT = "ICEBERG";
+ private static final String CONNECTION_ID = "us.test-connection";
+
+ private static final BigLakeConfiguration BIG_LAKE_CONFIGURATION =
+ BigLakeConfiguration.newBuilder()
+ .setStorageUri(STORAGE_URI)
+ .setFileFormat(FILE_FORMAT)
+ .setTableFormat(TABLE_FORMAT)
+ .setConnectionId(CONNECTION_ID)
+ .build();
+ private static final com.google.api.services.bigquery.model.BigLakeConfiguration
+ BIG_LAKE_CONFIGURATION_PB =
+ new com.google.api.services.bigquery.model.BigLakeConfiguration()
+ .setStorageUri(STORAGE_URI)
+ .setFileFormat(FILE_FORMAT)
+ .setTableFormat(TABLE_FORMAT)
+ .setConnectionId(CONNECTION_ID);
+
+ @Test
+ public void testToBuilder() {
+ assertEquals(STORAGE_URI, BIG_LAKE_CONFIGURATION.getStorageUri());
+ assertEquals(FILE_FORMAT, BIG_LAKE_CONFIGURATION.getFileFormat());
+ assertEquals(TABLE_FORMAT, BIG_LAKE_CONFIGURATION.getTableFormat());
+ assertEquals(CONNECTION_ID, BIG_LAKE_CONFIGURATION.getConnectionId());
+ }
+
+ @Test
+ public void testToPb() {
+ assertBigLakeConfiguration(BIG_LAKE_CONFIGURATION_PB, BIG_LAKE_CONFIGURATION.toPb());
+ }
+
+ @Test
+ public void testFromPb() {
+ assertBigLakeConfiguration(
+ BIG_LAKE_CONFIGURATION, BigLakeConfiguration.fromPb(BIG_LAKE_CONFIGURATION_PB));
+ }
+
+ private static void assertBigLakeConfiguration(
+ BigLakeConfiguration expected, BigLakeConfiguration actual) {
+ assertEquals(expected.getConnectionId(), actual.getConnectionId());
+ assertEquals(expected.getTableFormat(), actual.getTableFormat());
+ assertEquals(expected.getStorageUri(), actual.getStorageUri());
+ assertEquals(expected.getFileFormat(), actual.getFileFormat());
+ }
+
+ private static void assertBigLakeConfiguration(
+ com.google.api.services.bigquery.model.BigLakeConfiguration expected,
+ com.google.api.services.bigquery.model.BigLakeConfiguration actual) {
+ assertEquals(expected.getConnectionId(), actual.getConnectionId());
+ assertEquals(expected.getTableFormat(), actual.getTableFormat());
+ assertEquals(expected.getStorageUri(), actual.getStorageUri());
+ assertEquals(expected.getFileFormat(), actual.getFileFormat());
+ }
+}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/StandardTableDefinitionTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/StandardTableDefinitionTest.java
index df0e5d79b..8fbe3cefe 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/StandardTableDefinitionTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/StandardTableDefinitionTest.java
@@ -65,6 +65,13 @@ public class StandardTableDefinitionTest {
TimePartitioning.of(TimePartitioning.Type.DAY, 42);
private static final Clustering CLUSTERING =
Clustering.newBuilder().setFields(ImmutableList.of("Foo", "Bar")).build();
+ private static final BigLakeConfiguration BIG_LAKE_CONFIGURATION =
+ BigLakeConfiguration.newBuilder()
+ .setConnectionId("us.connection-test")
+ .setTableFormat("ICEBERG")
+ .setFileFormat("PARQUET")
+ .setStorageUri("gs://java-bigquery-test/standard-table-def")
+ .build();
private static final StandardTableDefinition TABLE_DEFINITION =
StandardTableDefinition.newBuilder()
.setLocation(LOCATION)
@@ -82,6 +89,7 @@ public class StandardTableDefinitionTest {
.setSchema(TABLE_SCHEMA)
.setTimePartitioning(TIME_PARTITIONING)
.setClustering(CLUSTERING)
+ .setBigLakeConfiguration(BIG_LAKE_CONFIGURATION)
.build();
@Test
From 5b914af089ad18577ee5be04bb86c7673f37478b Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 17 Oct 2023 21:28:14 +0200
Subject: [PATCH 064/393] build(deps): update dependency
com.google.cloud:google-cloud-shared-config to v1.6.0 (#2951)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.5.8` -> `1.6.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-shared-config/1.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-shared-config/1.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-shared-config/1.5.8/1.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-shared-config/1.5.8/1.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
---
> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
---
### Release Notes
googleapis/java-shared-config (com.google.cloud:google-cloud-shared-config)
### [`v1.6.0`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#160-2023-10-17)
[Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.5.8...v1.6.0)
##### Features
- Add graal-sdk dependency management to java-shared-config ([#683](https://togithub.com/googleapis/java-shared-config/issues/683)) ([5cd1d84](https://togithub.com/googleapis/java-shared-config/commit/5cd1d84bf2d68dbe8f9fa7e02d9065082bd56726))
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-bigquery).
---
README.md | 8 ++++----
pom.xml | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 2a30c8073..879d879e2 100644
--- a/README.md
+++ b/README.md
@@ -53,20 +53,20 @@ If you are using Maven without the BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:
```Groovy
-implementation platform('com.google.cloud:libraries-bom:26.24.0')
+implementation platform('com.google.cloud:libraries-bom:26.25.0')
implementation 'com.google.cloud:google-cloud-bigquery'
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigquery:2.33.1'
+implementation 'com.google.cloud:google-cloud-bigquery:2.33.2'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.33.1"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.33.2"
```
@@ -351,7 +351,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquery/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.33.1
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.33.2
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/pom.xml b/pom.xml
index 9def71c13..a5a2d87e1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
com.google.cloud
google-cloud-shared-config
- 1.5.8
+ 1.6.0
From 08de88a5ed63f276f7c3c033ed6d1bcb7cfa4525 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 17 Oct 2023 21:30:15 +0200
Subject: [PATCH 065/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigqueryconnection to v2.30.0 (#2941)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-bigqueryconnection](https://togithub.com/googleapis/google-cloud-java) | `2.29.0` -> `2.30.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-bigqueryconnection/2.30.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-bigqueryconnection/2.30.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-bigqueryconnection/2.29.0/2.30.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-bigqueryconnection/2.29.0/2.30.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-bigquery).
---
pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index a5a2d87e1..aaba96f2a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -161,7 +161,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.29.0
+ 2.30.0
test
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 0648fec10..8bac6d793 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -69,7 +69,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.29.0
+ 2.30.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 53288c26e..671ce2de0 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -67,7 +67,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.29.0
+ 2.30.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 352e86ada..3578d289e 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -85,7 +85,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.29.0
+ 2.30.0
test
From 4d86bb007ae3939f41c30c8698882798a0858856 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 17 Oct 2023 21:30:23 +0200
Subject: [PATCH 066/393] test(deps): update dependency
com.google.cloud:google-cloud-storage to v2.28.0 (#2938)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.27.1` -> `2.28.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-storage/2.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-storage/2.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-storage/2.27.1/2.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-storage/2.27.1/2.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
---
> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
---
### Release Notes
googleapis/java-storage (com.google.cloud:google-cloud-storage)
### [`v2.28.0`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#2280-2023-10-10)
##### Features
- Add [@BetaApi](https://togithub.com/BetaApi) BlobWriteSession#parallelCompositeUpload ([#2239](https://togithub.com/googleapis/java-storage/issues/2239)) ([f8f4e22](https://togithub.com/googleapis/java-storage/commit/f8f4e221ae81cf69387827014c9f98a466bb7f19))
##### Dependencies
- Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.17.0 ([#2250](https://togithub.com/googleapis/java-storage/issues/2250)) ([df687f2](https://togithub.com/googleapis/java-storage/commit/df687f2604be214f05d2bebc94e4d81421003577))
- Update gcr.io/cloud-devrel-public-resources/storage-testbench docker tag to v0.39.0 ([#2249](https://togithub.com/googleapis/java-storage/issues/2249)) ([fe85df9](https://togithub.com/googleapis/java-storage/commit/fe85df9bf46d76f067819ce3ed94d874818a739e))
##### Documentation
- Reorder columns in table of BlobWriteSessionConfigs.java ([#2242](https://togithub.com/googleapis/java-storage/issues/2242)) ([98e694f](https://togithub.com/googleapis/java-storage/commit/98e694f3182b194f5e6fbde4fb0a924f17a06c40))
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-bigquery).
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index aaba96f2a..9a377dadc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -155,7 +155,7 @@
com.google.cloud
google-cloud-storage
- 2.27.1
+ 2.28.0
test
From 3d0da5b5a20f49721477afbed10ea3fff43652bb Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 17 Oct 2023 21:30:36 +0200
Subject: [PATCH 067/393] deps: update dependency
com.google.apis:google-api-services-bigquery to v2-rev20231008-2.0.0 (#2946)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.apis:google-api-services-bigquery](http://nexus.sonatype.org/oss-repository-hosting.html) ([source](http://svn.sonatype.org/spice/tags/oss-parent-7)) | `v2-rev20230925-2.0.0` -> `v2-rev20231008-2.0.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.apis:google-api-services-bigquery/v2-rev20231008-2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.apis:google-api-services-bigquery/v2-rev20231008-2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.apis:google-api-services-bigquery/v2-rev20230925-2.0.0/v2-rev20231008-2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.apis:google-api-services-bigquery/v2-rev20230925-2.0.0/v2-rev20231008-2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-bigquery).
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 9a377dadc..9b6c0691d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,7 +54,7 @@
UTF-8
github
google-cloud-bigquery-parent
- v2-rev20230925-2.0.0
+ v2-rev20231008-2.0.0
3.17.0
12.0.1
From 18162c37c97eff6387e0f58d211f2c1725a9c8d3 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 17 Oct 2023 21:30:43 +0200
Subject: [PATCH 068/393] deps: update dependency
com.google.cloud:google-cloud-datacatalog-bom to v1.34.0 (#2943)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-datacatalog-bom](https://togithub.com/googleapis/google-cloud-java) | `1.33.0` -> `1.34.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-datacatalog-bom/1.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-datacatalog-bom/1.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-datacatalog-bom/1.33.0/1.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-datacatalog-bom/1.33.0/1.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-bigquery).
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 9b6c0691d..2cdca0fba 100644
--- a/pom.xml
+++ b/pom.xml
@@ -97,7 +97,7 @@
com.google.cloud
google-cloud-datacatalog-bom
- 1.33.0
+ 1.34.0
pom
import
From 2e28db5243a08db2ea708abe3c8f586cff94c1db Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 17 Oct 2023 21:32:13 +0200
Subject: [PATCH 069/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigtable to v2.28.0 (#2945)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-bigtable](https://togithub.com/googleapis/java-bigtable) | `2.27.4` -> `2.28.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-bigtable/2.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-bigtable/2.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-bigtable/2.27.4/2.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-bigtable/2.27.4/2.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
---
> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
---
### Release Notes
googleapis/java-bigtable (com.google.cloud:google-cloud-bigtable)
### [`v2.28.0`](https://togithub.com/googleapis/java-bigtable/blob/HEAD/CHANGELOG.md#2280-2023-10-12)
[Compare Source](https://togithub.com/googleapis/java-bigtable/compare/v2.27.4...v2.28.0)
##### Features
- Add support for Cloud Bigtable Request Priorities in App Profiles ([#1954](https://togithub.com/googleapis/java-bigtable/issues/1954)) ([8822571](https://togithub.com/googleapis/java-bigtable/commit/88225717b870032b8892123262d2529ba1dbd481))
- Add test profile to push metrics to test environment ([#1921](https://togithub.com/googleapis/java-bigtable/issues/1921)) ([2104315](https://togithub.com/googleapis/java-bigtable/commit/210431523ce54029db846a0d6777d5e417e039dd))
##### Dependencies
- Update shared dependencies ([#1955](https://togithub.com/googleapis/java-bigtable/issues/1955)) ([f29717e](https://togithub.com/googleapis/java-bigtable/commit/f29717e3f1af03a78ce9468cdafa8c09dfb1b216))
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-bigquery).
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 8bac6d793..4e6882e6c 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -63,7 +63,7 @@
com.google.cloud
google-cloud-bigtable
- 2.27.4
+ 2.28.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 671ce2de0..a923c5c5a 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -61,7 +61,7 @@
com.google.cloud
google-cloud-bigtable
- 2.27.4
+ 2.28.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 3578d289e..f9bc150da 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -79,7 +79,7 @@
com.google.cloud
google-cloud-bigtable
- 2.27.4
+ 2.28.0
test
From e760fcae98b23ff4e7fc3ae25f2437be220e9df9 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 17 Oct 2023 21:32:18 +0200
Subject: [PATCH 070/393] deps: update dependency
com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.30.0
(#2942)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1](https://togithub.com/googleapis/google-cloud-java) | `2.29.0` -> `2.30.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1/2.30.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1/2.30.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1/2.29.0/2.30.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1/2.29.0/2.30.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-bigquery).
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 2cdca0fba..db121fdda 100644
--- a/pom.xml
+++ b/pom.xml
@@ -167,7 +167,7 @@
com.google.api.grpc
proto-google-cloud-bigqueryconnection-v1
- 2.29.0
+ 2.30.0
test
From fa879be92bafcade88e1dd1596affec4550565dd Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 17 Oct 2023 21:34:15 +0200
Subject: [PATCH 071/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquery to v2.33.2 (#2940)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-bigquery](https://togithub.com/googleapis/java-bigquery) | `2.33.1` -> `2.33.2` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-bigquery/2.33.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-bigquery/2.33.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-bigquery/2.33.1/2.33.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-bigquery/2.33.1/2.33.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
googleapis/java-bigquery (com.google.cloud:google-cloud-bigquery)
### [`v2.33.2`](https://togithub.com/googleapis/java-bigquery/blob/HEAD/CHANGELOG.md#2332-2023-10-11)
[Compare Source](https://togithub.com/googleapis/java-bigquery/compare/v2.33.1...v2.33.2)
##### Bug Fixes
- GetDouble in read API path ([#2919](https://togithub.com/googleapis/java-bigquery/issues/2919)) ([436ee8e](https://togithub.com/googleapis/java-bigquery/commit/436ee8ebe9104f6ca721f1a14bd409158c7bdb5a))
##### Dependencies
- Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.29.0 ([#2911](https://togithub.com/googleapis/java-bigquery/issues/2911)) ([052f5c2](https://togithub.com/googleapis/java-bigquery/commit/052f5c2f722243be39c0d93b1f81b81a0db48ef1))
- Update dependency com.google.apis:google-api-services-bigquery to v2-rev20230925-2.0.0 ([#2921](https://togithub.com/googleapis/java-bigquery/issues/2921)) ([f0fb64f](https://togithub.com/googleapis/java-bigquery/commit/f0fb64f43817c5aa53adb6c5152afe3fd44b7df1))
- Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.33.0 ([#2912](https://togithub.com/googleapis/java-bigquery/issues/2912)) ([e053494](https://togithub.com/googleapis/java-bigquery/commit/e05349476a8d987b2cd24ee6a80b2d9b7b9463ee))
- Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.17.0 ([#2931](https://togithub.com/googleapis/java-bigquery/issues/2931)) ([25a94f1](https://togithub.com/googleapis/java-bigquery/commit/25a94f1da840c0cb32bed882e18f7b10f9890d04))
- Update github/codeql-action action to v2.22.0 ([#2926](https://togithub.com/googleapis/java-bigquery/issues/2926)) ([33ce4ae](https://togithub.com/googleapis/java-bigquery/commit/33ce4aee8b10f630212d96901af00f063c43f440))
- Update github/codeql-action action to v2.22.1 ([#2934](https://togithub.com/googleapis/java-bigquery/issues/2934)) ([7ae7b99](https://togithub.com/googleapis/java-bigquery/commit/7ae7b99ab21fcd6e74cbaa95e750da961c09ae80))
- Update ossf/scorecard-action action to v2.3.0 ([#2927](https://togithub.com/googleapis/java-bigquery/issues/2927)) ([93bfd8e](https://togithub.com/googleapis/java-bigquery/commit/93bfd8eb7fe35121e97b06cf8b103a3960fe9535))
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-bigquery).
---
README.md | 2 +-
samples/install-without-bom/pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 879d879e2..6eb5a01fa 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquery
- 2.33.1
+ 2.33.2
```
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 4e6882e6c..c515cb9a2 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -45,7 +45,7 @@
com.google.cloud
google-cloud-bigquery
- 2.33.1
+ 2.33.2
From c556c1837baf0d53245452d6a152910df7883262 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 18 Oct 2023 15:57:09 +0200
Subject: [PATCH 072/393] deps: update actions/checkout action to v4.1.1
(#2950)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update actions/checkout action to v4.1.1
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 71db8036b..6113c1460 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -32,7 +32,7 @@ jobs:
steps:
- name: "Checkout code"
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
+ uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
persist-credentials: false
From f584e59571f0c7918d2d83a19b00d49bd5b558c4 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 18 Oct 2023 15:57:47 +0200
Subject: [PATCH 073/393] deps: update github/codeql-action action to v2.22.2
(#2944)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update github/codeql-action action to v2.22.2
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 6113c1460..45b686d2d 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@fdcae64e1484d349b3366718cdfef3d404390e85 # v2.22.1
+ uses: github/codeql-action/upload-sarif@d90b8d79de6dc1f58e83a1499aa58d6c93dc28de # v2.22.2
with:
sarif_file: results.sarif
From 1b2bc18bf49d06e1ccd29745be649108dd28cfa5 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 18 Oct 2023 17:07:49 +0200
Subject: [PATCH 074/393] deps: update github/codeql-action action to v2.22.3
(#2954)
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 45b686d2d..26169295a 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@d90b8d79de6dc1f58e83a1499aa58d6c93dc28de # v2.22.2
+ uses: github/codeql-action/upload-sarif@0116bc2df50751f9724a2e35ef1f24d22f90e4e1 # v2.22.3
with:
sarif_file: results.sarif
From f452cf4e100b6cc211681a840ddbd0be5108d01e Mon Sep 17 00:00:00 2001
From: brendan
Date: Fri, 20 Oct 2023 09:16:16 -0400
Subject: [PATCH 075/393] feat: Add support for Dataset property
storageBillingModel (#2913)
Adds support for setting and getting the BigQuery v2 API Dataset property `storageBillingModel`, to allow end users to set the billing model depending on their use case. When no billing model is provided, the existing behavior (use the default billing model) continues.
---
.../clirr-ignored-differences.xml | 5 ++++
.../com/google/cloud/bigquery/Dataset.java | 6 +++++
.../google/cloud/bigquery/DatasetInfo.java | 25 +++++++++++++++++++
.../cloud/bigquery/DatasetInfoTest.java | 6 +++++
.../google/cloud/bigquery/DatasetTest.java | 5 ++++
.../cloud/bigquery/it/ITBigQueryTest.java | 23 +++++++++++++++++
6 files changed, 70 insertions(+)
diff --git a/google-cloud-bigquery/clirr-ignored-differences.xml b/google-cloud-bigquery/clirr-ignored-differences.xml
index b2d5aef0f..c22579a79 100644
--- a/google-cloud-bigquery/clirr-ignored-differences.xml
+++ b/google-cloud-bigquery/clirr-ignored-differences.xml
@@ -109,6 +109,11 @@
com/google/cloud/bigquery/DatasetInfo*
*setExternalDatasetReference(*)
+
+ 7013
+ com/google/cloud/bigquery/DatasetInfo*
+ *setStorageBillingModel(*)
+
7013
com/google/cloud/bigquery/StandardTableDefinition*
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Dataset.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Dataset.java
index 3ed4b8928..daadb9a85 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Dataset.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Dataset.java
@@ -158,6 +158,12 @@ public Builder setExternalDatasetReference(ExternalDatasetReference externalData
return this;
}
+ @Override
+ public Builder setStorageBillingModel(String storageBillingModel) {
+ infoBuilder.setStorageBillingModel(storageBillingModel);
+ return this;
+ }
+
@Override
public Dataset build() {
return new Dataset(bigquery, infoBuilder);
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/DatasetInfo.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/DatasetInfo.java
index 44583e0c8..0dddc0e86 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/DatasetInfo.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/DatasetInfo.java
@@ -74,6 +74,7 @@ public Dataset apply(DatasetInfo datasetInfo) {
private final Long defaultPartitionExpirationMs;
private final String defaultCollation;
private final ExternalDatasetReference externalDatasetReference;
+ private final String storageBillingModel;
/** A builder for {@code DatasetInfo} objects. */
public abstract static class Builder {
@@ -135,6 +136,12 @@ public abstract static class Builder {
public abstract Builder setExternalDatasetReference(
ExternalDatasetReference externalDatasetReference);
+ /**
+ * Optional. Storage billing model to be used for all tables in the dataset. Can be set to
+ * PHYSICAL. Default is LOGICAL.
+ */
+ public abstract Builder setStorageBillingModel(String storageBillingModel);
+
/**
* The default encryption key for all tables in the dataset. Once this property is set, all
* newly-created partitioned tables in the dataset will have encryption key set to this value,
@@ -192,6 +199,7 @@ static final class BuilderImpl extends Builder {
private Long defaultPartitionExpirationMs;
private String defaultCollation;
private ExternalDatasetReference externalDatasetReference;
+ private String storageBillingModel;
BuilderImpl() {}
@@ -212,6 +220,7 @@ static final class BuilderImpl extends Builder {
this.defaultPartitionExpirationMs = datasetInfo.defaultPartitionExpirationMs;
this.defaultCollation = datasetInfo.defaultCollation;
this.externalDatasetReference = datasetInfo.externalDatasetReference;
+ this.storageBillingModel = datasetInfo.storageBillingModel;
}
BuilderImpl(com.google.api.services.bigquery.model.Dataset datasetPb) {
@@ -250,6 +259,7 @@ public Acl apply(Dataset.Access accessPb) {
this.externalDatasetReference =
ExternalDatasetReference.fromPb(datasetPb.getExternalDatasetReference());
}
+ this.storageBillingModel = datasetPb.getStorageBillingModel();
}
@Override
@@ -356,6 +366,12 @@ public Builder setExternalDatasetReference(ExternalDatasetReference externalData
return this;
}
+ @Override
+ public Builder setStorageBillingModel(String storageBillingModel) {
+ this.storageBillingModel = storageBillingModel;
+ return this;
+ }
+
@Override
public DatasetInfo build() {
return new DatasetInfo(this);
@@ -379,6 +395,7 @@ public DatasetInfo build() {
defaultPartitionExpirationMs = builder.defaultPartitionExpirationMs;
defaultCollation = builder.defaultCollation;
externalDatasetReference = builder.externalDatasetReference;
+ storageBillingModel = builder.storageBillingModel;
}
/** Returns the dataset identity. */
@@ -508,6 +525,10 @@ public String getDefaultCollation() {
return defaultCollation;
}
+ public String getStorageBillingModel() {
+ return storageBillingModel;
+ }
+
/**
* Returns information about the external metadata storage where the dataset is defined. Filled
* out when the dataset type is EXTERNAL.
@@ -540,6 +561,7 @@ public String toString() {
.add("defaultPartitionExpirationMs", defaultPartitionExpirationMs)
.add("defaultCollation", defaultCollation)
.add("externalDatasetReference", externalDatasetReference)
+ .add("storageBillingModel", storageBillingModel)
.toString();
}
@@ -621,6 +643,9 @@ public Dataset.Access apply(Acl acl) {
if (externalDatasetReference != null) {
datasetPb.setExternalDatasetReference(externalDatasetReference.toPb());
}
+ if (storageBillingModel != null) {
+ datasetPb.setStorageBillingModel(storageBillingModel);
+ }
return datasetPb;
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/DatasetInfoTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/DatasetInfoTest.java
index c91cbc2f3..df62b7dac 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/DatasetInfoTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/DatasetInfoTest.java
@@ -58,6 +58,7 @@ public class DatasetInfoTest {
private static final DatasetId DATASET_ID_COMPLETE = DatasetId.of("project", "dataset");
private static final EncryptionConfiguration DATASET_ENCRYPTION_CONFIGURATION =
EncryptionConfiguration.newBuilder().setKmsKeyName("KMS_KEY_1").build();
+ private static final String STORAGE_BILLING_MODEL = "LOGICAL";
private static final ExternalDatasetReference EXTERNAL_DATASET_REFERENCE =
ExternalDatasetReference.newBuilder()
@@ -79,6 +80,7 @@ public class DatasetInfoTest {
.setLabels(LABELS)
.setDefaultEncryptionConfiguration(DATASET_ENCRYPTION_CONFIGURATION)
.setDefaultPartitionExpirationMs(DEFAULT_PARTITION__EXPIRATION)
+ .setStorageBillingModel(STORAGE_BILLING_MODEL)
.build();
private static final DatasetInfo DATASET_INFO_COMPLETE =
DATASET_INFO
@@ -170,6 +172,7 @@ public void testBuilder() {
assertEquals(
EXTERNAL_DATASET_REFERENCE,
DATASET_INFO_COMPLETE_WITH_EXTERNAL_DATASET_REFERENCE.getExternalDatasetReference());
+ assertEquals(STORAGE_BILLING_MODEL, DATASET_INFO_COMPLETE.getStorageBillingModel());
}
@Test
@@ -190,6 +193,7 @@ public void testOf() {
assertNull(datasetInfo.getDefaultPartitionExpirationMs());
assertTrue(datasetInfo.getLabels().isEmpty());
assertNull(datasetInfo.getExternalDatasetReference());
+ assertNull(datasetInfo.getStorageBillingModel());
datasetInfo = DatasetInfo.of(DATASET_ID);
assertEquals(DATASET_ID, datasetInfo.getDatasetId());
@@ -207,6 +211,7 @@ public void testOf() {
assertNull(datasetInfo.getDefaultPartitionExpirationMs());
assertTrue(datasetInfo.getLabels().isEmpty());
assertNull(datasetInfo.getExternalDatasetReference());
+ assertNull(datasetInfo.getStorageBillingModel());
}
@Test
@@ -243,5 +248,6 @@ private void compareDatasets(DatasetInfo expected, DatasetInfo value) {
assertEquals(
expected.getDefaultPartitionExpirationMs(), value.getDefaultPartitionExpirationMs());
assertEquals(expected.getExternalDatasetReference(), value.getExternalDatasetReference());
+ assertEquals(expected.getStorageBillingModel(), value.getStorageBillingModel());
}
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/DatasetTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/DatasetTest.java
index b244cf260..bc42976b2 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/DatasetTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/DatasetTest.java
@@ -66,6 +66,7 @@ public class DatasetTest {
private static final String SELF_LINK = "http://bigquery/p/d";
private static final DatasetInfo DATASET_INFO = DatasetInfo.newBuilder(DATASET_ID).build();
private static final Field FIELD = Field.of("FieldName", LegacySQLTypeName.INTEGER);
+ private static final String STORAGE_BILLING_MODEL = "LOGICAL";
private static final StandardTableDefinition TABLE_DEFINITION =
StandardTableDefinition.of(Schema.of(FIELD));
private static final ViewDefinition VIEW_DEFINITION = ViewDefinition.of("QUERY");
@@ -120,6 +121,7 @@ public void testBuilder() {
.setLocation(LOCATION)
.setSelfLink(SELF_LINK)
.setLabels(LABELS)
+ .setStorageBillingModel(STORAGE_BILLING_MODEL)
.build();
assertEquals(DATASET_ID, builtDataset.getDatasetId());
assertEquals(ACCESS_RULES, builtDataset.getAcl());
@@ -133,6 +135,7 @@ public void testBuilder() {
assertEquals(LOCATION, builtDataset.getLocation());
assertEquals(SELF_LINK, builtDataset.getSelfLink());
assertEquals(LABELS, builtDataset.getLabels());
+ assertEquals(STORAGE_BILLING_MODEL, builtDataset.getStorageBillingModel());
}
@Test
@@ -340,6 +343,7 @@ public void testExternalDatasetReference() {
.setSelfLink(SELF_LINK)
.setLabels(LABELS)
.setExternalDatasetReference(EXTERNAL_DATASET_REFERENCE)
+ .setStorageBillingModel(STORAGE_BILLING_MODEL)
.build();
assertEquals(
EXTERNAL_DATASET_REFERENCE,
@@ -369,5 +373,6 @@ private void compareDatasetInfo(DatasetInfo expected, DatasetInfo value) {
assertEquals(expected.getDefaultTableLifetime(), value.getDefaultTableLifetime());
assertEquals(expected.getLastModified(), value.getLastModified());
assertEquals(expected.getExternalDatasetReference(), value.getExternalDatasetReference());
+ assertEquals(expected.getStorageBillingModel(), value.getStorageBillingModel());
}
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
index 1ff859745..909500be8 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
@@ -202,6 +202,7 @@ public class ITBigQueryTest {
private static final String ROUTINE_DATASET = RemoteBigQueryHelper.generateDatasetName();
private static final String PROJECT_ID = ServiceOptions.getDefaultProjectId();
private static final String RANDOM_ID = UUID.randomUUID().toString().substring(0, 8);
+ private static final String STORAGE_BILLING_MODEL = "LOGICAL";
private static final String CLOUD_SAMPLES_DATA =
Optional.fromNullable(System.getenv("CLOUD_SAMPLES_DATA_BUCKET")).or("cloud-samples-data");
private static final Map LABELS =
@@ -965,6 +966,7 @@ public void testGetDatasetWithSelectedFields() {
assertNull(dataset.getLastModified());
assertNull(dataset.getLocation());
assertNull(dataset.getSelfLink());
+ assertNull(dataset.getStorageBillingModel());
}
@Test
@@ -980,6 +982,7 @@ public void testUpdateDataset() {
assertThat(dataset.getDatasetId().getDataset()).isEqualTo(OTHER_DATASET);
assertThat(dataset.getDescription()).isEqualTo("Some Description");
assertThat(dataset.getLabels()).containsExactly("a", "b");
+ assertThat(dataset.getStorageBillingModel()).isNull();
Map updateLabels = new HashMap<>();
updateLabels.put("x", "y");
@@ -990,9 +993,11 @@ public void testUpdateDataset() {
.toBuilder()
.setDescription("Updated Description")
.setLabels(updateLabels)
+ .setStorageBillingModel("LOGICAL")
.build());
assertThat(updatedDataset.getDescription()).isEqualTo("Updated Description");
assertThat(updatedDataset.getLabels()).containsExactly("x", "y");
+ assertThat(updatedDataset.getStorageBillingModel()).isEqualTo("LOGICAL");
updatedDataset = bigquery.update(updatedDataset.toBuilder().setLabels(null).build());
assertThat(updatedDataset.getLabels()).isEmpty();
@@ -1022,6 +1027,7 @@ public void testUpdateDatasetWithSelectedFields() {
assertNull(updatedDataset.getLastModified());
assertNull(updatedDataset.getLocation());
assertNull(updatedDataset.getSelfLink());
+ assertNull(updatedDataset.getStorageBillingModel());
assertTrue(dataset.delete());
}
@@ -1283,6 +1289,23 @@ public void testCreateTableWithConstraints() {
bigquery.delete(tableId);
}
+ @Test
+ public void testCreateDatasetWithSpecifiedStorageBillingModel() {
+ String billingModelDataset = RemoteBigQueryHelper.generateDatasetName();
+ DatasetInfo info =
+ DatasetInfo.newBuilder(billingModelDataset)
+ .setDescription(DESCRIPTION)
+ .setStorageBillingModel(STORAGE_BILLING_MODEL)
+ .setLabels(LABELS)
+ .build();
+ bigquery.create(info);
+
+ Dataset dataset = bigquery.getDataset(DatasetId.of(billingModelDataset));
+ assertEquals(STORAGE_BILLING_MODEL, dataset.getStorageBillingModel());
+
+ RemoteBigQueryHelper.forceDelete(bigquery, billingModelDataset);
+ }
+
@Test
public void testCreateDatasetWithDefaultCollation() {
String collationDataset = RemoteBigQueryHelper.generateDatasetName();
From 113b8f27419365c7277c6a300c5f07cea954cca1 Mon Sep 17 00:00:00 2001
From: Obada Alabbadi <76101898+obada-ab@users.noreply.github.com>
Date: Tue, 24 Oct 2023 12:22:14 +0300
Subject: [PATCH 076/393] feat: add support for preview features (#2923)
Enables preview query features, which currently only includes stateless queries (queries without jobId). These features won't always be enabled on the service side and there are additional checks and conditions.
Fixes https://togithub.com/googleapis/java-bigquery/issues/2949
---
.../com/google/cloud/bigquery/BigQuery.java | 10 ++++++
.../google/cloud/bigquery/BigQueryImpl.java | 10 ++++++
.../cloud/bigquery/BigQueryOptions.java | 11 ++++++
.../cloud/bigquery/QueryJobConfiguration.java | 36 ++++++++++++++++++-
.../cloud/bigquery/QueryRequestInfo.java | 10 +++++-
.../bigquery/QueryJobConfigurationTest.java | 11 ++++++
.../cloud/bigquery/QueryRequestInfoTest.java | 5 +++
.../cloud/bigquery/it/ITBigQueryTest.java | 26 ++++++++++++++
8 files changed, 117 insertions(+), 2 deletions(-)
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQuery.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQuery.java
index ac6262e69..80fd6618d 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQuery.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQuery.java
@@ -1596,6 +1596,16 @@ TableResult listTableData(
* }
*
*
+ * This method supports query-related preview features via environmental variables (enabled by
+ * setting the {@code QUERY_PREVIEW_ENABLED} environment variable to "TRUE"). Specifically, this
+ * method supports:
+ *
+ *
+ * Stateless queries : query execution without corresponding job metadata
+ *
+ *
+ * The behaviour of these preview features is controlled by the bigquery service as well
+ *
* @throws BigQueryException upon failure
* @throws InterruptedException if the current thread gets interrupted while waiting for the query
* to complete
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 ef7e8cb8b..0d5842724 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
@@ -41,6 +41,7 @@
import com.google.cloud.RetryHelper.RetryHelperException;
import com.google.cloud.Tuple;
import com.google.cloud.bigquery.InsertAllRequest.RowToInsert;
+import com.google.cloud.bigquery.QueryJobConfiguration.JobCreationMode;
import com.google.cloud.bigquery.spi.v2.BigQueryRpc;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Function;
@@ -1324,6 +1325,14 @@ public TableResult query(QueryJobConfiguration configuration, JobOption... optio
throws InterruptedException, JobException {
Job.checkNotDryRun(configuration, "query");
+ if (getOptions().isQueryPreviewEnabled()) {
+ configuration =
+ configuration
+ .toBuilder()
+ .setJobCreationMode(JobCreationMode.JOB_CREATION_OPTIONAL)
+ .build();
+ }
+
// If all parameters passed in configuration are supported by the query() method on the backend,
// put on fast path
QueryRequestInfo requestInfo = new QueryRequestInfo(configuration);
@@ -1416,6 +1425,7 @@ public com.google.api.services.bigquery.model.QueryResponse call() {
public TableResult query(QueryJobConfiguration configuration, JobId jobId, JobOption... options)
throws InterruptedException, JobException {
Job.checkNotDryRun(configuration, "query");
+
// If all parameters passed in configuration are supported by the query() method on the backend,
// put on fast path
QueryRequestInfo requestInfo = new QueryRequestInfo(configuration);
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryOptions.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryOptions.java
index 2e22ba922..e53439f02 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryOptions.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryOptions.java
@@ -24,6 +24,7 @@
import com.google.cloud.bigquery.spi.v2.BigQueryRpc;
import com.google.cloud.bigquery.spi.v2.HttpBigQueryRpc;
import com.google.cloud.http.HttpTransportOptions;
+import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.ImmutableSet;
import java.util.Set;
@@ -37,6 +38,7 @@ public class BigQueryOptions extends ServiceOptions {
private final String location;
// set the option ThrowNotFound when you want to throw the exception when the value not found
private boolean setThrowNotFound;
+ private String queryPreviewEnabled = System.getenv("QUERY_PREVIEW_ENABLED");
public static class DefaultBigQueryFactory implements BigQueryFactory {
@@ -130,10 +132,19 @@ public String getLocation() {
return location;
}
+ public boolean isQueryPreviewEnabled() {
+ return queryPreviewEnabled != null && queryPreviewEnabled.equalsIgnoreCase("TRUE");
+ }
+
public void setThrowNotFound(boolean setThrowNotFound) {
this.setThrowNotFound = setThrowNotFound;
}
+ @VisibleForTesting
+ public void setQueryPreviewEnabled(String queryPreviewEnabled) {
+ this.queryPreviewEnabled = queryPreviewEnabled;
+ }
+
public boolean getThrowNotFound() {
return setThrowNotFound;
}
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryJobConfiguration.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryJobConfiguration.java
index cc726bdd1..0ad85137b 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryJobConfiguration.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryJobConfiguration.java
@@ -73,6 +73,7 @@ public final class QueryJobConfiguration extends JobConfiguration {
private final List connectionProperties;
// maxResults is only used for fast query path
private final Long maxResults;
+ private final JobCreationMode jobCreationMode;
/**
* Priority levels for a query. If not specified the priority is assumed to be {@link
@@ -94,6 +95,21 @@ public enum Priority {
BATCH
}
+ /** Job Creation Mode provides different options on job creation. */
+ enum JobCreationMode {
+ /** Unspecified JobCreationMode, defaults to JOB_CREATION_REQUIRED. */
+ JOB_CREATION_MODE_UNSPECIFIED,
+ /** Default. Job creation is always required. */
+ JOB_CREATION_REQUIRED,
+ /**
+ * Job creation is optional. Returning immediate results is prioritized. BigQuery will
+ * automatically determine if a Job needs to be created. The conditions under which BigQuery can
+ * decide to not create a Job are subject to change. If Job creation is required,
+ * JOB_CREATION_REQUIRED mode should be used, which is the default.
+ */
+ JOB_CREATION_OPTIONAL,
+ }
+
public static final class Builder
extends JobConfiguration.Builder {
@@ -125,6 +141,7 @@ public static final class Builder
private RangePartitioning rangePartitioning;
private List connectionProperties;
private Long maxResults;
+ private JobCreationMode jobCreationMode;
private Builder() {
super(Type.QUERY);
@@ -160,6 +177,7 @@ private Builder(QueryJobConfiguration jobConfiguration) {
this.rangePartitioning = jobConfiguration.rangePartitioning;
this.connectionProperties = jobConfiguration.connectionProperties;
this.maxResults = jobConfiguration.maxResults;
+ this.jobCreationMode = jobConfiguration.jobCreationMode;
}
private Builder(com.google.api.services.bigquery.model.JobConfiguration configurationPb) {
@@ -655,6 +673,15 @@ public Builder setMaxResults(Long maxResults) {
return this;
}
+ /**
+ * Provides different options on job creation. If not specified the job creation mode is assumed
+ * to be {@link JobCreationMode#JOB_CREATION_REQUIRED}.
+ */
+ Builder setJobCreationMode(JobCreationMode jobCreationMode) {
+ this.jobCreationMode = jobCreationMode;
+ return this;
+ }
+
public QueryJobConfiguration build() {
return new QueryJobConfiguration(this);
}
@@ -699,6 +726,7 @@ private QueryJobConfiguration(Builder builder) {
this.rangePartitioning = builder.rangePartitioning;
this.connectionProperties = builder.connectionProperties;
this.maxResults = builder.maxResults;
+ this.jobCreationMode = builder.jobCreationMode;
}
/**
@@ -910,6 +938,11 @@ public Long getMaxResults() {
return maxResults;
}
+ /** Returns the job creation mode. */
+ JobCreationMode getJobCreationMode() {
+ return jobCreationMode;
+ }
+
@Override
public Builder toBuilder() {
return new Builder(this);
@@ -944,7 +977,8 @@ ToStringHelper toStringHelper() {
.add("jobTimeoutMs", jobTimeoutMs)
.add("labels", labels)
.add("rangePartitioning", rangePartitioning)
- .add("connectionProperties", connectionProperties);
+ .add("connectionProperties", connectionProperties)
+ .add("jobCreationMode", jobCreationMode);
}
@Override
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryRequestInfo.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryRequestInfo.java
index 00a898363..00a11f723 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryRequestInfo.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryRequestInfo.java
@@ -18,6 +18,7 @@
import com.google.api.services.bigquery.model.QueryParameter;
import com.google.api.services.bigquery.model.QueryRequest;
+import com.google.cloud.bigquery.QueryJobConfiguration.JobCreationMode;
import com.google.common.base.MoreObjects;
import com.google.common.base.Objects;
import com.google.common.collect.Lists;
@@ -40,6 +41,7 @@ final class QueryRequestInfo {
private final Boolean createSession;
private final Boolean useQueryCache;
private final Boolean useLegacySql;
+ private final JobCreationMode jobCreationMode;
QueryRequestInfo(QueryJobConfiguration config) {
this.config = config;
@@ -55,6 +57,7 @@ final class QueryRequestInfo {
this.createSession = config.createSession();
this.useLegacySql = config.useLegacySql();
this.useQueryCache = config.useQueryCache();
+ this.jobCreationMode = config.getJobCreationMode();
}
boolean isFastQuerySupported(JobId jobId) {
@@ -116,6 +119,9 @@ QueryRequest toPb() {
if (useQueryCache != null) {
request.setUseQueryCache(useQueryCache);
}
+ if (jobCreationMode != null) {
+ request.setJobCreationMode(jobCreationMode.toString());
+ }
return request;
}
@@ -134,6 +140,7 @@ public String toString() {
.add("createSession", createSession)
.add("useQueryCache", useQueryCache)
.add("useLegacySql", useLegacySql)
+ .add("jobCreationMode", jobCreationMode)
.toString();
}
@@ -151,7 +158,8 @@ public int hashCode() {
requestId,
createSession,
useQueryCache,
- useLegacySql);
+ useLegacySql,
+ jobCreationMode);
}
@Override
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/QueryJobConfigurationTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/QueryJobConfigurationTest.java
index 9a20219d6..f71e152e6 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/QueryJobConfigurationTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/QueryJobConfigurationTest.java
@@ -23,6 +23,7 @@
import com.google.cloud.bigquery.JobInfo.CreateDisposition;
import com.google.cloud.bigquery.JobInfo.SchemaUpdateOption;
import com.google.cloud.bigquery.JobInfo.WriteDisposition;
+import com.google.cloud.bigquery.QueryJobConfiguration.JobCreationMode;
import com.google.cloud.bigquery.QueryJobConfiguration.Priority;
import com.google.cloud.bigquery.TimePartitioning.Type;
import com.google.common.collect.ImmutableList;
@@ -110,6 +111,7 @@ public class QueryJobConfigurationTest {
private static final Map NAME_PARAMETER =
ImmutableMap.of("string", STRING_PARAMETER, "timestamp", TIMESTAMP_PARAMETER);
private static final String PARAMETER_MODE = "POSITIONAL";
+ private static final JobCreationMode JOB_CREATION_MODE = JobCreationMode.JOB_CREATION_OPTIONAL;
private static final QueryJobConfiguration QUERY_JOB_CONFIGURATION =
QueryJobConfiguration.newBuilder(QUERY)
.setUseQueryCache(USE_QUERY_CACHE)
@@ -150,6 +152,8 @@ public class QueryJobConfigurationTest {
.setPositionalParameters(ImmutableList.of())
.setNamedParameters(NAME_PARAMETER)
.build();
+ private static final QueryJobConfiguration QUERY_JOB_CONFIGURATION_SET_JOB_CREATION_MODE =
+ QUERY_JOB_CONFIGURATION.toBuilder().setJobCreationMode(JOB_CREATION_MODE).build();
@Test
public void testToBuilder() {
@@ -230,6 +234,13 @@ public void testNamedParameter() {
QUERY_JOB_CONFIGURATION_SET_NAME_PARAMETER.toBuilder().build());
}
+ @Test
+ public void testJobCreationMode() {
+ compareQueryJobConfiguration(
+ QUERY_JOB_CONFIGURATION_SET_JOB_CREATION_MODE,
+ QUERY_JOB_CONFIGURATION_SET_JOB_CREATION_MODE.toBuilder().build());
+ }
+
private void compareQueryJobConfiguration(
QueryJobConfiguration expected, QueryJobConfiguration value) {
assertEquals(expected, value);
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/QueryRequestInfoTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/QueryRequestInfoTest.java
index 456475597..0d9464c76 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/QueryRequestInfoTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/QueryRequestInfoTest.java
@@ -23,6 +23,7 @@
import com.google.cloud.bigquery.JobInfo.CreateDisposition;
import com.google.cloud.bigquery.JobInfo.SchemaUpdateOption;
import com.google.cloud.bigquery.JobInfo.WriteDisposition;
+import com.google.cloud.bigquery.QueryJobConfiguration.JobCreationMode;
import com.google.cloud.bigquery.QueryJobConfiguration.Priority;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
@@ -105,6 +106,8 @@ public class QueryRequestInfoTest {
ImmutableList.of(STRING_PARAMETER, TIMESTAMP_PARAMETER);
private static final Map NAME_PARAMETER =
ImmutableMap.of("string", STRING_PARAMETER, "timestamp", TIMESTAMP_PARAMETER);
+ private static final JobCreationMode jobCreationModeRequired =
+ JobCreationMode.JOB_CREATION_REQUIRED;
private static final QueryJobConfiguration QUERY_JOB_CONFIGURATION =
QueryJobConfiguration.newBuilder(QUERY)
.setUseQueryCache(USE_QUERY_CACHE)
@@ -131,6 +134,7 @@ public class QueryRequestInfoTest {
.setConnectionProperties(CONNECTION_PROPERTIES)
.setPositionalParameters(POSITIONAL_PARAMETER)
.setMaxResults(100L)
+ .setJobCreationMode(jobCreationModeRequired)
.build();
QueryRequestInfo REQUEST_INFO = new QueryRequestInfo(QUERY_JOB_CONFIGURATION);
private static final QueryJobConfiguration QUERY_JOB_CONFIGURATION_SUPPORTED =
@@ -194,5 +198,6 @@ private void compareQueryRequestInfo(QueryRequestInfo expected, QueryRequestInfo
assertEquals(expectedQueryReq.getCreateSession(), actualQueryReq.getCreateSession());
assertEquals(expectedQueryReq.getUseQueryCache(), actualQueryReq.getUseQueryCache());
assertEquals(expectedQueryReq.getUseLegacySql(), actualQueryReq.getUseLegacySql());
+ assertEquals(expectedQueryReq.get("jobCreationMode"), actualQueryReq.get("jobCreationMode"));
}
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
index 909500be8..8cada3e08 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
@@ -6188,4 +6188,30 @@ public void testAlreadyExistJobExceptionHandling() throws InterruptedException {
}
}
}
+
+ @Test
+ public void testStatelessQueries() throws InterruptedException {
+ // simulate setting the QUERY_PREVIEW_ENABLED environment variable
+ bigquery.getOptions().setQueryPreviewEnabled("TRUE");
+ assertNull(executeSimpleQuery().getJobId());
+
+ // the flag should be case-insensitive
+ bigquery.getOptions().setQueryPreviewEnabled("tRuE");
+ assertNull(executeSimpleQuery().getJobId());
+
+ // any other values won't enable optional job creation mode
+ bigquery.getOptions().setQueryPreviewEnabled("test_value");
+ assertNotNull(executeSimpleQuery().getJobId());
+
+ // reset the flag
+ bigquery.getOptions().setQueryPreviewEnabled(null);
+ assertNotNull(executeSimpleQuery().getJobId());
+ }
+
+ private TableResult executeSimpleQuery() throws InterruptedException {
+ String query = "SELECT 1 as one";
+ QueryJobConfiguration config = QueryJobConfiguration.newBuilder(query).build();
+ TableResult result = bigquery.query(config);
+ return result;
+ }
}
From 137fb23fa2e04df4e1bf17591fe17f84dfa3041c Mon Sep 17 00:00:00 2001
From: Neenu Shaji
Date: Wed, 25 Oct 2023 04:44:14 -0400
Subject: [PATCH 077/393] chore: run stateless query IT with allow listed
project (#2965)
Fixes #2964
---
.kokoro/nightly/integration.cfg | 4 ++--
owlbot.py | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/.kokoro/nightly/integration.cfg b/.kokoro/nightly/integration.cfg
index a2907a257..e51c7b4c6 100644
--- a/.kokoro/nightly/integration.cfg
+++ b/.kokoro/nightly/integration.cfg
@@ -13,12 +13,12 @@ env_vars: {
# TODO: remove this after we've migrated all tests and scripts
env_vars: {
key: "GCLOUD_PROJECT"
- value: "java-docs-samples-testing"
+ value: "gcloud-devel"
}
env_vars: {
key: "GOOGLE_CLOUD_PROJECT"
- value: "java-docs-samples-testing"
+ value: "gcloud-devel"
}
env_vars: {
diff --git a/owlbot.py b/owlbot.py
index bf1878a29..7a89db8ff 100644
--- a/owlbot.py
+++ b/owlbot.py
@@ -18,6 +18,7 @@
java.common_templates(excludes=[
'.kokoro/nightly/samples.cfg',
+ '.kokoro/nightly/integration.cfg',
'.kokoro/presubmit/samples.cfg',
'codecov.yaml',
'renovate.json',
From 1ee18ebeb90adeb371ef04cbfc7b18be2c24d1e8 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 25 Oct 2023 22:35:03 +0200
Subject: [PATCH 078/393] deps: update dependency
com.google.cloud:google-cloud-shared-dependencies to v3.18.0 (#2955)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index db121fdda..a69748fa5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,7 +55,7 @@
github
google-cloud-bigquery-parent
v2-rev20231008-2.0.0
- 3.17.0
+ 3.18.0
12.0.1
From 7ed55b5c075dbac827c6201d0398ff87d8240b38 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 25 Oct 2023 22:35:25 +0200
Subject: [PATCH 079/393] deps: update dependency
com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.31.0
(#2967)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index a69748fa5..f54f8f0ac 100644
--- a/pom.xml
+++ b/pom.xml
@@ -167,7 +167,7 @@
com.google.api.grpc
proto-google-cloud-bigqueryconnection-v1
- 2.30.0
+ 2.31.0
test
From 443c39d094d003cf8c379bad079a6b5015ff2625 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 25 Oct 2023 22:35:43 +0200
Subject: [PATCH 080/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigqueryconnection to v2.31.0 (#2966)
---
pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index f54f8f0ac..b7bf4189d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -161,7 +161,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.30.0
+ 2.31.0
test
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index c515cb9a2..d3f893874 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -69,7 +69,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.30.0
+ 2.31.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index a923c5c5a..0d44543bf 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -67,7 +67,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.30.0
+ 2.31.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index f9bc150da..7b1dcc297 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -85,7 +85,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.30.0
+ 2.31.0
test
From 7f5ebf79bc3b129e9225e1ff31ec177661dcbc7d Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Wed, 25 Oct 2023 16:36:00 -0400
Subject: [PATCH 081/393] chore: bump urllib3 from 1.26.17 to 1.26.18 in
/synthtool/gcp/templates/java_library/.kokoro (#1885) (#2963)
Source-Link: https://github.com/googleapis/synthtool/commit/e4a9d44f7d1ddda567c14bce7df4d93fdb010de0
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:4875b2142cb4325542ba4f3175a81921c4b2b8256db012b220e3ca9637b34154
Co-authored-by: Owl Bot
---
.github/.OwlBot.lock.yaml | 4 ++--
.kokoro/nightly/integration.cfg | 1 +
.kokoro/nightly/java11-integration.cfg | 1 +
.kokoro/presubmit/integration.cfg | 1 +
.kokoro/requirements.txt | 10 ++++++----
5 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index 52eaa54d8..8058621d8 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,5 +13,5 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
- digest: sha256:88ba8dcc5c2c7792e1c3511381f4ab329002a1c42c512f66ca87ced572dfbf9f
-# created: 2023-09-05T18:54:42.225408832Z
+ digest: sha256:4875b2142cb4325542ba4f3175a81921c4b2b8256db012b220e3ca9637b34154
+# created: 2023-10-24T01:51:42.863726766Z
diff --git a/.kokoro/nightly/integration.cfg b/.kokoro/nightly/integration.cfg
index e51c7b4c6..24b9cf634 100644
--- a/.kokoro/nightly/integration.cfg
+++ b/.kokoro/nightly/integration.cfg
@@ -35,3 +35,4 @@ env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "java-it-service-account"
}
+
diff --git a/.kokoro/nightly/java11-integration.cfg b/.kokoro/nightly/java11-integration.cfg
index 58049cc38..6a6ef94ef 100644
--- a/.kokoro/nightly/java11-integration.cfg
+++ b/.kokoro/nightly/java11-integration.cfg
@@ -35,3 +35,4 @@ env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "java-it-service-account"
}
+
diff --git a/.kokoro/presubmit/integration.cfg b/.kokoro/presubmit/integration.cfg
index dded67a9d..5864c603e 100644
--- a/.kokoro/presubmit/integration.cfg
+++ b/.kokoro/presubmit/integration.cfg
@@ -31,3 +31,4 @@ env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "java-it-service-account"
}
+
diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt
index a73256ab8..c5c11bbe7 100644
--- a/.kokoro/requirements.txt
+++ b/.kokoro/requirements.txt
@@ -418,6 +418,7 @@ protobuf==3.20.3 \
# gcp-docuploader
# gcp-releasetool
# google-api-core
+ # googleapis-common-protos
pyasn1==0.5.0 \
--hash=sha256:87a2121042a1ac9358cabcaf1d07680ff97ee6404333bacca15f76aa8ad01a57 \
--hash=sha256:97b7290ca68e62a832558ec3976f15cbf911bf5d7c7039d8b861c2a0ece69fde
@@ -469,9 +470,9 @@ typing-extensions==4.7.1 \
--hash=sha256:440d5dd3af93b060174bf433bccd69b0babc3b15b1a8dca43789fd7f61514b36 \
--hash=sha256:b75ddc264f0ba5615db7ba217daeb99701ad295353c45f9e95963337ceeeffb2
# via -r requirements.in
-urllib3==1.26.16 \
- --hash=sha256:8d36afa7616d8ab714608411b4a3b13e58f463aee519024578e062e141dce20f \
- --hash=sha256:8f135f6502756bde6b2a9b28989df5fbe87c9970cecaa69041edcce7f0589b14
+urllib3==1.26.18 \
+ --hash=sha256:34b97092d7e0a3a8cf7cd10e386f401b3737364026c45e622aa02903dffe0f07 \
+ --hash=sha256:f8ecc1bba5667413457c529ab955bf8c67b45db799d159066261719e328580a0
# via
# google-auth
# requests
@@ -485,5 +486,6 @@ zipp==3.16.1 \
# via importlib-metadata
# WARNING: The following packages were not pinned, but pip requires them to be
-# pinned when the requirements file includes hashes. Consider using the --allow-unsafe flag.
+# pinned when the requirements file includes hashes and the requirement is not
+# satisfied by a package already installed. Consider using the --allow-unsafe flag.
# setuptools
From 04f57405d6630a356aa69d6b956be350f17940c3 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 25 Oct 2023 22:36:39 +0200
Subject: [PATCH 082/393] test(deps): update dependency
com.google.cloud:google-cloud-storage to v2.29.0 (#2961)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index b7bf4189d..9acc23d42 100644
--- a/pom.xml
+++ b/pom.xml
@@ -155,7 +155,7 @@
com.google.cloud
google-cloud-storage
- 2.28.0
+ 2.29.0
test
From 855e69889f68592608c8a56070ffdafdf8365f57 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 25 Oct 2023 22:37:02 +0200
Subject: [PATCH 083/393] deps: update ossf/scorecard-action action to v2.3.1
(#2960)
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 26169295a..52d639fd6 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -37,7 +37,7 @@ jobs:
persist-credentials: false
- name: "Run analysis"
- uses: ossf/scorecard-action@483ef80eb98fb506c348f7d62e28055e49fe2398 # v2.3.0
+ uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
with:
results_file: results.sarif
results_format: sarif
From de9bcee50ba682ffa93aae063191a8880741507d Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 25 Oct 2023 22:37:18 +0200
Subject: [PATCH 084/393] deps: update github/codeql-action action to v2.22.4
(#2958)
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 52d639fd6..1518a20e2 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@0116bc2df50751f9724a2e35ef1f24d22f90e4e1 # v2.22.3
+ uses: github/codeql-action/upload-sarif@49abf0ba24d0b7953cb586944e918a0b92074c80 # v2.22.4
with:
sarif_file: results.sarif
From 6465e413c93e01069f86c80fc424715d46f9067b Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 25 Oct 2023 22:37:32 +0200
Subject: [PATCH 085/393] deps: update dependency
org.graalvm.buildtools:native-maven-plugin to v0.9.28 (#2957)
---
samples/native-image-sample/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index 1f18d2c06..b311169b1 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -121,7 +121,7 @@
org.graalvm.buildtools
native-maven-plugin
- 0.9.27
+ 0.9.28
true
com.example.bigquery.NativeImageBigquerySample
From b03effd3b5f5fd6365de9a6267a1a8ace46d7718 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 25 Oct 2023 22:38:14 +0200
Subject: [PATCH 086/393] deps: update dependency
org.graalvm.buildtools:junit-platform-native to v0.9.28 (#2956)
---
samples/native-image-sample/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index b311169b1..b10ec974e 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -99,7 +99,7 @@
org.graalvm.buildtools
junit-platform-native
- 0.9.27
+ 0.9.28
test
From 0c8fb658e1232ecf2db86c8595ddcd1e20e0301e Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 25 Oct 2023 22:38:35 +0200
Subject: [PATCH 087/393] build(deps): update dependency
org.apache.maven.plugins:maven-surefire-plugin to v3.2.1 (#2962)
---
samples/native-image-sample/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index b10ec974e..e5c84a304 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -111,7 +111,7 @@
org.apache.maven.plugins
maven-surefire-plugin
- 3.1.2
+ 3.2.1
**/*IT
From 219db2c0023610d2adcba4889a9b785df2113893 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 26 Oct 2023 20:06:12 +0200
Subject: [PATCH 088/393] deps: update dependency
com.google.cloud:google-cloud-datacatalog-bom to v1.35.0 (#2968)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 9acc23d42..7387c2255 100644
--- a/pom.xml
+++ b/pom.xml
@@ -97,7 +97,7 @@
com.google.cloud
google-cloud-datacatalog-bom
- 1.34.0
+ 1.35.0
pom
import
From fcbf45486436af83f9ee608dae23d3077ef1e766 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 26 Oct 2023 20:22:23 +0200
Subject: [PATCH 089/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquerystorage-bom to v2.44.1 (#2969)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 7387c2255..d89cf992b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -73,7 +73,7 @@
com.google.cloud
google-cloud-bigquerystorage-bom
- 2.44.0
+ 2.44.1
pom
import
From e73e9255c1ac3701144c7055149ce8f2828e244d Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 26 Oct 2023 20:22:40 +0200
Subject: [PATCH 090/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigtable to v2.29.0 (#2970)
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index d3f893874..5f7509ff6 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -63,7 +63,7 @@
com.google.cloud
google-cloud-bigtable
- 2.28.0
+ 2.29.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 0d44543bf..b585b29bc 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -61,7 +61,7 @@
com.google.cloud
google-cloud-bigtable
- 2.28.0
+ 2.29.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 7b1dcc297..5a828edce 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -79,7 +79,7 @@
com.google.cloud
google-cloud-bigtable
- 2.28.0
+ 2.29.0
test
From 474ac0a3aa304914c566c9cbbbbb3b8197b0c596 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Thu, 26 Oct 2023 14:22:51 -0400
Subject: [PATCH 091/393] chore(main): release 2.33.3-SNAPSHOT (#2939)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index cd086b111..a7b426297 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.33.2
+ 2.33.3-SNAPSHOT
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 53bd43904..25dd80d90 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.33.2
+ 2.33.3-SNAPSHOT
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.33.2
+ 2.33.3-SNAPSHOT
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index d89cf992b..87cdbe76c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.33.2
+ 2.33.3-SNAPSHOT
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.33.2
+ 2.33.3-SNAPSHOT
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index b585b29bc..75fa4f389 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.33.2
+ 2.33.3-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index 004398030..159e39b49 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.33.2:2.33.2
\ No newline at end of file
+google-cloud-bigquery:2.33.2:2.33.3-SNAPSHOT
\ No newline at end of file
From 7a935eb8dd148354ddfad768a39d70fe29ea1d4b Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Thu, 26 Oct 2023 19:14:13 +0000
Subject: [PATCH 092/393] chore(main): release 2.34.0 (#2971)
:robot: I have created a release *beep* *boop*
---
## [2.34.0](https://togithub.com/googleapis/java-bigquery/compare/v2.33.2...v2.34.0) (2023-10-26)
### Features
* Add BigLakeConfiguration Property in StandardTableDefinition.java ([#2916](https://togithub.com/googleapis/java-bigquery/issues/2916)) ([1d660fa](https://togithub.com/googleapis/java-bigquery/commit/1d660fa19f0d82c2b6ec2ea9590881e513274c25))
* Add support for Dataset property storageBillingModel ([#2913](https://togithub.com/googleapis/java-bigquery/issues/2913)) ([f452cf4](https://togithub.com/googleapis/java-bigquery/commit/f452cf4e100b6cc211681a840ddbd0be5108d01e))
* Add support for preview features ([#2923](https://togithub.com/googleapis/java-bigquery/issues/2923)) ([113b8f2](https://togithub.com/googleapis/java-bigquery/commit/113b8f27419365c7277c6a300c5f07cea954cca1))
### Dependencies
* Update actions/checkout action to v4.1.1 ([#2950](https://togithub.com/googleapis/java-bigquery/issues/2950)) ([c556c18](https://togithub.com/googleapis/java-bigquery/commit/c556c1837baf0d53245452d6a152910df7883262))
* Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.30.0 ([#2942](https://togithub.com/googleapis/java-bigquery/issues/2942)) ([e760fca](https://togithub.com/googleapis/java-bigquery/commit/e760fcae98b23ff4e7fc3ae25f2437be220e9df9))
* Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.31.0 ([#2967](https://togithub.com/googleapis/java-bigquery/issues/2967)) ([7ed55b5](https://togithub.com/googleapis/java-bigquery/commit/7ed55b5c075dbac827c6201d0398ff87d8240b38))
* Update dependency com.google.apis:google-api-services-bigquery to v2-rev20231008-2.0.0 ([#2946](https://togithub.com/googleapis/java-bigquery/issues/2946)) ([3d0da5b](https://togithub.com/googleapis/java-bigquery/commit/3d0da5b5a20f49721477afbed10ea3fff43652bb))
* Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.34.0 ([#2943](https://togithub.com/googleapis/java-bigquery/issues/2943)) ([18162c3](https://togithub.com/googleapis/java-bigquery/commit/18162c37c97eff6387e0f58d211f2c1725a9c8d3))
* Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.35.0 ([#2968](https://togithub.com/googleapis/java-bigquery/issues/2968)) ([219db2c](https://togithub.com/googleapis/java-bigquery/commit/219db2c0023610d2adcba4889a9b785df2113893))
* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.18.0 ([#2955](https://togithub.com/googleapis/java-bigquery/issues/2955)) ([1ee18eb](https://togithub.com/googleapis/java-bigquery/commit/1ee18ebeb90adeb371ef04cbfc7b18be2c24d1e8))
* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.28 ([#2956](https://togithub.com/googleapis/java-bigquery/issues/2956)) ([b03effd](https://togithub.com/googleapis/java-bigquery/commit/b03effd3b5f5fd6365de9a6267a1a8ace46d7718))
* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.28 ([#2957](https://togithub.com/googleapis/java-bigquery/issues/2957)) ([6465e41](https://togithub.com/googleapis/java-bigquery/commit/6465e413c93e01069f86c80fc424715d46f9067b))
* Update github/codeql-action action to v2.22.2 ([#2944](https://togithub.com/googleapis/java-bigquery/issues/2944)) ([f584e59](https://togithub.com/googleapis/java-bigquery/commit/f584e59571f0c7918d2d83a19b00d49bd5b558c4))
* Update github/codeql-action action to v2.22.3 ([#2954](https://togithub.com/googleapis/java-bigquery/issues/2954)) ([1b2bc18](https://togithub.com/googleapis/java-bigquery/commit/1b2bc18bf49d06e1ccd29745be649108dd28cfa5))
* Update github/codeql-action action to v2.22.4 ([#2958](https://togithub.com/googleapis/java-bigquery/issues/2958)) ([de9bcee](https://togithub.com/googleapis/java-bigquery/commit/de9bcee50ba682ffa93aae063191a8880741507d))
* Update ossf/scorecard-action action to v2.3.1 ([#2960](https://togithub.com/googleapis/java-bigquery/issues/2960)) ([855e698](https://togithub.com/googleapis/java-bigquery/commit/855e69889f68592608c8a56070ffdafdf8365f57))
---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
---
CHANGELOG.md | 26 ++++++++++++++++++++++++++
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
6 files changed, 33 insertions(+), 7 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 07d11f888..a8d56e891 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,31 @@
# Changelog
+## [2.34.0](https://github.com/googleapis/java-bigquery/compare/v2.33.2...v2.34.0) (2023-10-26)
+
+
+### Features
+
+* Add BigLakeConfiguration Property in StandardTableDefinition.java ([#2916](https://github.com/googleapis/java-bigquery/issues/2916)) ([1d660fa](https://github.com/googleapis/java-bigquery/commit/1d660fa19f0d82c2b6ec2ea9590881e513274c25))
+* Add support for Dataset property storageBillingModel ([#2913](https://github.com/googleapis/java-bigquery/issues/2913)) ([f452cf4](https://github.com/googleapis/java-bigquery/commit/f452cf4e100b6cc211681a840ddbd0be5108d01e))
+* Add support for preview features ([#2923](https://github.com/googleapis/java-bigquery/issues/2923)) ([113b8f2](https://github.com/googleapis/java-bigquery/commit/113b8f27419365c7277c6a300c5f07cea954cca1))
+
+
+### Dependencies
+
+* Update actions/checkout action to v4.1.1 ([#2950](https://github.com/googleapis/java-bigquery/issues/2950)) ([c556c18](https://github.com/googleapis/java-bigquery/commit/c556c1837baf0d53245452d6a152910df7883262))
+* Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.30.0 ([#2942](https://github.com/googleapis/java-bigquery/issues/2942)) ([e760fca](https://github.com/googleapis/java-bigquery/commit/e760fcae98b23ff4e7fc3ae25f2437be220e9df9))
+* Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.31.0 ([#2967](https://github.com/googleapis/java-bigquery/issues/2967)) ([7ed55b5](https://github.com/googleapis/java-bigquery/commit/7ed55b5c075dbac827c6201d0398ff87d8240b38))
+* Update dependency com.google.apis:google-api-services-bigquery to v2-rev20231008-2.0.0 ([#2946](https://github.com/googleapis/java-bigquery/issues/2946)) ([3d0da5b](https://github.com/googleapis/java-bigquery/commit/3d0da5b5a20f49721477afbed10ea3fff43652bb))
+* Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.34.0 ([#2943](https://github.com/googleapis/java-bigquery/issues/2943)) ([18162c3](https://github.com/googleapis/java-bigquery/commit/18162c37c97eff6387e0f58d211f2c1725a9c8d3))
+* Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.35.0 ([#2968](https://github.com/googleapis/java-bigquery/issues/2968)) ([219db2c](https://github.com/googleapis/java-bigquery/commit/219db2c0023610d2adcba4889a9b785df2113893))
+* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.18.0 ([#2955](https://github.com/googleapis/java-bigquery/issues/2955)) ([1ee18eb](https://github.com/googleapis/java-bigquery/commit/1ee18ebeb90adeb371ef04cbfc7b18be2c24d1e8))
+* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.28 ([#2956](https://github.com/googleapis/java-bigquery/issues/2956)) ([b03effd](https://github.com/googleapis/java-bigquery/commit/b03effd3b5f5fd6365de9a6267a1a8ace46d7718))
+* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.28 ([#2957](https://github.com/googleapis/java-bigquery/issues/2957)) ([6465e41](https://github.com/googleapis/java-bigquery/commit/6465e413c93e01069f86c80fc424715d46f9067b))
+* Update github/codeql-action action to v2.22.2 ([#2944](https://github.com/googleapis/java-bigquery/issues/2944)) ([f584e59](https://github.com/googleapis/java-bigquery/commit/f584e59571f0c7918d2d83a19b00d49bd5b558c4))
+* Update github/codeql-action action to v2.22.3 ([#2954](https://github.com/googleapis/java-bigquery/issues/2954)) ([1b2bc18](https://github.com/googleapis/java-bigquery/commit/1b2bc18bf49d06e1ccd29745be649108dd28cfa5))
+* Update github/codeql-action action to v2.22.4 ([#2958](https://github.com/googleapis/java-bigquery/issues/2958)) ([de9bcee](https://github.com/googleapis/java-bigquery/commit/de9bcee50ba682ffa93aae063191a8880741507d))
+* Update ossf/scorecard-action action to v2.3.1 ([#2960](https://github.com/googleapis/java-bigquery/issues/2960)) ([855e698](https://github.com/googleapis/java-bigquery/commit/855e69889f68592608c8a56070ffdafdf8365f57))
+
## [2.33.2](https://github.com/googleapis/java-bigquery/compare/v2.33.1...v2.33.2) (2023-10-11)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index a7b426297..15cd025ff 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.33.3-SNAPSHOT
+ 2.34.0
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 25dd80d90..d98743b7e 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.33.3-SNAPSHOT
+ 2.34.0
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.33.3-SNAPSHOT
+ 2.34.0
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 87cdbe76c..da800e6f2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.33.3-SNAPSHOT
+ 2.34.0
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.33.3-SNAPSHOT
+ 2.34.0
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 75fa4f389..caa1d2d20 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.33.3-SNAPSHOT
+ 2.34.0
diff --git a/versions.txt b/versions.txt
index 159e39b49..d14c19ff9 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.33.2:2.33.3-SNAPSHOT
\ No newline at end of file
+google-cloud-bigquery:2.34.0:2.34.0
\ No newline at end of file
From af8ca6c04634af02fdc8b94e85e76a6f3331a3fd Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 27 Oct 2023 20:22:26 +0200
Subject: [PATCH 093/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquery to v2.34.0 (#2973)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-bigquery](https://togithub.com/googleapis/java-bigquery) | `2.33.2` -> `2.34.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-bigquery/2.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-bigquery/2.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-bigquery/2.33.2/2.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-bigquery/2.33.2/2.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
googleapis/java-bigquery (com.google.cloud:google-cloud-bigquery)
### [`v2.34.0`](https://togithub.com/googleapis/java-bigquery/blob/HEAD/CHANGELOG.md#2340-2023-10-26)
[Compare Source](https://togithub.com/googleapis/java-bigquery/compare/v2.33.2...v2.34.0)
##### Features
- Add BigLakeConfiguration Property in StandardTableDefinition.java ([#2916](https://togithub.com/googleapis/java-bigquery/issues/2916)) ([1d660fa](https://togithub.com/googleapis/java-bigquery/commit/1d660fa19f0d82c2b6ec2ea9590881e513274c25))
- Add support for Dataset property storageBillingModel ([#2913](https://togithub.com/googleapis/java-bigquery/issues/2913)) ([f452cf4](https://togithub.com/googleapis/java-bigquery/commit/f452cf4e100b6cc211681a840ddbd0be5108d01e))
- Add support for preview features ([#2923](https://togithub.com/googleapis/java-bigquery/issues/2923)) ([113b8f2](https://togithub.com/googleapis/java-bigquery/commit/113b8f27419365c7277c6a300c5f07cea954cca1))
##### Dependencies
- Update actions/checkout action to v4.1.1 ([#2950](https://togithub.com/googleapis/java-bigquery/issues/2950)) ([c556c18](https://togithub.com/googleapis/java-bigquery/commit/c556c1837baf0d53245452d6a152910df7883262))
- Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.30.0 ([#2942](https://togithub.com/googleapis/java-bigquery/issues/2942)) ([e760fca](https://togithub.com/googleapis/java-bigquery/commit/e760fcae98b23ff4e7fc3ae25f2437be220e9df9))
- Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.31.0 ([#2967](https://togithub.com/googleapis/java-bigquery/issues/2967)) ([7ed55b5](https://togithub.com/googleapis/java-bigquery/commit/7ed55b5c075dbac827c6201d0398ff87d8240b38))
- Update dependency com.google.apis:google-api-services-bigquery to v2-rev20231008-2.0.0 ([#2946](https://togithub.com/googleapis/java-bigquery/issues/2946)) ([3d0da5b](https://togithub.com/googleapis/java-bigquery/commit/3d0da5b5a20f49721477afbed10ea3fff43652bb))
- Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.34.0 ([#2943](https://togithub.com/googleapis/java-bigquery/issues/2943)) ([18162c3](https://togithub.com/googleapis/java-bigquery/commit/18162c37c97eff6387e0f58d211f2c1725a9c8d3))
- Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.35.0 ([#2968](https://togithub.com/googleapis/java-bigquery/issues/2968)) ([219db2c](https://togithub.com/googleapis/java-bigquery/commit/219db2c0023610d2adcba4889a9b785df2113893))
- Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.18.0 ([#2955](https://togithub.com/googleapis/java-bigquery/issues/2955)) ([1ee18eb](https://togithub.com/googleapis/java-bigquery/commit/1ee18ebeb90adeb371ef04cbfc7b18be2c24d1e8))
- Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.28 ([#2956](https://togithub.com/googleapis/java-bigquery/issues/2956)) ([b03effd](https://togithub.com/googleapis/java-bigquery/commit/b03effd3b5f5fd6365de9a6267a1a8ace46d7718))
- Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.28 ([#2957](https://togithub.com/googleapis/java-bigquery/issues/2957)) ([6465e41](https://togithub.com/googleapis/java-bigquery/commit/6465e413c93e01069f86c80fc424715d46f9067b))
- Update github/codeql-action action to v2.22.2 ([#2944](https://togithub.com/googleapis/java-bigquery/issues/2944)) ([f584e59](https://togithub.com/googleapis/java-bigquery/commit/f584e59571f0c7918d2d83a19b00d49bd5b558c4))
- Update github/codeql-action action to v2.22.3 ([#2954](https://togithub.com/googleapis/java-bigquery/issues/2954)) ([1b2bc18](https://togithub.com/googleapis/java-bigquery/commit/1b2bc18bf49d06e1ccd29745be649108dd28cfa5))
- Update github/codeql-action action to v2.22.4 ([#2958](https://togithub.com/googleapis/java-bigquery/issues/2958)) ([de9bcee](https://togithub.com/googleapis/java-bigquery/commit/de9bcee50ba682ffa93aae063191a8880741507d))
- Update ossf/scorecard-action action to v2.3.1 ([#2960](https://togithub.com/googleapis/java-bigquery/issues/2960)) ([855e698](https://togithub.com/googleapis/java-bigquery/commit/855e69889f68592608c8a56070ffdafdf8365f57))
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-bigquery).
---
README.md | 10 +++++-----
samples/install-without-bom/pom.xml | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index 6eb5a01fa..162e644b8 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquery
- 2.33.2
+ 2.34.0
```
@@ -53,20 +53,20 @@ If you are using Maven without the BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:
```Groovy
-implementation platform('com.google.cloud:libraries-bom:26.25.0')
+implementation platform('com.google.cloud:libraries-bom:26.26.0')
implementation 'com.google.cloud:google-cloud-bigquery'
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigquery:2.33.2'
+implementation 'com.google.cloud:google-cloud-bigquery:2.34.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.33.2"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.34.0"
```
@@ -351,7 +351,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquery/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.33.2
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.34.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 5f7509ff6..d3c409fcc 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -45,7 +45,7 @@
com.google.cloud
google-cloud-bigquery
- 2.33.2
+ 2.34.0
From 0b8884634f8bd21615a9263bb1344cb162adfa47 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 27 Oct 2023 20:40:19 +0200
Subject: [PATCH 094/393] deps: update github/codeql-action action to v2.22.5
(#2975)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update github/codeql-action action to v2.22.5
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 1518a20e2..730e29276 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@49abf0ba24d0b7953cb586944e918a0b92074c80 # v2.22.4
+ uses: github/codeql-action/upload-sarif@74483a38d39275f33fcff5f35b679b5ca4a26a99 # v2.22.5
with:
sarif_file: results.sarif
From 4b1bef421a70027ef6da948ff3b476a9ad5376c7 Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Mon, 6 Nov 2023 11:43:25 -0500
Subject: [PATCH 095/393] chore: update graalvm version to 22.3.3 in kokoro cfg
files. (#1889) (#2978)
Source-Link: https://github.com/googleapis/synthtool/commit/1547f9a33de075d31d434bb3c9d7f53f068e0ff3
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:bc2bf47c7370f1b1a8a46b0c104ce7e43644ac58902c9de265fe1f253fcc2506
Co-authored-by: Owl Bot
---
.github/.OwlBot.lock.yaml | 4 ++--
.kokoro/presubmit/graalvm-native-17.cfg | 2 +-
.kokoro/presubmit/graalvm-native.cfg | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index 8058621d8..f930d4846 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,5 +13,5 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
- digest: sha256:4875b2142cb4325542ba4f3175a81921c4b2b8256db012b220e3ca9637b34154
-# created: 2023-10-24T01:51:42.863726766Z
+ digest: sha256:bc2bf47c7370f1b1a8a46b0c104ce7e43644ac58902c9de265fe1f253fcc2506
+# created: 2023-10-31T13:44:21.909247346Z
diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg
index f52533545..fb5bb678f 100644
--- a/.kokoro/presubmit/graalvm-native-17.cfg
+++ b/.kokoro/presubmit/graalvm-native-17.cfg
@@ -3,7 +3,7 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
- value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17:22.3.2"
+ value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17:22.3.3"
}
env_vars: {
diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg
index 44b100487..59efee340 100644
--- a/.kokoro/presubmit/graalvm-native.cfg
+++ b/.kokoro/presubmit/graalvm-native.cfg
@@ -3,7 +3,7 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
- value: "gcr.io/cloud-devrel-kokoro-resources/graalvm:22.3.2"
+ value: "gcr.io/cloud-devrel-kokoro-resources/graalvm:22.3.3"
}
env_vars: {
From a64b91c03b0291452d53cc407d9c841b3567fe23 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 6 Nov 2023 17:44:00 +0100
Subject: [PATCH 096/393] deps: update dependency
org.junit.vintage:junit-vintage-engine to v5.10.1 (#2984)
---
samples/native-image-sample/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index e5c84a304..aa41f26ea 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -93,7 +93,7 @@
org.junit.vintage
junit-vintage-engine
- 5.10.0
+ 5.10.1
test
From 82d495e47807c63438f43c6774ead0d6c883efaa Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 6 Nov 2023 17:44:21 +0100
Subject: [PATCH 097/393] test(deps): update dependency
com.google.cloud:google-cloud-storage to v2.29.1 (#2983)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index da800e6f2..fad751c0d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -155,7 +155,7 @@
com.google.cloud
google-cloud-storage
- 2.29.0
+ 2.29.1
test
From c137f1f17f192f4f0a3c4d33e1d27677dbf4556b Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 6 Nov 2023 17:45:13 +0100
Subject: [PATCH 098/393] deps: update dependency
org.checkerframework:checker-compat-qual to v2.5.6 (#2982)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index fad751c0d..c427d557c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -105,7 +105,7 @@
org.checkerframework
checker-compat-qual
- 2.5.5
+ 2.5.6
From fa267b672965195b712a44177765e1314f286f37 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Mon, 6 Nov 2023 14:42:51 -0500
Subject: [PATCH 099/393] chore(main): release 2.34.1-SNAPSHOT (#2972)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 15cd025ff..ad670a0f8 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.34.0
+ 2.34.1-SNAPSHOT
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index d98743b7e..0d5b409b4 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.34.0
+ 2.34.1-SNAPSHOT
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.34.0
+ 2.34.1-SNAPSHOT
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index c427d557c..c67ae160e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.34.0
+ 2.34.1-SNAPSHOT
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.34.0
+ 2.34.1-SNAPSHOT
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index caa1d2d20..b4417ec03 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.34.0
+ 2.34.1-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index d14c19ff9..af6c60ecd 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.34.0:2.34.0
\ No newline at end of file
+google-cloud-bigquery:2.34.0:2.34.1-SNAPSHOT
\ No newline at end of file
From 0d400da7f73ee44ab5053ef51b1d45a9d29f0ebb Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 6 Nov 2023 21:28:46 +0100
Subject: [PATCH 100/393] deps: update dependency
com.google.cloud:google-cloud-shared-dependencies to v3.19.0 (#2986)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index c67ae160e..ec9ec72a1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,7 +55,7 @@
github
google-cloud-bigquery-parent
v2-rev20231008-2.0.0
- 3.18.0
+ 3.19.0
12.0.1
From 73238cee5af98ec64cdc323273762300e25766bc Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Mon, 6 Nov 2023 15:56:46 -0500
Subject: [PATCH 101/393] chore(main): release 2.34.1 (#2985)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
CHANGELOG.md | 10 ++++++++++
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
6 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a8d56e891..f4d3f5880 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,15 @@
# Changelog
+## [2.34.1](https://github.com/googleapis/java-bigquery/compare/v2.34.0...v2.34.1) (2023-11-06)
+
+
+### Dependencies
+
+* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.19.0 ([#2986](https://github.com/googleapis/java-bigquery/issues/2986)) ([0d400da](https://github.com/googleapis/java-bigquery/commit/0d400da7f73ee44ab5053ef51b1d45a9d29f0ebb))
+* Update dependency org.checkerframework:checker-compat-qual to v2.5.6 ([#2982](https://github.com/googleapis/java-bigquery/issues/2982)) ([c137f1f](https://github.com/googleapis/java-bigquery/commit/c137f1f17f192f4f0a3c4d33e1d27677dbf4556b))
+* Update dependency org.junit.vintage:junit-vintage-engine to v5.10.1 ([#2984](https://github.com/googleapis/java-bigquery/issues/2984)) ([a64b91c](https://github.com/googleapis/java-bigquery/commit/a64b91c03b0291452d53cc407d9c841b3567fe23))
+* Update github/codeql-action action to v2.22.5 ([#2975](https://github.com/googleapis/java-bigquery/issues/2975)) ([0b88846](https://github.com/googleapis/java-bigquery/commit/0b8884634f8bd21615a9263bb1344cb162adfa47))
+
## [2.34.0](https://github.com/googleapis/java-bigquery/compare/v2.33.2...v2.34.0) (2023-10-26)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index ad670a0f8..c9daf9cdd 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.34.1-SNAPSHOT
+ 2.34.1
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 0d5b409b4..6e1c12881 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.34.1-SNAPSHOT
+ 2.34.1
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.34.1-SNAPSHOT
+ 2.34.1
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index ec9ec72a1..439f7cb7f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.34.1-SNAPSHOT
+ 2.34.1
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.34.1-SNAPSHOT
+ 2.34.1
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index b4417ec03..01505abaf 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.34.1-SNAPSHOT
+ 2.34.1
diff --git a/versions.txt b/versions.txt
index af6c60ecd..ea4b61155 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.34.0:2.34.1-SNAPSHOT
\ No newline at end of file
+google-cloud-bigquery:2.34.1:2.34.1
\ No newline at end of file
From dbdff0be16f55c3ef2d6eb7062c5fb988798a329 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 7 Nov 2023 00:00:21 +0100
Subject: [PATCH 102/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigqueryconnection to v2.32.0 (#2987)
---
pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 439f7cb7f..0477a90f7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -161,7 +161,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.31.0
+ 2.32.0
test
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index d3c409fcc..87047713c 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -69,7 +69,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.31.0
+ 2.32.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 01505abaf..018837f94 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -67,7 +67,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.31.0
+ 2.32.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 5a828edce..2cf63f32d 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -85,7 +85,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.31.0
+ 2.32.0
test
From 47a61a7c2cb5fed88937670bca7b15e38529dfaf Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 7 Nov 2023 00:00:45 +0100
Subject: [PATCH 103/393] deps: update dependency
com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.32.0
(#2989)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 0477a90f7..cc14138b9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -167,7 +167,7 @@
com.google.api.grpc
proto-google-cloud-bigqueryconnection-v1
- 2.31.0
+ 2.32.0
test
From 81c07275809eadc4e7146bd080475e4775102339 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 7 Nov 2023 00:01:08 +0100
Subject: [PATCH 104/393] deps: update dependency
com.google.cloud:google-cloud-datacatalog-bom to v1.36.0 (#2990)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index cc14138b9..13bc3cf7c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -97,7 +97,7 @@
com.google.cloud
google-cloud-datacatalog-bom
- 1.35.0
+ 1.36.0
pom
import
From f39d339b3407d2f0d9f200fa91f81136862c45f9 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 7 Nov 2023 14:23:13 +0100
Subject: [PATCH 105/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquerystorage-bom to v2.45.0 (#2993)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigquerystorage-bom to v2.45.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 6 +++---
pom.xml | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 162e644b8..31b68b4b8 100644
--- a/README.md
+++ b/README.md
@@ -60,13 +60,13 @@ implementation 'com.google.cloud:google-cloud-bigquery'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigquery:2.34.0'
+implementation 'com.google.cloud:google-cloud-bigquery:2.34.1'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.34.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.34.1"
```
@@ -351,7 +351,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquery/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.34.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.34.1
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/pom.xml b/pom.xml
index 13bc3cf7c..f8c54e20b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -73,7 +73,7 @@
com.google.cloud
google-cloud-bigquerystorage-bom
- 2.44.1
+ 2.45.0
pom
import
From af4d5795bbdaf977b52b18894c8ca27a5eeb54c2 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 7 Nov 2023 14:23:32 +0100
Subject: [PATCH 106/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquery to v2.34.1 (#2992)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigquery to v2.34.1
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 2 +-
samples/install-without-bom/pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 31b68b4b8..686622a08 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquery
- 2.34.0
+ 2.34.1
```
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 87047713c..a8e7c622c 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -45,7 +45,7 @@
com.google.cloud
google-cloud-bigquery
- 2.34.0
+ 2.34.1
From 2e00eef9f94b7a31ea3c483ad69b588718b4e0a8 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Tue, 7 Nov 2023 08:56:16 -0500
Subject: [PATCH 107/393] chore(main): release 2.34.2-SNAPSHOT (#2988)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index c9daf9cdd..e35e9a281 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.34.1
+ 2.34.2-SNAPSHOT
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 6e1c12881..49b453550 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.34.1
+ 2.34.2-SNAPSHOT
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.34.1
+ 2.34.2-SNAPSHOT
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index f8c54e20b..a975aecf1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.34.1
+ 2.34.2-SNAPSHOT
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.34.1
+ 2.34.2-SNAPSHOT
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 018837f94..0849cfbff 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.34.1
+ 2.34.2-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index ea4b61155..b8b35c4b1 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.34.1:2.34.1
\ No newline at end of file
+google-cloud-bigquery:2.34.1:2.34.2-SNAPSHOT
\ No newline at end of file
From 5d6a1c0bfc41bcaa93453820b39b2cbbb743d0a7 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 7 Nov 2023 17:02:25 +0100
Subject: [PATCH 108/393] build(deps): update dependency
org.apache.maven.plugins:maven-surefire-plugin to v3.2.2 (#2991)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* build(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.2.2
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
samples/native-image-sample/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index aa41f26ea..f4c1c3ddc 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -111,7 +111,7 @@
org.apache.maven.plugins
maven-surefire-plugin
- 3.2.1
+ 3.2.2
**/*IT
From 6d14b276551cf758b58da5d2de4226b92331c40e Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Tue, 7 Nov 2023 13:14:21 -0500
Subject: [PATCH 109/393] chore(main): release 2.34.2 (#2994)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
CHANGELOG.md | 8 ++++++++
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
6 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f4d3f5880..6c4b28a2b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## [2.34.2](https://github.com/googleapis/java-bigquery/compare/v2.34.1...v2.34.2) (2023-11-07)
+
+
+### Dependencies
+
+* Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.32.0 ([#2989](https://github.com/googleapis/java-bigquery/issues/2989)) ([47a61a7](https://github.com/googleapis/java-bigquery/commit/47a61a7c2cb5fed88937670bca7b15e38529dfaf))
+* Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.36.0 ([#2990](https://github.com/googleapis/java-bigquery/issues/2990)) ([81c0727](https://github.com/googleapis/java-bigquery/commit/81c07275809eadc4e7146bd080475e4775102339))
+
## [2.34.1](https://github.com/googleapis/java-bigquery/compare/v2.34.0...v2.34.1) (2023-11-06)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index e35e9a281..eb6fcb814 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.34.2-SNAPSHOT
+ 2.34.2
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 49b453550..e0e6a8fb0 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.34.2-SNAPSHOT
+ 2.34.2
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.34.2-SNAPSHOT
+ 2.34.2
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index a975aecf1..616aa5276 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.34.2-SNAPSHOT
+ 2.34.2
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.34.2-SNAPSHOT
+ 2.34.2
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 0849cfbff..2e28a2ec0 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.34.2-SNAPSHOT
+ 2.34.2
diff --git a/versions.txt b/versions.txt
index b8b35c4b1..4907d332d 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.34.1:2.34.2-SNAPSHOT
\ No newline at end of file
+google-cloud-bigquery:2.34.2:2.34.2
\ No newline at end of file
From 19b7c3ad842a566d4e3e93e48625e0281504de80 Mon Sep 17 00:00:00 2001
From: PhongChuong <147636638+PhongChuong@users.noreply.github.com>
Date: Thu, 9 Nov 2023 09:50:09 -0500
Subject: [PATCH 110/393] feat: Add InputBytes to extract job statistics
(#2998)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* feat: Add InputBytes to extract job statistics
* feat: Add InputBytes to extract job statistics
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 6 ++---
.../google/cloud/bigquery/JobStatistics.java | 23 ++++++++++++++++---
.../cloud/bigquery/JobStatisticsTest.java | 3 +++
.../cloud/bigquery/it/ITBigQueryTest.java | 9 ++++++++
4 files changed, 35 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index 686622a08..f542d5293 100644
--- a/README.md
+++ b/README.md
@@ -60,13 +60,13 @@ implementation 'com.google.cloud:google-cloud-bigquery'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigquery:2.34.1'
+implementation 'com.google.cloud:google-cloud-bigquery:2.34.2'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.34.1"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.34.2"
```
@@ -351,7 +351,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquery/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.34.1
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.34.2
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
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 59c48615f..1cbf22fa7 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
@@ -101,16 +101,21 @@ public static class ExtractStatistics extends JobStatistics {
private final List destinationUriFileCounts;
+ private final Long inputBytes;
+
static final class Builder extends JobStatistics.Builder {
private List destinationUriFileCounts;
+ private Long inputBytes;
+
private Builder() {}
private Builder(com.google.api.services.bigquery.model.JobStatistics statisticsPb) {
super(statisticsPb);
if (statisticsPb.getExtract() != null) {
this.destinationUriFileCounts = statisticsPb.getExtract().getDestinationUriFileCounts();
+ this.inputBytes = statisticsPb.getExtract().getInputBytes();
}
}
@@ -119,6 +124,11 @@ Builder setDestinationUriFileCounts(List destinationUriFileCounts) {
return self();
}
+ Builder setInputBytes(Long inputBytes) {
+ this.inputBytes = inputBytes;
+ return self();
+ }
+
@Override
ExtractStatistics build() {
return new ExtractStatistics(this);
@@ -128,6 +138,7 @@ ExtractStatistics build() {
private ExtractStatistics(Builder builder) {
super(builder);
this.destinationUriFileCounts = builder.destinationUriFileCounts;
+ this.inputBytes = builder.inputBytes;
}
/**
@@ -139,6 +150,11 @@ public List getDestinationUriFileCounts() {
return destinationUriFileCounts;
}
+ /** Returns number of user bytes extracted into the result. */
+ public Long getInputBytes() {
+ return inputBytes;
+ }
+
@Override
ToStringHelper toStringHelper() {
return super.toStringHelper().add("destinationUriFileCounts", destinationUriFileCounts);
@@ -159,9 +175,10 @@ public final int hashCode() {
@Override
com.google.api.services.bigquery.model.JobStatistics toPb() {
- com.google.api.services.bigquery.model.JobStatistics statisticsPb = super.toPb();
- return statisticsPb.setExtract(
- new JobStatistics4().setDestinationUriFileCounts(destinationUriFileCounts));
+ JobStatistics4 extractStatisticsPb = new JobStatistics4();
+ extractStatisticsPb.setDestinationUriFileCounts(destinationUriFileCounts);
+ extractStatisticsPb.setInputBytes(inputBytes);
+ return super.toPb().setExtract(extractStatisticsPb);
}
static Builder newBuilder() {
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobStatisticsTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobStatisticsTest.java
index af75a2391..f32832b59 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobStatisticsTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobStatisticsTest.java
@@ -97,6 +97,7 @@ public class JobStatisticsTest {
.setEndTime(END_TIME)
.setStartTime(START_TIME)
.setDestinationUriFileCounts(FILE_COUNT)
+ .setInputBytes(INPUT_BYTES)
.build();
private static final LoadStatistics LOAD_STATISTICS =
LoadStatistics.newBuilder()
@@ -249,6 +250,7 @@ public void testBuilder() {
assertEquals(START_TIME, EXTRACT_STATISTICS.getStartTime());
assertEquals(END_TIME, EXTRACT_STATISTICS.getEndTime());
assertEquals(FILE_COUNT, EXTRACT_STATISTICS.getDestinationUriFileCounts());
+ assertEquals(INPUT_BYTES, EXTRACT_STATISTICS.getInputBytes());
assertEquals(CREATION_TIME, LOAD_STATISTICS.getCreationTime());
assertEquals(START_TIME, LOAD_STATISTICS.getStartTime());
@@ -385,6 +387,7 @@ private void compareExtractStatistics(ExtractStatistics expected, ExtractStatist
assertEquals(expected, value);
compareStatistics(expected, value);
assertEquals(expected.getDestinationUriFileCounts(), value.getDestinationUriFileCounts());
+ assertEquals(expected.getInputBytes(), value.getInputBytes());
}
private void compareLoadStatistics(LoadStatistics expected, LoadStatistics value) {
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
index 8cada3e08..b37f389ae 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
@@ -87,6 +87,7 @@
import com.google.cloud.bigquery.JobId;
import com.google.cloud.bigquery.JobInfo;
import com.google.cloud.bigquery.JobStatistics;
+import com.google.cloud.bigquery.JobStatistics.ExtractStatistics;
import com.google.cloud.bigquery.JobStatistics.LoadStatistics;
import com.google.cloud.bigquery.JobStatistics.QueryStatistics;
import com.google.cloud.bigquery.JobStatistics.QueryStatistics.StatementType;
@@ -5304,6 +5305,8 @@ public void testExtractJob() throws InterruptedException, TimeoutException {
assertNull(remoteLoadJob.getStatus().getError());
LoadJobConfiguration loadJobConfiguration = remoteLoadJob.getConfiguration();
assertEquals(labels, loadJobConfiguration.getLabels());
+ LoadStatistics loadStatistics = remoteLoadJob.getStatistics();
+ assertNotNull(loadStatistics);
ExtractJobConfiguration extractConfiguration =
ExtractJobConfiguration.newBuilder(destinationTable, "gs://" + BUCKET + "/" + EXTRACT_FILE)
@@ -5313,6 +5316,12 @@ public void testExtractJob() throws InterruptedException, TimeoutException {
remoteExtractJob = remoteExtractJob.waitFor();
assertNull(remoteExtractJob.getStatus().getError());
+ ExtractStatistics extractStatistics = remoteExtractJob.getStatistics();
+ assertNotNull(extractStatistics);
+ assertEquals(1L, extractStatistics.getDestinationUriFileCounts().size());
+ assertEquals(
+ loadStatistics.getOutputBytes().longValue(), extractStatistics.getInputBytes().longValue());
+
String extractedCsv =
new String(storage.readAllBytes(BUCKET, EXTRACT_FILE), StandardCharsets.UTF_8);
assertEquals(
From ff4a086f0aa3c0401b62489ea8a0b9e2fd6cb3fe Mon Sep 17 00:00:00 2001
From: Minbo Bae <49642083+baeminbo@users.noreply.github.com>
Date: Tue, 28 Nov 2023 09:52:21 -0800
Subject: [PATCH 111/393] fix: update TableInsertRows.java (#2999)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* fix: update TableInsertRows.java
Make the example set row id in `addRow`. If row id is missed, it disable the retry b/280865468, which I believe an unexpected behavior to users.
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 2 +-
.../java/com/example/bigquery/TableInsertRows.java | 12 ++++++------
.../bigquery/TableInsertRowsWithoutRowIds.java | 2 ++
.../java/com/example/bigquery/TableInsertRowsIT.java | 3 ++-
4 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
index f542d5293..3c959da7c 100644
--- a/README.md
+++ b/README.md
@@ -53,7 +53,7 @@ If you are using Maven without the BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:
```Groovy
-implementation platform('com.google.cloud:libraries-bom:26.26.0')
+implementation platform('com.google.cloud:libraries-bom:26.27.0')
implementation 'com.google.cloud:google-cloud-bigquery'
```
diff --git a/samples/snippets/src/main/java/com/example/bigquery/TableInsertRows.java b/samples/snippets/src/main/java/com/example/bigquery/TableInsertRows.java
index b5363d47b..05bcee6d9 100644
--- a/samples/snippets/src/main/java/com/example/bigquery/TableInsertRows.java
+++ b/samples/snippets/src/main/java/com/example/bigquery/TableInsertRows.java
@@ -39,12 +39,13 @@ public static void main(String[] args) {
Map rowContent = new HashMap<>();
rowContent.put("booleanField", true);
rowContent.put("numericField", "3.14");
-
- tableInsertRows(datasetName, tableName, rowContent);
+ // TODO(developer): Replace the row id with a unique value for each row.
+ String rowId = "ROW_ID";
+ tableInsertRows(datasetName, tableName, rowId, rowContent);
}
public static void tableInsertRows(
- String datasetName, String tableName, Map rowContent) {
+ String datasetName, String tableName, String rowId, Map rowContent) {
try {
// Initialize client that will be used to send requests. This client only needs to be created
// once, and can be reused for multiple requests.
@@ -58,9 +59,8 @@ public static void tableInsertRows(
bigquery.insertAll(
InsertAllRequest.newBuilder(tableId)
// More rows can be added in the same RPC by invoking .addRow() on the builder.
- // You can also supply optional unique row keys to support de-duplication
- // scenarios.
- .addRow(rowContent)
+ // You can omit the unique row ids to disable de-duplication.
+ .addRow(rowId, rowContent)
.build());
if (response.hasErrors()) {
diff --git a/samples/snippets/src/main/java/com/example/bigquery/TableInsertRowsWithoutRowIds.java b/samples/snippets/src/main/java/com/example/bigquery/TableInsertRowsWithoutRowIds.java
index 1befb593d..1f4def54c 100644
--- a/samples/snippets/src/main/java/com/example/bigquery/TableInsertRowsWithoutRowIds.java
+++ b/samples/snippets/src/main/java/com/example/bigquery/TableInsertRowsWithoutRowIds.java
@@ -54,6 +54,8 @@ public static void tableInsertRowsWithoutRowIds(String datasetName, String table
InsertAllResponse response =
bigquery.insertAll(
InsertAllRequest.newBuilder(TableId.of(datasetName, tableName))
+ // No row ids disable de-duplication, and also disable the retries in the Java
+ // library.
.setRows(
ImmutableList.of(
InsertAllRequest.RowToInsert.of(rowContent1),
diff --git a/samples/snippets/src/test/java/com/example/bigquery/TableInsertRowsIT.java b/samples/snippets/src/test/java/com/example/bigquery/TableInsertRowsIT.java
index 84a344cd2..d47953012 100644
--- a/samples/snippets/src/test/java/com/example/bigquery/TableInsertRowsIT.java
+++ b/samples/snippets/src/test/java/com/example/bigquery/TableInsertRowsIT.java
@@ -88,8 +88,9 @@ public void testTableInsertRows() {
Map rowContent = new HashMap<>();
rowContent.put("booleanField", true);
rowContent.put("numericField", "3.14");
+ String rowId = "ROW_ID";
// Testing
- TableInsertRows.tableInsertRows(BIGQUERY_DATASET_NAME, tableName, rowContent);
+ TableInsertRows.tableInsertRows(BIGQUERY_DATASET_NAME, tableName, rowId, rowContent);
assertThat(bout.toString()).contains("Rows successfully inserted into table");
}
}
From 1fccc1cdf13e7971b34ec4c6fd14c0f29e6aaf7c Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 28 Nov 2023 22:03:32 +0100
Subject: [PATCH 112/393] build(deps): update dependency
org.codehaus.mojo:build-helper-maven-plugin to v3.5.0 (#3013)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* build(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.5.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
google-cloud-bigquery/pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index e0e6a8fb0..2e163c1a2 100644
--- a/google-cloud-bigquery/pom.xml
+++ b/google-cloud-bigquery/pom.xml
@@ -187,7 +187,7 @@
org.codehaus.mojo
build-helper-maven-plugin
- 3.4.0
+ 3.5.0
add-source
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index a8e7c622c..d77da94a0 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -92,7 +92,7 @@
org.codehaus.mojo
build-helper-maven-plugin
- 3.4.0
+ 3.5.0
add-snippets-source
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 2e28a2ec0..377039384 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -90,7 +90,7 @@
org.codehaus.mojo
build-helper-maven-plugin
- 3.4.0
+ 3.5.0
add-snippets-source
From ffc32cf8015030546d2dd7752084e95648d35add Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 28 Nov 2023 22:03:59 +0100
Subject: [PATCH 113/393] build(deps): update dependency
org.apache.maven.plugins:maven-project-info-reports-plugin to v3.5.0 (#3008)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.5.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 616aa5276..6121d76d7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -197,7 +197,7 @@
org.apache.maven.plugins
maven-project-info-reports-plugin
- 3.4.5
+ 3.5.0
From 904ed98af0f08b37f2f54f4b7e83ebf21289d559 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 28 Nov 2023 22:04:21 +0100
Subject: [PATCH 114/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquerystorage-bom to v2.46.0 (#3003)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigquerystorage-bom to v2.46.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 6121d76d7..39620b9c4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -73,7 +73,7 @@
com.google.cloud
google-cloud-bigquerystorage-bom
- 2.45.0
+ 2.46.0
pom
import
From d1bdeab242ea2e6374d1b6d0bbd9eadf638cbcb2 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 28 Nov 2023 22:04:40 +0100
Subject: [PATCH 115/393] deps: update actions/github-script action to v7
(#3001)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update actions/github-script action to v7
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.github/workflows/auto-release.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml
index 92c69857f..b27e937b4 100644
--- a/.github/workflows/auto-release.yaml
+++ b/.github/workflows/auto-release.yaml
@@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
if: contains(github.head_ref, 'release-please')
steps:
- - uses: actions/github-script@v6
+ - uses: actions/github-script@v7
with:
github-token: ${{secrets.YOSHI_APPROVER_TOKEN}}
debug: true
From c40628a05e07c5e70d3aedf7addef60ace80c592 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 28 Nov 2023 22:05:21 +0100
Subject: [PATCH 116/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigtable to v2.29.1 (#2997)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigtable to v2.29.1
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index d77da94a0..e09a2287e 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -63,7 +63,7 @@
com.google.cloud
google-cloud-bigtable
- 2.29.0
+ 2.29.1
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 377039384..f27a8d7ff 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -61,7 +61,7 @@
com.google.cloud
google-cloud-bigtable
- 2.29.0
+ 2.29.1
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 2cf63f32d..e65db0f72 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -79,7 +79,7 @@
com.google.cloud
google-cloud-bigtable
- 2.29.0
+ 2.29.1
test
From 79959e5bbd84055575a2fde4e8ec8ed973a373e9 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 28 Nov 2023 22:05:41 +0100
Subject: [PATCH 117/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquery to v2.34.2 (#2996)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigquery to v2.34.2
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 2 +-
samples/install-without-bom/pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 3c959da7c..576fec2eb 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquery
- 2.34.1
+ 2.34.2
```
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index e09a2287e..145e02e3f 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -45,7 +45,7 @@
com.google.cloud
google-cloud-bigquery
- 2.34.1
+ 2.34.2
From ecb567b75849cd0665ac4ab315a5af3bdf934f48 Mon Sep 17 00:00:00 2001
From: PhongChuong <147636638+PhongChuong@users.noreply.github.com>
Date: Thu, 30 Nov 2023 10:49:30 -0500
Subject: [PATCH 118/393] feat: Add Routine DataGovernanceType (#3006)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* feat: Add Routine DataGovernanceType
This also:
- fix an issue where RoutineInfo unit test was being skipped
- fix an issue where ImportLibaries were not being exported in the toPb method
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* fix: Add DataGovernanceType to clirr ignored difference
---------
Co-authored-by: Owl Bot
---
.../clirr-ignored-differences.xml | 5 +++
.../com/google/cloud/bigquery/Routine.java | 6 ++++
.../google/cloud/bigquery/RoutineInfo.java | 35 +++++++++++++++++--
.../cloud/bigquery/RoutineInfoTest.java | 7 ++++
.../google/cloud/bigquery/RoutineTest.java | 5 +++
.../cloud/bigquery/it/ITBigQueryTest.java | 27 ++++++++++++++
6 files changed, 83 insertions(+), 2 deletions(-)
diff --git a/google-cloud-bigquery/clirr-ignored-differences.xml b/google-cloud-bigquery/clirr-ignored-differences.xml
index c22579a79..7513b5324 100644
--- a/google-cloud-bigquery/clirr-ignored-differences.xml
+++ b/google-cloud-bigquery/clirr-ignored-differences.xml
@@ -19,6 +19,11 @@
com/google/cloud/bigquery/ExternalTableDefinition*
*ReferenceFileSchemaUri(*)
+
+ 7013
+ com/google/cloud/bigquery/RoutineInfo*
+ *DataGovernanceType(*)
+
7013
com/google/cloud/bigquery/RoutineInfo*
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Routine.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Routine.java
index d2d6ec683..5d99ccfbd 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Routine.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Routine.java
@@ -135,6 +135,12 @@ public Builder setRemoteFunctionOptions(RemoteFunctionOptions remoteFunctionOpti
return this;
}
+ @Override
+ public Builder setDataGovernanceType(String dataGovernanceType) {
+ infoBuilder.setDataGovernanceType(dataGovernanceType);
+ return this;
+ }
+
@Override
public Routine build() {
return new Routine(bigquery, infoBuilder);
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 3001d2fb9..7cea99f93 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
@@ -72,6 +72,8 @@ public Routine apply(RoutineInfo routineInfo) {
private final String body;
private final RemoteFunctionOptions remoteFunctionOptions;
+ private final String dataGovernanceType;
+
public abstract static class Builder {
abstract Builder setRoutineId(RoutineId id);
@@ -157,6 +159,13 @@ public abstract static class Builder {
*/
public abstract Builder setRemoteFunctionOptions(RemoteFunctionOptions remoteFunctionOptions);
+ /**
+ * Sets the data governance type for the Builder (e.g. DATA_MASKING).
+ *
+ * See https://cloud.google.com/bigquery/docs/reference/rest/v2/routines
+ */
+ public abstract Builder setDataGovernanceType(String dataGovernanceType);
+
/** Creates a {@code RoutineInfo} object. */
public abstract RoutineInfo build();
}
@@ -177,6 +186,8 @@ static class BuilderImpl extends Builder {
private String body;
private RemoteFunctionOptions remoteFunctionOptions;
+ private String dataGovernanceType;
+
BuilderImpl() {}
BuilderImpl(RoutineInfo routineInfo) {
@@ -194,6 +205,7 @@ static class BuilderImpl extends Builder {
this.importedLibrariesList = routineInfo.importedLibrariesList;
this.body = routineInfo.body;
this.remoteFunctionOptions = routineInfo.remoteFunctionOptions;
+ this.dataGovernanceType = routineInfo.dataGovernanceType;
}
BuilderImpl(Routine routinePb) {
@@ -225,6 +237,7 @@ static class BuilderImpl extends Builder {
this.remoteFunctionOptions =
RemoteFunctionOptions.fromPb(routinePb.getRemoteFunctionOptions());
}
+ this.dataGovernanceType = routinePb.getDataGovernanceType();
}
@Override
@@ -311,6 +324,12 @@ public Builder setRemoteFunctionOptions(RemoteFunctionOptions remoteFunctionOpti
return this;
}
+ @Override
+ public Builder setDataGovernanceType(String dataGovernanceType) {
+ this.dataGovernanceType = dataGovernanceType;
+ return this;
+ }
+
@Override
public RoutineInfo build() {
return new RoutineInfo(this);
@@ -332,6 +351,7 @@ public RoutineInfo build() {
this.importedLibrariesList = builder.importedLibrariesList;
this.body = builder.body;
this.remoteFunctionOptions = builder.remoteFunctionOptions;
+ this.dataGovernanceType = builder.dataGovernanceType;
}
/** Returns the RoutineId identified for the routine resource. * */
@@ -411,6 +431,11 @@ public RemoteFunctionOptions getRemoteFunctionOptions() {
return remoteFunctionOptions;
};
+ /** Returns the data governance type of the routine, e.g. DATA_MASKING. */
+ public String getDataGovernanceType() {
+ return dataGovernanceType;
+ }
+
/** Returns a builder pre-populated using the current values of this routine. */
public Builder toBuilder() {
return new BuilderImpl(this);
@@ -433,6 +458,7 @@ public String toString() {
.add("importedLibrariesList", importedLibrariesList)
.add("body", body)
.add("remoteFunctionOptions", remoteFunctionOptions)
+ .add("dataGovernanceType", dataGovernanceType)
.toString();
}
@@ -452,7 +478,8 @@ public int hashCode() {
returnTableType,
importedLibrariesList,
body,
- remoteFunctionOptions);
+ remoteFunctionOptions,
+ dataGovernanceType);
}
@Override
@@ -490,7 +517,8 @@ Routine toPb() {
.setDescription(getDescription())
.setDeterminismLevel(getDeterminismLevel())
.setLastModifiedTime(getLastModifiedTime())
- .setLanguage(getLanguage());
+ .setLanguage(getLanguage())
+ .setDataGovernanceType(getDataGovernanceType());
if (getRoutineId() != null) {
routinePb.setRoutineReference(getRoutineId().toPb());
}
@@ -506,6 +534,9 @@ Routine toPb() {
if (getRemoteFunctionOptions() != null) {
routinePb.setRemoteFunctionOptions(getRemoteFunctionOptions().toPb());
}
+ if (getImportedLibraries() != null) {
+ routinePb.setImportedLibraries(getImportedLibraries());
+ }
return routinePb;
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/RoutineInfoTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/RoutineInfoTest.java
index 1f1181433..ae061b62f 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/RoutineInfoTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/RoutineInfoTest.java
@@ -33,6 +33,8 @@ public class RoutineInfoTest {
private static final Long LAST_MODIFIED_TIME = 20L;
private static final String LANGUAGE = "SQL";
+ private static final String DATA_GOVERNANCE_TYPE = "DATA_MASKING";
+
private static final RoutineArgument ARG_1 =
RoutineArgument.newBuilder()
.setDataType(StandardSQLDataType.newBuilder("STRING").build())
@@ -63,6 +65,7 @@ public class RoutineInfoTest {
.setReturnType(RETURN_TYPE)
.setImportedLibraries(IMPORTED_LIBRARIES)
.setBody(BODY)
+ .setDataGovernanceType(DATA_GOVERNANCE_TYPE)
.build();
@Test
@@ -90,6 +93,7 @@ public void testBuilder() {
assertEquals(RETURN_TYPE, ROUTINE_INFO.getReturnType());
assertEquals(IMPORTED_LIBRARIES, ROUTINE_INFO.getImportedLibraries());
assertEquals(BODY, ROUTINE_INFO.getBody());
+ assertEquals(DATA_GOVERNANCE_TYPE, ROUTINE_INFO.getDataGovernanceType());
}
@Test
@@ -107,8 +111,10 @@ public void testOf() {
assertNull(routineInfo.getReturnType());
assertNull(routineInfo.getImportedLibraries());
assertNull(routineInfo.getBody());
+ assertNull(routineInfo.getDataGovernanceType());
}
+ @Test
public void testToAndFromPb() {
compareRoutineInfo(ROUTINE_INFO, RoutineInfo.fromPb(ROUTINE_INFO.toPb()));
}
@@ -132,6 +138,7 @@ public void compareRoutineInfo(RoutineInfo expected, RoutineInfo value) {
assertEquals(expected.getReturnType(), value.getReturnType());
assertEquals(expected.getImportedLibraries(), value.getImportedLibraries());
assertEquals(expected.getBody(), value.getBody());
+ assertEquals(expected.getDataGovernanceType(), value.getDataGovernanceType());
assertEquals(expected.hashCode(), value.hashCode());
assertEquals(expected.toString(), value.toString());
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/RoutineTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/RoutineTest.java
index c9080e851..eaf142012 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/RoutineTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/RoutineTest.java
@@ -91,6 +91,8 @@ public class RoutineTest {
.setMaxBatchingRows(10L)
.build();
+ private static final String DATA_GOVERNANCE_TYPE = "DATA_MASKING";
+
private static final RoutineInfo ROUTINE_INFO =
RoutineInfo.newBuilder(ROUTINE_ID)
.setEtag(ETAG)
@@ -104,6 +106,7 @@ public class RoutineTest {
.setImportedLibraries(IMPORTED_LIBRARIES)
.setBody(BODY)
.setRemoteFunctionOptions(REMOTE_FUNCTION_OPTIONS)
+ .setDataGovernanceType(DATA_GOVERNANCE_TYPE)
.build();
private static final RoutineInfo ROUTINE_INFO_TVF =
@@ -146,6 +149,7 @@ public void testBuilder() {
.setImportedLibraries(IMPORTED_LIBRARIES)
.setBody(BODY)
.setRemoteFunctionOptions(REMOTE_FUNCTION_OPTIONS)
+ .setDataGovernanceType(DATA_GOVERNANCE_TYPE)
.build();
assertEquals(ETAG, builtRoutine.getEtag());
assertEquals(DETERMINISM_LEVEL, builtRoutine.getDeterminismLevel());
@@ -247,5 +251,6 @@ public void compareRoutineInfo(RoutineInfo expected, RoutineInfo value) {
assertEquals(expected.getBody(), value.getBody());
assertEquals(expected.hashCode(), value.hashCode());
assertEquals(expected.getRemoteFunctionOptions(), value.getRemoteFunctionOptions());
+ assertEquals(expected.getDataGovernanceType(), value.getDataGovernanceType());
}
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
index b37f389ae..7bdb7a7fb 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
@@ -2684,6 +2684,33 @@ public void testRoutineAPICreationTVF() {
assertEquals(routine.getReturnTableType(), returnTableType);
}
+ @Test
+ public void testRoutineDataGovernanceType() {
+ String routineName = RemoteBigQueryHelper.generateRoutineName();
+ RoutineId routineId = RoutineId.of(ROUTINE_DATASET, routineName);
+ RoutineInfo routineInfo =
+ RoutineInfo.newBuilder(routineId)
+ .setLanguage("SQL")
+ .setRoutineType("SCALAR_FUNCTION")
+ .setBody("x")
+ .setArguments(
+ ImmutableList.of(
+ RoutineArgument.newBuilder()
+ .setName("x")
+ .setDataType(StandardSQLDataType.newBuilder("INT64").build())
+ .build()))
+ .setReturnType(StandardSQLDataType.newBuilder("INT64").build())
+ .setDataGovernanceType("DATA_MASKING")
+ .build();
+
+ Routine routine = bigquery.create(routineInfo);
+ assertNotNull(routine);
+ assertEquals(routine.getLanguage(), "SQL");
+ assertEquals(routine.getRoutineType(), "SCALAR_FUNCTION");
+ assertEquals(routine.getReturnType(), StandardSQLDataType.newBuilder("INT64").build());
+ assertEquals(routine.getDataGovernanceType(), "DATA_MASKING");
+ }
+
@Test
public void testAuthorizeRoutine() {
String routineName = RemoteBigQueryHelper.generateRoutineName();
From ef480029c9e1958c1b6a6f2241b110fb3cfe036d Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 30 Nov 2023 17:18:26 +0100
Subject: [PATCH 119/393] deps: update dependency
com.google.apis:google-api-services-bigquery to v2-rev20231111-2.0.0 (#3020)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 39620b9c4..24862f0b5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,7 +54,7 @@
UTF-8
github
google-cloud-bigquery-parent
- v2-rev20231008-2.0.0
+ v2-rev20231111-2.0.0
3.19.0
12.0.1
From cc6718dd105c22e3cbb912fb6ecfd953443b92a9 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Thu, 30 Nov 2023 16:28:14 +0000
Subject: [PATCH 120/393] build(deps): bump cryptography from 41.0.2 to 41.0.6
in /.kokoro (#3017)
Bumps [cryptography](https://togithub.com/pyca/cryptography) from 41.0.2 to 41.0.6.
Changelog
Sourced from cryptography's changelog .
41.0.6 - 2023-11-27
* Fixed a null-pointer-dereference and segfault that could occur when loading
certificates from a PKCS#7 bundle. Credit to **pkuzco** for reporting the
issue. **CVE-2023-49083**
.. _v41-0-5:
41.0.5 - 2023-10-24
Updated Windows, macOS, and Linux wheels to be compiled with OpenSSL 3.1.4.
Added a function to support an upcoming pyOpenSSL
release.
.. _v41-0-4:
41.0.4 - 2023-09-19
* Updated Windows, macOS, and Linux wheels to be compiled with OpenSSL 3.1.3.
.. _v41-0-3:
41.0.3 - 2023-08-01
Fixed performance regression loading DH public keys.
Fixed a memory leak when using
:class:~cryptography.hazmat.primitives.ciphers.aead.ChaCha20Poly1305
.
Updated Windows, macOS, and Linux wheels to be compiled with OpenSSL 3.1.2.
.. _v41-0-2:
Commits
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=cryptography&package-manager=pip&previous-version=41.0.2&new-version=41.0.6)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://togithub.com/googleapis/java-bigquery/network/alerts).
From 71c3102123effabec812e0f89c0a29b74310a48e Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Thu, 30 Nov 2023 12:02:52 -0500
Subject: [PATCH 121/393] chore: track customization in templates (#1876)
(#2952)
Source-Link: https://github.com/googleapis/synthtool/commit/a79241941a00783e0da86853c455e899567c3ccb
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:d0a8eb7ffc63ddce4c63191373d6e99d5385516423c396de207dedf2b6db7427
Co-authored-by: Owl Bot
Co-authored-by: Mridula <66699525+mpeddada1@users.noreply.github.com>
---
.github/.OwlBot.lock.yaml | 1 -
1 file changed, 1 deletion(-)
diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index f930d4846..a9ab6bf94 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -14,4 +14,3 @@
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
digest: sha256:bc2bf47c7370f1b1a8a46b0c104ce7e43644ac58902c9de265fe1f253fcc2506
-# created: 2023-10-31T13:44:21.909247346Z
From 759fd64f73a437e4b9847a807b5b716069b4d20e Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 1 Dec 2023 21:49:16 +0100
Subject: [PATCH 122/393] deps: update arrow.version to v14 (#3023)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 24862f0b5..ffd2422fe 100644
--- a/pom.xml
+++ b/pom.xml
@@ -56,7 +56,7 @@
google-cloud-bigquery-parent
v2-rev20231111-2.0.0
3.19.0
- 12.0.1
+ 14.0.1
From c09d05022a78a617aefb6b4b079f44db1a2a8ed6 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 1 Dec 2023 21:49:33 +0100
Subject: [PATCH 123/393] build(deps): update dependency
com.google.cloud:google-cloud-shared-config to v1.6.1 (#3021)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index ffd2422fe..7c0b3a062 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
com.google.cloud
google-cloud-shared-config
- 1.6.0
+ 1.6.1
From 14ed571365f600b188b7d6716e2549c5b81868ad Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 1 Dec 2023 21:49:59 +0100
Subject: [PATCH 124/393] deps: update actions/setup-java action to v4 (#3018)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update actions/setup-java action to v4
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
From ab278b05fd7da9d592ae6d609c971efa17c763e5 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Fri, 1 Dec 2023 16:18:52 -0500
Subject: [PATCH 125/393] chore(main): release 2.34.3-SNAPSHOT (#2995)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index eb6fcb814..0686b6c1a 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.34.2
+ 2.34.3-SNAPSHOT
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 2e163c1a2..9f3abe0c5 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.34.2
+ 2.34.3-SNAPSHOT
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.34.2
+ 2.34.3-SNAPSHOT
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 7c0b3a062..7a85eaa3c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.34.2
+ 2.34.3-SNAPSHOT
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.34.2
+ 2.34.3-SNAPSHOT
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index f27a8d7ff..a190567b0 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.34.2
+ 2.34.3-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index 4907d332d..03f365097 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.34.2:2.34.2
\ No newline at end of file
+google-cloud-bigquery:2.34.2:2.34.3-SNAPSHOT
\ No newline at end of file
From 0293edb74e02f44803faacbce400df20da53f66c Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 1 Dec 2023 22:44:04 +0100
Subject: [PATCH 126/393] deps: update dependency
com.google.cloud:google-cloud-shared-dependencies to v3.20.0 (#3019)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 7a85eaa3c..df5778243 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,7 +55,7 @@
github
google-cloud-bigquery-parent
v2-rev20231111-2.0.0
- 3.19.0
+ 3.20.0
14.0.1
From 12e758904efb48a4136d5ba0b6351bf75e43d0de Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 1 Dec 2023 23:07:45 +0100
Subject: [PATCH 127/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquerystorage-bom to v2.47.0 (#3026)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index df5778243..abb06c0d1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -73,7 +73,7 @@
com.google.cloud
google-cloud-bigquerystorage-bom
- 2.46.0
+ 2.47.0
pom
import
From b3663f6a08a4e0393fa8c0e651d06e7f9b3c78cd Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Mon, 4 Dec 2023 10:23:15 -0500
Subject: [PATCH 128/393] chore(main): release 2.35.0 (#3028)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Mridula Peddada
---
CHANGELOG.md | 22 ++++++++++++++++++++++
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
6 files changed, 29 insertions(+), 7 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6c4b28a2b..940d1c5a5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,27 @@
# Changelog
+## [2.35.0](https://github.com/googleapis/java-bigquery/compare/v2.34.2...v2.35.0) (2023-12-01)
+
+
+### Features
+
+* Add InputBytes to extract job statistics ([#2998](https://github.com/googleapis/java-bigquery/issues/2998)) ([19b7c3a](https://github.com/googleapis/java-bigquery/commit/19b7c3ad842a566d4e3e93e48625e0281504de80))
+* Add Routine DataGovernanceType ([#3006](https://github.com/googleapis/java-bigquery/issues/3006)) ([ecb567b](https://github.com/googleapis/java-bigquery/commit/ecb567b75849cd0665ac4ab315a5af3bdf934f48))
+
+
+### Bug Fixes
+
+* Update TableInsertRows.java ([#2999](https://github.com/googleapis/java-bigquery/issues/2999)) ([ff4a086](https://github.com/googleapis/java-bigquery/commit/ff4a086f0aa3c0401b62489ea8a0b9e2fd6cb3fe))
+
+
+### Dependencies
+
+* Update actions/github-script action to v7 ([#3001](https://github.com/googleapis/java-bigquery/issues/3001)) ([d1bdeab](https://github.com/googleapis/java-bigquery/commit/d1bdeab242ea2e6374d1b6d0bbd9eadf638cbcb2))
+* Update actions/setup-java action to v4 ([#3018](https://github.com/googleapis/java-bigquery/issues/3018)) ([14ed571](https://github.com/googleapis/java-bigquery/commit/14ed571365f600b188b7d6716e2549c5b81868ad))
+* Update arrow.version to v14 ([#3023](https://github.com/googleapis/java-bigquery/issues/3023)) ([759fd64](https://github.com/googleapis/java-bigquery/commit/759fd64f73a437e4b9847a807b5b716069b4d20e))
+* Update dependency com.google.apis:google-api-services-bigquery to v2-rev20231111-2.0.0 ([#3020](https://github.com/googleapis/java-bigquery/issues/3020)) ([ef48002](https://github.com/googleapis/java-bigquery/commit/ef480029c9e1958c1b6a6f2241b110fb3cfe036d))
+* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.20.0 ([#3019](https://github.com/googleapis/java-bigquery/issues/3019)) ([0293edb](https://github.com/googleapis/java-bigquery/commit/0293edb74e02f44803faacbce400df20da53f66c))
+
## [2.34.2](https://github.com/googleapis/java-bigquery/compare/v2.34.1...v2.34.2) (2023-11-07)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 0686b6c1a..5be7ca211 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.34.3-SNAPSHOT
+ 2.35.0
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 9f3abe0c5..1806a4e4e 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.34.3-SNAPSHOT
+ 2.35.0
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.34.3-SNAPSHOT
+ 2.35.0
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index abb06c0d1..04dacf945 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.34.3-SNAPSHOT
+ 2.35.0
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.34.3-SNAPSHOT
+ 2.35.0
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index a190567b0..7744e9ca2 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.34.3-SNAPSHOT
+ 2.35.0
diff --git a/versions.txt b/versions.txt
index 03f365097..fc9d4d40a 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.34.2:2.34.3-SNAPSHOT
\ No newline at end of file
+google-cloud-bigquery:2.35.0:2.35.0
\ No newline at end of file
From 20e8b260824189612aa0e7e581be9d0d191351e2 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Tue, 5 Dec 2023 16:54:40 +0000
Subject: [PATCH 129/393] chore(main): release 2.35.1-SNAPSHOT (#3029)
:robot: I have created a release *beep* *boop*
---
### Updating meta-information for bleeding-edge SNAPSHOT release.
---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
---
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 5be7ca211..76f9ef91c 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.35.0
+ 2.35.1-SNAPSHOT
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 1806a4e4e..9d1466f15 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.35.0
+ 2.35.1-SNAPSHOT
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.35.0
+ 2.35.1-SNAPSHOT
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 04dacf945..cdc7dc974 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.35.0
+ 2.35.1-SNAPSHOT
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.35.0
+ 2.35.1-SNAPSHOT
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 7744e9ca2..0f99b68c7 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.35.0
+ 2.35.1-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index fc9d4d40a..3fa7a0036 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.35.0:2.35.0
\ No newline at end of file
+google-cloud-bigquery:2.35.0:2.35.1-SNAPSHOT
\ No newline at end of file
From f64326a9c46e1f697e15c36c7bf9c9834bc602dc Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Tue, 5 Dec 2023 16:47:25 -0500
Subject: [PATCH 130/393] ci: Update ci.yaml to introduce Java 21 unit testing
(#1907) (#3025)
Source-Link: https://github.com/googleapis/synthtool/commit/c06d605503f34e91c9d7dfee8f5287d58b5988ae
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:6f431774e11cc46619cf093fd1481193c4024031073697fa18f0099b943aab88
Co-authored-by: Owl Bot
---
.github/.OwlBot.lock.yaml | 3 ++-
.github/workflows/ci.yaml | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index a9ab6bf94..d304652e1 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,4 +13,5 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
- digest: sha256:bc2bf47c7370f1b1a8a46b0c104ce7e43644ac58902c9de265fe1f253fcc2506
+ digest: sha256:6f431774e11cc46619cf093fd1481193c4024031073697fa18f0099b943aab88
+# created: 2023-12-01T19:50:20.444857406Z
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index e27b2c575..ae66b1973 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -25,7 +25,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- java: [11, 17]
+ java: [11, 17, 21]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
From 38191b10a3c2f3ed89351e095c9fc1983bb301ea Mon Sep 17 00:00:00 2001
From: Lumenol <15960196+Lumenol@users.noreply.github.com>
Date: Wed, 13 Dec 2023 21:46:41 +0100
Subject: [PATCH 131/393] Fix: bigquery.create NullPointerException when job
already exists (#3035)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* 3034: Reproduce and propose fix
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Louis-Maxime Crédeville
Co-authored-by: Owl Bot
---
README.md | 8 +-
.../google/cloud/bigquery/BigQueryImpl.java | 2 +-
.../cloud/bigquery/BigQueryImplTest.java | 109 +++++++++---------
3 files changed, 58 insertions(+), 61 deletions(-)
diff --git a/README.md b/README.md
index 576fec2eb..7fdc5ba26 100644
--- a/README.md
+++ b/README.md
@@ -53,20 +53,20 @@ If you are using Maven without the BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:
```Groovy
-implementation platform('com.google.cloud:libraries-bom:26.27.0')
+implementation platform('com.google.cloud:libraries-bom:26.29.0')
implementation 'com.google.cloud:google-cloud-bigquery'
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigquery:2.34.2'
+implementation 'com.google.cloud:google-cloud-bigquery:2.35.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.34.2"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.35.0"
```
@@ -351,7 +351,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquery/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.34.2
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.35.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
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 0d5842724..7d329e88f 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
@@ -437,7 +437,7 @@ public com.google.api.services.bigquery.model.Job call() {
if (matcher.find()) {
// If the Job ALREADY EXISTS, retrieve it.
- Job job = this.getJob(jobInfo.getJobId());
+ Job job = this.getJob(jobInfo.getJobId(), JobOption.fields(JobField.STATISTICS));
long jobCreationTime = job.getStatistics().getCreationTime();
long jobMinStaleTime = System.currentTimeMillis();
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java
index 3bbdb98fd..04bfa6d9f 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java
@@ -16,47 +16,27 @@
package com.google.cloud.bigquery;
+import static com.google.cloud.bigquery.BigQuery.JobField.STATISTICS;
+import static com.google.cloud.bigquery.BigQuery.JobField.USER_EMAIL;
+import static com.google.cloud.bigquery.BigQueryImpl.optionMap;
import static com.google.common.truth.Truth.assertThat;
-import static org.junit.Assert.assertArrayEquals;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertSame;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
-import static org.mockito.Mockito.any;
-import static org.mockito.Mockito.doReturn;
-import static org.mockito.Mockito.eq;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.times;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.when;
+import static org.junit.Assert.*;
+import static org.mockito.Mockito.*;
import com.google.api.gax.paging.Page;
-import com.google.api.services.bigquery.model.ErrorProto;
-import com.google.api.services.bigquery.model.GetQueryResultsResponse;
-import com.google.api.services.bigquery.model.JobConfigurationQuery;
-import com.google.api.services.bigquery.model.QueryRequest;
-import com.google.api.services.bigquery.model.TableCell;
-import com.google.api.services.bigquery.model.TableDataInsertAllRequest;
-import com.google.api.services.bigquery.model.TableDataInsertAllResponse;
-import com.google.api.services.bigquery.model.TableDataList;
-import com.google.api.services.bigquery.model.TableRow;
+import com.google.api.services.bigquery.model.*;
+import com.google.api.services.bigquery.model.JobStatistics;
import com.google.cloud.Policy;
import com.google.cloud.ServiceOptions;
import com.google.cloud.Tuple;
+import com.google.cloud.bigquery.BigQuery.JobOption;
import com.google.cloud.bigquery.BigQuery.QueryResultsOption;
import com.google.cloud.bigquery.InsertAllRequest.RowToInsert;
import com.google.cloud.bigquery.spi.BigQueryRpcFactory;
import com.google.cloud.bigquery.spi.v2.BigQueryRpc;
import com.google.common.base.Function;
import com.google.common.base.Supplier;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.Iterables;
-import com.google.common.collect.Lists;
-import com.google.common.collect.Maps;
+import com.google.common.collect.*;
import java.io.IOException;
import java.math.BigInteger;
import java.util.Collections;
@@ -422,12 +402,11 @@ public class BigQueryImplTest {
BigQueryRpc.Option.START_INDEX, 0L);
// Job options
- private static final BigQuery.JobOption JOB_OPTION_FIELDS =
- BigQuery.JobOption.fields(BigQuery.JobField.USER_EMAIL);
+ private static final JobOption JOB_OPTION_FIELDS = JobOption.fields(USER_EMAIL);
// Job list options
private static final BigQuery.JobListOption JOB_LIST_OPTION_FIELD =
- BigQuery.JobListOption.fields(BigQuery.JobField.STATISTICS);
+ BigQuery.JobListOption.fields(STATISTICS);
private static final BigQuery.JobListOption JOB_LIST_ALL_USERS =
BigQuery.JobListOption.allUsers();
private static final BigQuery.JobListOption JOB_LIST_STATE_FILTER =
@@ -1615,7 +1594,7 @@ public void testCreateJobWithSelectedFields() {
any(com.google.api.services.bigquery.model.Job.class), capturedOptions.capture()))
.thenReturn(newJobPb());
- BigQuery.JobOption jobOptions = BigQuery.JobOption.fields(BigQuery.JobField.USER_EMAIL);
+ JobOption jobOptions = JobOption.fields(USER_EMAIL);
bigquery = options.getService();
bigquery.create(JobInfo.of(QueryJobConfiguration.of("SOME QUERY")), jobOptions);
@@ -1674,6 +1653,35 @@ public JobId get() {
.getJob(any(String.class), eq(id), eq((String) null), eq(EMPTY_RPC_OPTIONS));
}
+ @Test
+ public void testCreateJobTryGetNotRandom() {
+ Map withStatisticOption = optionMap(JobOption.fields(STATISTICS));
+ final String id = "testCreateJobTryGet-id";
+ String query = "SELECT * in FOO";
+
+ when(bigqueryRpcMock.create(jobCapture.capture(), eq(EMPTY_RPC_OPTIONS)))
+ .thenThrow(
+ new BigQueryException(
+ 409,
+ "already exists, for some reason",
+ new RuntimeException("Already Exists: Job")));
+ when(bigqueryRpcMock.getJob(
+ any(String.class), eq(id), eq((String) null), eq(withStatisticOption)))
+ .thenReturn(
+ newJobPb()
+ .setId(id)
+ .setStatistics(new JobStatistics().setCreationTime(System.currentTimeMillis())));
+
+ bigquery = options.getService();
+ Job job =
+ ((BigQueryImpl) bigquery).create(JobInfo.of(JobId.of(id), QueryJobConfiguration.of(query)));
+ assertThat(job).isNotNull();
+ assertThat(jobCapture.getValue().getJobReference().getJobId()).isEqualTo(id);
+ verify(bigqueryRpcMock).create(jobCapture.capture(), eq(EMPTY_RPC_OPTIONS));
+ verify(bigqueryRpcMock)
+ .getJob(any(String.class), eq(id), eq((String) null), eq(withStatisticOption));
+ }
+
@Test
public void testCreateJobWithProjectId() {
JobInfo jobInfo =
@@ -1925,7 +1933,7 @@ public void testQueryRequestCompleted() throws InterruptedException {
JOB_INFO.toPb(), Collections.emptyMap()))
.thenReturn(jobResponsePb);
when(bigqueryRpcMock.getQueryResults(
- PROJECT, JOB, null, BigQueryImpl.optionMap(Job.DEFAULT_QUERY_WAIT_OPTIONS)))
+ PROJECT, JOB, null, optionMap(Job.DEFAULT_QUERY_WAIT_OPTIONS)))
.thenReturn(responsePb);
when(bigqueryRpcMock.listTableData(
PROJECT, DATASET, TABLE, Collections.emptyMap()))
@@ -1946,8 +1954,7 @@ public void testQueryRequestCompleted() throws InterruptedException {
verify(bigqueryRpcMock)
.create(JOB_INFO.toPb(), Collections.emptyMap());
verify(bigqueryRpcMock)
- .getQueryResults(
- PROJECT, JOB, null, BigQueryImpl.optionMap(Job.DEFAULT_QUERY_WAIT_OPTIONS));
+ .getQueryResults(PROJECT, JOB, null, optionMap(Job.DEFAULT_QUERY_WAIT_OPTIONS));
verify(bigqueryRpcMock)
.listTableData(PROJECT, DATASET, TABLE, Collections.emptyMap());
@@ -2003,10 +2010,7 @@ public void testFastQueryMultiplePages() throws InterruptedException {
responseJob.getConfiguration().getQuery().setDestinationTable(TABLE_ID.toPb());
when(bigqueryRpcMock.getJob(PROJECT, JOB, null, EMPTY_RPC_OPTIONS)).thenReturn(responseJob);
when(bigqueryRpcMock.listTableData(
- PROJECT,
- DATASET,
- TABLE,
- BigQueryImpl.optionMap(BigQuery.TableDataListOption.pageToken(CURSOR))))
+ PROJECT, DATASET, TABLE, optionMap(BigQuery.TableDataListOption.pageToken(CURSOR))))
.thenReturn(
new TableDataList()
.setPageToken(CURSOR)
@@ -2044,10 +2048,7 @@ public void testFastQueryMultiplePages() throws InterruptedException {
verify(bigqueryRpcMock).getJob(PROJECT, JOB, null, EMPTY_RPC_OPTIONS);
verify(bigqueryRpcMock)
.listTableData(
- PROJECT,
- DATASET,
- TABLE,
- BigQueryImpl.optionMap(BigQuery.TableDataListOption.pageToken(CURSOR)));
+ PROJECT, DATASET, TABLE, optionMap(BigQuery.TableDataListOption.pageToken(CURSOR)));
verify(bigqueryRpcMock).queryRpc(eq(PROJECT), requestPbCapture.capture());
}
@@ -2084,7 +2085,7 @@ public void testFastQuerySlowDdl() throws InterruptedException {
responseJob.getConfiguration().getQuery().setDestinationTable(TABLE_ID.toPb());
when(bigqueryRpcMock.getJob(PROJECT, JOB, null, EMPTY_RPC_OPTIONS)).thenReturn(responseJob);
when(bigqueryRpcMock.getQueryResults(
- PROJECT, JOB, null, BigQueryImpl.optionMap(Job.DEFAULT_QUERY_WAIT_OPTIONS)))
+ PROJECT, JOB, null, optionMap(Job.DEFAULT_QUERY_WAIT_OPTIONS)))
.thenReturn(queryResultsResponsePb);
when(bigqueryRpcMock.listTableData(PROJECT, DATASET, TABLE, EMPTY_RPC_OPTIONS))
.thenReturn(new TableDataList().setRows(ImmutableList.of(TABLE_ROW)).setTotalRows(1L));
@@ -2108,8 +2109,7 @@ public void testFastQuerySlowDdl() throws InterruptedException {
verify(bigqueryRpcMock).queryRpc(eq(PROJECT), requestPbCapture.capture());
verify(bigqueryRpcMock).getJob(PROJECT, JOB, null, EMPTY_RPC_OPTIONS);
verify(bigqueryRpcMock)
- .getQueryResults(
- PROJECT, JOB, null, BigQueryImpl.optionMap(Job.DEFAULT_QUERY_WAIT_OPTIONS));
+ .getQueryResults(PROJECT, JOB, null, optionMap(Job.DEFAULT_QUERY_WAIT_OPTIONS));
verify(bigqueryRpcMock).listTableData(PROJECT, DATASET, TABLE, EMPTY_RPC_OPTIONS);
}
@@ -2143,7 +2143,7 @@ public void testQueryRequestCompletedOptions() throws InterruptedException {
optionMap.put(pageSizeOption.getRpcOption(), pageSizeOption.getValue());
when(bigqueryRpcMock.getQueryResults(
- PROJECT, JOB, null, BigQueryImpl.optionMap(Job.DEFAULT_QUERY_WAIT_OPTIONS)))
+ PROJECT, JOB, null, optionMap(Job.DEFAULT_QUERY_WAIT_OPTIONS)))
.thenReturn(responsePb);
when(bigqueryRpcMock.listTableData(PROJECT, DATASET, TABLE, optionMap))
.thenReturn(
@@ -2164,8 +2164,7 @@ public void testQueryRequestCompletedOptions() throws InterruptedException {
verify(bigqueryRpcMock)
.create(JOB_INFO.toPb(), Collections.emptyMap());
verify(bigqueryRpcMock)
- .getQueryResults(
- PROJECT, JOB, null, BigQueryImpl.optionMap(Job.DEFAULT_QUERY_WAIT_OPTIONS));
+ .getQueryResults(PROJECT, JOB, null, optionMap(Job.DEFAULT_QUERY_WAIT_OPTIONS));
verify(bigqueryRpcMock).listTableData(PROJECT, DATASET, TABLE, optionMap);
}
@@ -2199,10 +2198,10 @@ public void testQueryRequestCompletedOnSecondAttempt() throws InterruptedExcepti
JOB_INFO.toPb(), Collections.emptyMap()))
.thenReturn(jobResponsePb1);
when(bigqueryRpcMock.getQueryResults(
- PROJECT, JOB, null, BigQueryImpl.optionMap(Job.DEFAULT_QUERY_WAIT_OPTIONS)))
+ PROJECT, JOB, null, optionMap(Job.DEFAULT_QUERY_WAIT_OPTIONS)))
.thenReturn(responsePb1);
when(bigqueryRpcMock.getQueryResults(
- PROJECT, JOB, null, BigQueryImpl.optionMap(Job.DEFAULT_QUERY_WAIT_OPTIONS)))
+ PROJECT, JOB, null, optionMap(Job.DEFAULT_QUERY_WAIT_OPTIONS)))
.thenReturn(responsePb2);
when(bigqueryRpcMock.listTableData(
PROJECT, DATASET, TABLE, Collections.emptyMap()))
@@ -2223,11 +2222,9 @@ public void testQueryRequestCompletedOnSecondAttempt() throws InterruptedExcepti
verify(bigqueryRpcMock)
.create(JOB_INFO.toPb(), Collections.emptyMap());
verify(bigqueryRpcMock)
- .getQueryResults(
- PROJECT, JOB, null, BigQueryImpl.optionMap(Job.DEFAULT_QUERY_WAIT_OPTIONS));
+ .getQueryResults(PROJECT, JOB, null, optionMap(Job.DEFAULT_QUERY_WAIT_OPTIONS));
verify(bigqueryRpcMock)
- .getQueryResults(
- PROJECT, JOB, null, BigQueryImpl.optionMap(Job.DEFAULT_QUERY_WAIT_OPTIONS));
+ .getQueryResults(PROJECT, JOB, null, optionMap(Job.DEFAULT_QUERY_WAIT_OPTIONS));
verify(bigqueryRpcMock)
.listTableData(PROJECT, DATASET, TABLE, Collections.emptyMap());
}
From ff93fb8c7832ed01b59ca66f34510e343957bc83 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 15 Dec 2023 20:16:39 +0100
Subject: [PATCH 132/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigtable to v2.30.0 (#3038)
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 145e02e3f..a89c8c4ab 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -63,7 +63,7 @@
com.google.cloud
google-cloud-bigtable
- 2.29.1
+ 2.30.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 0f99b68c7..2c05468f6 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -61,7 +61,7 @@
com.google.cloud
google-cloud-bigtable
- 2.29.1
+ 2.30.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index e65db0f72..f2307eb44 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -79,7 +79,7 @@
com.google.cloud
google-cloud-bigtable
- 2.29.1
+ 2.30.0
test
From d2f1b030af8dbd0d807ecbd7c72b2fdfd9740d11 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 18 Dec 2023 16:50:05 +0100
Subject: [PATCH 133/393] build(deps): update dependency
org.apache.maven.plugins:maven-surefire-plugin to v3.2.3 (#3048)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* build(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.2.3
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
samples/native-image-sample/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index f4c1c3ddc..9310ae98e 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -111,7 +111,7 @@
org.apache.maven.plugins
maven-surefire-plugin
- 3.2.2
+ 3.2.3
**/*IT
From 68a9e915d65ce8781cfa5e361ddb77666fb41d0b Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Mon, 18 Dec 2023 11:08:00 -0500
Subject: [PATCH 134/393] build(deps): bump cryptography from 41.0.2 to 41.0.3
in /synthtool/gcp/templates/java_library/.kokoro (#1846) (#3036)
build(deps): bump cryptography
Bumps [cryptography](https://github.com/pyca/cryptography) from 41.0.2 to 41.0.3.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/41.0.2...41.0.3)
---
updated-dependencies:
- dependency-name: cryptography
dependency-type: indirect
...
Source-Link: https://github.com/googleapis/synthtool/commit/bfb4e631084fff256869cd33bcb6aaa55f1c736d
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:11d59eabd49dc088f8339fb96e9da79ba4b3a73b3d49a8a4e0263e91edd053ba
Signed-off-by: dependabot[bot]
Co-authored-by: Owl Bot
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Burke Davison <40617934+burkedavison@users.noreply.github.com>
Co-authored-by: Jeffrey Rennie
Co-authored-by: Alice <65933803+alicejli@users.noreply.github.com>
Co-authored-by: PhongChuong <147636638+PhongChuong@users.noreply.github.com>
---
.github/.OwlBot.lock.yaml | 4 ++--
.kokoro/requirements.txt | 48 +++++++++++++++++++--------------------
2 files changed, 26 insertions(+), 26 deletions(-)
diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index d304652e1..bff46cd66 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,5 +13,5 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
- digest: sha256:6f431774e11cc46619cf093fd1481193c4024031073697fa18f0099b943aab88
-# created: 2023-12-01T19:50:20.444857406Z
+ digest: sha256:11d59eabd49dc088f8339fb96e9da79ba4b3a73b3d49a8a4e0263e91edd053ba
+# created: 2023-12-05T18:46:43.811070085Z
\ No newline at end of file
diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt
index c5c11bbe7..6a36ccab4 100644
--- a/.kokoro/requirements.txt
+++ b/.kokoro/requirements.txt
@@ -170,30 +170,30 @@ colorlog==6.7.0 \
--hash=sha256:0d33ca236784a1ba3ff9c532d4964126d8a2c44f1f0cb1d2b0728196f512f662 \
--hash=sha256:bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5
# via gcp-docuploader
-cryptography==41.0.2 \
- --hash=sha256:01f1d9e537f9a15b037d5d9ee442b8c22e3ae11ce65ea1f3316a41c78756b711 \
- --hash=sha256:079347de771f9282fbfe0e0236c716686950c19dee1b76240ab09ce1624d76d7 \
- --hash=sha256:182be4171f9332b6741ee818ec27daff9fb00349f706629f5cbf417bd50e66fd \
- --hash=sha256:192255f539d7a89f2102d07d7375b1e0a81f7478925b3bc2e0549ebf739dae0e \
- --hash=sha256:2a034bf7d9ca894720f2ec1d8b7b5832d7e363571828037f9e0c4f18c1b58a58 \
- --hash=sha256:342f3767e25876751e14f8459ad85e77e660537ca0a066e10e75df9c9e9099f0 \
- --hash=sha256:439c3cc4c0d42fa999b83ded80a9a1fb54d53c58d6e59234cfe97f241e6c781d \
- --hash=sha256:49c3222bb8f8e800aead2e376cbef687bc9e3cb9b58b29a261210456a7783d83 \
- --hash=sha256:674b669d5daa64206c38e507808aae49904c988fa0a71c935e7006a3e1e83831 \
- --hash=sha256:7a9a3bced53b7f09da251685224d6a260c3cb291768f54954e28f03ef14e3766 \
- --hash=sha256:7af244b012711a26196450d34f483357e42aeddb04128885d95a69bd8b14b69b \
- --hash=sha256:7d230bf856164de164ecb615ccc14c7fc6de6906ddd5b491f3af90d3514c925c \
- --hash=sha256:84609ade00a6ec59a89729e87a503c6e36af98ddcd566d5f3be52e29ba993182 \
- --hash=sha256:9a6673c1828db6270b76b22cc696f40cde9043eb90373da5c2f8f2158957f42f \
- --hash=sha256:9b6d717393dbae53d4e52684ef4f022444fc1cce3c48c38cb74fca29e1f08eaa \
- --hash=sha256:9c3fe6534d59d071ee82081ca3d71eed3210f76ebd0361798c74abc2bcf347d4 \
- --hash=sha256:a719399b99377b218dac6cf547b6ec54e6ef20207b6165126a280b0ce97e0d2a \
- --hash=sha256:b332cba64d99a70c1e0836902720887fb4529ea49ea7f5462cf6640e095e11d2 \
- --hash=sha256:d124682c7a23c9764e54ca9ab5b308b14b18eba02722b8659fb238546de83a76 \
- --hash=sha256:d73f419a56d74fef257955f51b18d046f3506270a5fd2ac5febbfa259d6c0fa5 \
- --hash=sha256:f0dc40e6f7aa37af01aba07277d3d64d5a03dc66d682097541ec4da03cc140ee \
- --hash=sha256:f14ad275364c8b4e525d018f6716537ae7b6d369c094805cae45300847e0894f \
- --hash=sha256:f772610fe364372de33d76edcd313636a25684edb94cee53fd790195f5989d14
+cryptography==41.0.3 \
+ --hash=sha256:0d09fb5356f975974dbcb595ad2d178305e5050656affb7890a1583f5e02a306 \
+ --hash=sha256:23c2d778cf829f7d0ae180600b17e9fceea3c2ef8b31a99e3c694cbbf3a24b84 \
+ --hash=sha256:3fb248989b6363906827284cd20cca63bb1a757e0a2864d4c1682a985e3dca47 \
+ --hash=sha256:41d7aa7cdfded09b3d73a47f429c298e80796c8e825ddfadc84c8a7f12df212d \
+ --hash=sha256:42cb413e01a5d36da9929baa9d70ca90d90b969269e5a12d39c1e0d475010116 \
+ --hash=sha256:4c2f0d35703d61002a2bbdcf15548ebb701cfdd83cdc12471d2bae80878a4207 \
+ --hash=sha256:4fd871184321100fb400d759ad0cddddf284c4b696568204d281c902fc7b0d81 \
+ --hash=sha256:5259cb659aa43005eb55a0e4ff2c825ca111a0da1814202c64d28a985d33b087 \
+ --hash=sha256:57a51b89f954f216a81c9d057bf1a24e2f36e764a1ca9a501a6964eb4a6800dd \
+ --hash=sha256:652627a055cb52a84f8c448185922241dd5217443ca194d5739b44612c5e6507 \
+ --hash=sha256:67e120e9a577c64fe1f611e53b30b3e69744e5910ff3b6e97e935aeb96005858 \
+ --hash=sha256:6af1c6387c531cd364b72c28daa29232162010d952ceb7e5ca8e2827526aceae \
+ --hash=sha256:6d192741113ef5e30d89dcb5b956ef4e1578f304708701b8b73d38e3e1461f34 \
+ --hash=sha256:7efe8041897fe7a50863e51b77789b657a133c75c3b094e51b5e4b5cec7bf906 \
+ --hash=sha256:84537453d57f55a50a5b6835622ee405816999a7113267739a1b4581f83535bd \
+ --hash=sha256:8f09daa483aedea50d249ef98ed500569841d6498aa9c9f4b0531b9964658922 \
+ --hash=sha256:95dd7f261bb76948b52a5330ba5202b91a26fbac13ad0e9fc8a3ac04752058c7 \
+ --hash=sha256:a74fbcdb2a0d46fe00504f571a2a540532f4c188e6ccf26f1f178480117b33c4 \
+ --hash=sha256:a983e441a00a9d57a4d7c91b3116a37ae602907a7618b882c8013b5762e80574 \
+ --hash=sha256:ab8de0d091acbf778f74286f4989cf3d1528336af1b59f3e5d2ebca8b5fe49e1 \
+ --hash=sha256:aeb57c421b34af8f9fe830e1955bf493a86a7996cc1338fe41b30047d16e962c \
+ --hash=sha256:ce785cf81a7bdade534297ef9e490ddff800d956625020ab2ec2780a556c313e \
+ --hash=sha256:d0d651aa754ef58d75cec6edfbd21259d93810b73f6ec246436a21b7841908de
# via
# gcp-releasetool
# secretstorage
From a7106325b0f688fc36b1b93ecb7001e45b54a454 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 18 Dec 2023 17:46:12 +0100
Subject: [PATCH 135/393] deps: update dependency
com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.34.0
(#3033)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index cdc7dc974..f3a9f5156 100644
--- a/pom.xml
+++ b/pom.xml
@@ -167,7 +167,7 @@
com.google.api.grpc
proto-google-cloud-bigqueryconnection-v1
- 2.32.0
+ 2.34.0
test
From 270f8665a4973be6091697bc8101bee76e26ff1d Mon Sep 17 00:00:00 2001
From: PhongChuong <147636638+PhongChuong@users.noreply.github.com>
Date: Tue, 19 Dec 2023 07:44:37 -0500
Subject: [PATCH 136/393] feat: Use location in BigQueryOption as the default
for query (#3047)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* feat: Use location in BigQueryOption as the default for query
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* feat: Use location in BigQueryOption as the default for query
* feat: Use location in BigQueryOption as the default for query
* feat: Use location in BigQueryOption as the default for query
---------
Co-authored-by: Owl Bot
---
.../google/cloud/bigquery/BigQueryImpl.java | 9 ++-
.../cloud/bigquery/BigQueryImplTest.java | 41 +++++++++++
.../cloud/bigquery/it/ITBigQueryTest.java | 73 ++++++++++++++++---
3 files changed, 111 insertions(+), 12 deletions(-)
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 7d329e88f..dcbcd19b0 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
@@ -1339,6 +1339,9 @@ public TableResult query(QueryJobConfiguration configuration, JobOption... optio
if (requestInfo.isFastQuerySupported(null)) {
String projectId = getOptions().getProjectId();
QueryRequest content = requestInfo.toPb();
+ if (getOptions().getLocation() != null) {
+ content.setLocation(getOptions().getLocation());
+ }
return queryRpc(projectId, content, options);
}
// Otherwise, fall back to the existing create query job logic
@@ -1437,12 +1440,14 @@ public TableResult query(QueryJobConfiguration configuration, JobId jobId, JobOp
String projectId =
jobId.getProject() != null ? jobId.getProject() : getOptions().getProjectId();
QueryRequest content = requestInfo.toPb();
- // Be careful when setting the location in JobId, if a location is specified in the JobId,
- // the job created by the query method will be in that location, even if the table to be
+ // Be careful when setting the location, if a location is specified in the BigQueryOption or
+ // JobId the job created by the query method will be in that location, even if the table to be
// queried is in a different location. This may cause the query to fail with
// "BigQueryException: Not found"
if (jobId.getLocation() != null) {
content.setLocation(jobId.getLocation());
+ } else if (getOptions().getLocation() != null) {
+ content.setLocation(getOptions().getLocation());
}
return queryRpc(projectId, content, options);
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java
index 04bfa6d9f..62160bef2 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java
@@ -1994,6 +1994,47 @@ public void testFastQueryRequestCompleted() throws InterruptedException {
QUERY_JOB_CONFIGURATION_FOR_QUERY.getDefaultDataset().getDataset(),
requestPb.getDefaultDataset().getDatasetId());
assertEquals(QUERY_JOB_CONFIGURATION_FOR_QUERY.useQueryCache(), requestPb.getUseQueryCache());
+ assertNull(requestPb.getLocation());
+
+ verify(bigqueryRpcMock).queryRpc(eq(PROJECT), requestPbCapture.capture());
+ }
+
+ @Test
+ public void testFastQueryRequestCompletedWithLocation() throws InterruptedException {
+ com.google.api.services.bigquery.model.QueryResponse queryResponsePb =
+ new com.google.api.services.bigquery.model.QueryResponse()
+ .setCacheHit(false)
+ .setJobComplete(true)
+ .setKind("bigquery#queryResponse")
+ .setPageToken(null)
+ .setRows(ImmutableList.of(TABLE_ROW))
+ .setSchema(TABLE_SCHEMA.toPb())
+ .setTotalBytesProcessed(42L)
+ .setTotalRows(BigInteger.valueOf(1L));
+
+ when(bigqueryRpcMock.queryRpc(eq(PROJECT), requestPbCapture.capture()))
+ .thenReturn(queryResponsePb);
+
+ BigQueryOptions options = createBigQueryOptionsForProjectWithLocation(PROJECT, rpcFactoryMock);
+ bigquery = options.getService();
+ TableResult result = bigquery.query(QUERY_JOB_CONFIGURATION_FOR_QUERY);
+ assertNull(result.getNextPage());
+ assertNull(result.getNextPageToken());
+ assertFalse(result.hasNextPage());
+ assertThat(result.getSchema()).isEqualTo(TABLE_SCHEMA);
+ assertThat(result.getTotalRows()).isEqualTo(1);
+ for (FieldValueList row : result.getValues()) {
+ assertThat(row.get(0).getBooleanValue()).isFalse();
+ assertThat(row.get(1).getLongValue()).isEqualTo(1);
+ }
+
+ QueryRequest requestPb = requestPbCapture.getValue();
+ assertEquals(QUERY_JOB_CONFIGURATION_FOR_QUERY.getQuery(), requestPb.getQuery());
+ assertEquals(
+ QUERY_JOB_CONFIGURATION_FOR_QUERY.getDefaultDataset().getDataset(),
+ requestPb.getDefaultDataset().getDatasetId());
+ assertEquals(QUERY_JOB_CONFIGURATION_FOR_QUERY.useQueryCache(), requestPb.getUseQueryCache());
+ assertEquals(LOCATION, requestPb.getLocation());
verify(bigqueryRpcMock).queryRpc(eq(PROJECT), requestPbCapture.capture());
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
index 7bdb7a7fb..9a0e3e107 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
@@ -6227,27 +6227,80 @@ public void testAlreadyExistJobExceptionHandling() throws InterruptedException {
@Test
public void testStatelessQueries() throws InterruptedException {
+ // Create local BigQuery to not contaminate global test parameters.
+ RemoteBigQueryHelper bigqueryHelper = RemoteBigQueryHelper.create();
+ BigQuery bigQuery = bigqueryHelper.getOptions().getService();
+
// simulate setting the QUERY_PREVIEW_ENABLED environment variable
- bigquery.getOptions().setQueryPreviewEnabled("TRUE");
- assertNull(executeSimpleQuery().getJobId());
+ bigQuery.getOptions().setQueryPreviewEnabled("TRUE");
+ assertNull(executeSimpleQuery(bigQuery).getJobId());
// the flag should be case-insensitive
- bigquery.getOptions().setQueryPreviewEnabled("tRuE");
- assertNull(executeSimpleQuery().getJobId());
+ bigQuery.getOptions().setQueryPreviewEnabled("tRuE");
+ assertNull(executeSimpleQuery(bigQuery).getJobId());
// any other values won't enable optional job creation mode
- bigquery.getOptions().setQueryPreviewEnabled("test_value");
- assertNotNull(executeSimpleQuery().getJobId());
+ bigQuery.getOptions().setQueryPreviewEnabled("test_value");
+ assertNotNull(executeSimpleQuery(bigQuery).getJobId());
// reset the flag
- bigquery.getOptions().setQueryPreviewEnabled(null);
- assertNotNull(executeSimpleQuery().getJobId());
+ bigQuery.getOptions().setQueryPreviewEnabled(null);
+ assertNotNull(executeSimpleQuery(bigQuery).getJobId());
}
- private TableResult executeSimpleQuery() throws InterruptedException {
+ private TableResult executeSimpleQuery(BigQuery bigQuery) throws InterruptedException {
String query = "SELECT 1 as one";
QueryJobConfiguration config = QueryJobConfiguration.newBuilder(query).build();
- TableResult result = bigquery.query(config);
+ TableResult result = bigQuery.query(config);
return result;
}
+
+ @Test
+ public void testStatelessQueriesWithLocation() throws Exception {
+ // This test validates BigQueryOption location is used for stateless query by verifying that the
+ // stateless query fails when the BigQueryOption location does not match the dataset location.
+ String location = "EU";
+ String wrongLocation = "US";
+
+ RemoteBigQueryHelper bigqueryHelper = RemoteBigQueryHelper.create();
+ BigQuery bigQuery =
+ bigqueryHelper.getOptions().toBuilder().setLocation(location).build().getService();
+
+ Dataset dataset =
+ bigQuery.create(
+ DatasetInfo.newBuilder("locationset_" + UUID.randomUUID().toString().replace("-", "_"))
+ .setLocation(location)
+ .build());
+ try {
+ TableId tableId = TableId.of(dataset.getDatasetId().getDataset(), "sometable");
+ Schema schema = Schema.of(Field.of("name", LegacySQLTypeName.STRING));
+ TableDefinition tableDef = StandardTableDefinition.of(schema);
+ Table table = bigQuery.create(TableInfo.newBuilder(tableId, tableDef).build());
+
+ String query =
+ String.format(
+ "SELECT * FROM `%s.%s.%s`",
+ table.getTableId().getProject(),
+ table.getTableId().getDataset(),
+ table.getTableId().getTable());
+
+ // Test stateless query when BigQueryOption location matches dataset location.
+ bigQuery.getOptions().setQueryPreviewEnabled("TRUE");
+ TableResult tb = bigQuery.query(QueryJobConfiguration.of(query));
+ assertNull(tb.getJobId());
+
+ // Test stateless query when BigQueryOption location does not match dataset location.
+ try {
+ BigQuery bigQueryWrongLocation =
+ bigqueryHelper.getOptions().toBuilder().setLocation(wrongLocation).build().getService();
+ bigQueryWrongLocation.getOptions().setQueryPreviewEnabled("TRUE");
+ bigQueryWrongLocation.query(QueryJobConfiguration.of(query));
+ fail("querying a table with wrong location shouldn't work");
+ } catch (BigQueryException e) {
+ // Nothing to do
+ }
+ } finally {
+ bigQuery.delete(dataset.getDatasetId(), DatasetDeleteOption.deleteContents());
+ }
+ }
}
From 2d43a1f44127f43010e7ce77e269a95d07d55810 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 19 Dec 2023 13:45:46 +0100
Subject: [PATCH 137/393] build(deps): update dependency
com.google.cloud:google-cloud-shared-config to v1.7.1 (#3049)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index f3a9f5156..e6f9c650f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
com.google.cloud
google-cloud-shared-config
- 1.6.1
+ 1.7.1
From b0dc33ad4e004edcfbee131edb5745159f9e6af3 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 19 Dec 2023 17:24:19 +0100
Subject: [PATCH 138/393] deps: update arrow.version to v14.0.2 (#3050)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index e6f9c650f..645f7ea71 100644
--- a/pom.xml
+++ b/pom.xml
@@ -56,7 +56,7 @@
google-cloud-bigquery-parent
v2-rev20231111-2.0.0
3.20.0
- 14.0.1
+ 14.0.2
From c76e8f5a1ae8f77b784348b6c3eeb5b7252a6f57 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 20 Dec 2023 17:47:56 +0100
Subject: [PATCH 139/393] build(deps): update dependency
org.apache.maven.plugins:maven-compiler-plugin to v3.12.0 (#3051)
---
benchmark/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 76f9ef91c..d1e001a29 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -37,7 +37,7 @@
org.apache.maven.plugins
maven-compiler-plugin
- 3.11.0
+ 3.12.0
org.apache.maven.plugins
From c71eabfd36ed30ec56aefaecd20d7da000090d00 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 20 Dec 2023 17:51:32 +0100
Subject: [PATCH 140/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigqueryconnection to v2.33.0 (#3032)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigqueryconnection to v2.33.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 645f7ea71..069dbfb68 100644
--- a/pom.xml
+++ b/pom.xml
@@ -161,7 +161,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.32.0
+ 2.33.0
test
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index a89c8c4ab..5bf418cd8 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -69,7 +69,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.32.0
+ 2.33.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 2c05468f6..c6c87a961 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -67,7 +67,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.32.0
+ 2.33.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index f2307eb44..4eb97c948 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -85,7 +85,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.32.0
+ 2.33.0
test
From f4abbc2b6a1b2ce03a0f4ad4387d4ce5a7d7fcc8 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 20 Dec 2023 19:08:42 +0100
Subject: [PATCH 141/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigqueryconnection to v2.34.0 (#3053)
---
pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 069dbfb68..4ee9e0ea8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -161,7 +161,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.33.0
+ 2.34.0
test
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 5bf418cd8..f5fb70316 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -69,7 +69,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.33.0
+ 2.34.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index c6c87a961..10d895eb2 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -67,7 +67,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.33.0
+ 2.34.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 4eb97c948..0d89f1fc1 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -85,7 +85,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.33.0
+ 2.34.0
test
From 52d5e97bdb9fa58c9fbee06cc1b41d58feeae379 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 20 Dec 2023 20:03:54 +0100
Subject: [PATCH 142/393] deps: update github/codeql-action action to v2.22.11
(#3002)
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 730e29276..bdbab91e1 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@74483a38d39275f33fcff5f35b679b5ca4a26a99 # v2.22.5
+ uses: github/codeql-action/upload-sarif@03e7845b7bfcd5e7fb63d1ae8c61b0e791134fab # v2.22.11
with:
sarif_file: results.sarif
From 7d761006b4a7f549bf254b03f67989c9b41cd7b1 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 21 Dec 2023 16:18:49 +0100
Subject: [PATCH 143/393] deps: update actions/upload-artifact action to v4
(#3055)
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index bdbab91e1..c7f7f64aa 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -59,7 +59,7 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
+ uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
with:
name: SARIF file
path: results.sarif
From fb4d0e5e944b9ad7e8aa56e51c059a20b1c4d6eb Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 21 Dec 2023 16:22:46 +0100
Subject: [PATCH 144/393] test(deps): update dependency com.google.truth:truth
to v1.2.0 (#3054)
---
pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/native-image-sample/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/pom.xml b/pom.xml
index 4ee9e0ea8..c8f6decbc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -137,7 +137,7 @@
com.google.truth
truth
- 1.1.5
+ 1.2.0
test
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index f5fb70316..b8478a837 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -81,7 +81,7 @@
com.google.truth
truth
- 1.1.5
+ 1.2.0
test
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index 9310ae98e..95de88cf6 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -62,7 +62,7 @@
com.google.truth
truth
- 1.1.5
+ 1.2.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 10d895eb2..6892d55a9 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -79,7 +79,7 @@
com.google.truth
truth
- 1.1.5
+ 1.2.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 0d89f1fc1..3debd229e 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -97,7 +97,7 @@
com.google.truth
truth
- 1.1.5
+ 1.2.0
test
From 21b525f58121d1a3473ea0454ddc9a21178d8776 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 21 Dec 2023 16:31:23 +0100
Subject: [PATCH 145/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquery to v2.35.0 (#3030)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigquery to v2.35.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 2 +-
samples/install-without-bom/pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 7fdc5ba26..0a5c250ae 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquery
- 2.34.2
+ 2.35.0
```
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index b8478a837..99e3a8540 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -45,7 +45,7 @@
com.google.cloud
google-cloud-bigquery
- 2.34.2
+ 2.35.0
From 7a1bbd2d33e71644d83c42b71c67bac099882a4a Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 21 Dec 2023 17:01:18 +0100
Subject: [PATCH 146/393] test(deps): update dependency
com.google.cloud:google-cloud-storage to v2.30.1 (#3031)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index c8f6decbc..99903e7f2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -155,7 +155,7 @@
com.google.cloud
google-cloud-storage
- 2.29.1
+ 2.30.1
test
From febfc1fdb026a0d07ab24159437633cfb7f44c5d Mon Sep 17 00:00:00 2001
From: PhongChuong <147636638+PhongChuong@users.noreply.github.com>
Date: Fri, 5 Jan 2024 11:38:03 -0500
Subject: [PATCH 147/393] feat: Support RANGE schema (#3043)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* feat: Add support for creating tables with range type schema
* feat: Add support for creating tables with range type schema
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* feat: Use location in BigQueryOption as the default for query
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.../java/com/google/cloud/bigquery/Field.java | 25 +++++++-
.../cloud/bigquery/FieldElementType.java | 63 +++++++++++++++++++
.../cloud/bigquery/LegacySQLTypeName.java | 4 ++
.../cloud/bigquery/StandardSQLTypeName.java | 4 +-
.../cloud/bigquery/FieldElementTypeTest.java | 46 ++++++++++++++
.../cloud/bigquery/it/ITBigQueryTest.java | 20 ++++++
6 files changed, 160 insertions(+), 2 deletions(-)
create mode 100644 google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/FieldElementType.java
create mode 100644 google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldElementTypeTest.java
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Field.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Field.java
index 7496530dd..9fbc2ab91 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Field.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Field.java
@@ -64,6 +64,7 @@ public TableFieldSchema apply(Field field) {
private final Long precision;
private final String defaultValueExpression;
private final String collation;
+ private final FieldElementType rangeElementType;
/**
* Mode for a BigQuery Table field. {@link Mode#NULLABLE} fields can be set to {@code null},
@@ -89,6 +90,7 @@ public static final class Builder {
private Long precision;
private String defaultValueExpression;
private String collation;
+ private FieldElementType rangeElementType;
private Builder() {}
@@ -104,6 +106,7 @@ private Builder(Field field) {
this.precision = field.precision;
this.defaultValueExpression = field.defaultValueExpression;
this.collation = field.collation;
+ this.rangeElementType = field.rangeElementType;
}
/**
@@ -292,6 +295,12 @@ public Builder setCollation(String collation) {
return this;
}
+ /** Optional. Field range element type can be set only when the type of field is RANGE. */
+ public Builder setRangeElementType(FieldElementType rangeElementType) {
+ this.rangeElementType = rangeElementType;
+ return this;
+ }
+
/** Creates a {@code Field} object. */
public Field build() {
return new Field(this);
@@ -310,6 +319,7 @@ private Field(Builder builder) {
this.precision = builder.precision;
this.defaultValueExpression = builder.defaultValueExpression;
this.collation = builder.collation;
+ this.rangeElementType = builder.rangeElementType;
}
/** Returns the field name. */
@@ -369,6 +379,11 @@ public String getCollation() {
return collation;
}
+ /** Return the range element type the field. */
+ public FieldElementType getRangeElementType() {
+ return rangeElementType;
+ }
+
/**
* Returns the list of sub-fields if {@link #getType()} is a {@link LegacySQLTypeName#RECORD}.
* Returns {@code null} otherwise.
@@ -395,12 +410,13 @@ public String toString() {
.add("precision", precision)
.add("defaultValueExpression", defaultValueExpression)
.add("collation", collation)
+ .add("rangeElementType", rangeElementType)
.toString();
}
@Override
public int hashCode() {
- return Objects.hash(name, type, mode, description, policyTags);
+ return Objects.hash(name, type, mode, description, policyTags, rangeElementType);
}
@Override
@@ -484,6 +500,9 @@ TableFieldSchema toPb() {
if (collation != null) {
fieldSchemaPb.setCollation(collation);
}
+ if (rangeElementType != null) {
+ fieldSchemaPb.setRangeElementType(rangeElementType.toPb());
+ }
return fieldSchemaPb;
}
@@ -519,6 +538,10 @@ static Field fromPb(TableFieldSchema fieldSchemaPb) {
if (fieldSchemaPb.getCollation() != null) {
fieldBuilder.setCollation(fieldSchemaPb.getCollation());
}
+ if (fieldSchemaPb.getRangeElementType() != null) {
+ fieldBuilder.setRangeElementType(
+ FieldElementType.fromPb(fieldSchemaPb.getRangeElementType()));
+ }
return fieldBuilder.build();
}
}
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/FieldElementType.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/FieldElementType.java
new file mode 100644
index 000000000..43446e1d0
--- /dev/null
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/FieldElementType.java
@@ -0,0 +1,63 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.cloud.bigquery;
+
+import com.google.api.services.bigquery.model.TableFieldSchema;
+import com.google.auto.value.AutoValue;
+import java.io.Serializable;
+import javax.annotation.Nullable;
+
+@AutoValue
+public abstract class FieldElementType implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * The subtype of the RANGE, if the field type is RANGE.
+ *
+ * @return value or {@code null} for none
+ */
+ @Nullable
+ public abstract String getType();
+
+ public abstract FieldElementType.Builder toBuilder();
+
+ @AutoValue.Builder
+ public abstract static class Builder {
+
+ public abstract FieldElementType.Builder setType(String type);
+
+ public abstract FieldElementType build();
+ }
+
+ public static Builder newBuilder() {
+ return new AutoValue_FieldElementType.Builder();
+ }
+
+ TableFieldSchema.RangeElementType toPb() {
+ TableFieldSchema.RangeElementType rangeElementTypePb = new TableFieldSchema.RangeElementType();
+ rangeElementTypePb.setType(getType());
+ return rangeElementTypePb;
+ }
+
+ static FieldElementType fromPb(TableFieldSchema.RangeElementType rangeElementTypePb) {
+ // Treat a FieldElementType message without a Type subfield as invalid.
+ if (rangeElementTypePb.getType() != null) {
+ return newBuilder().setType(rangeElementTypePb.getType()).build();
+ }
+ return null;
+ }
+}
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 944df2fb0..dec2583e9 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
@@ -100,6 +100,10 @@ public LegacySQLTypeName apply(String constant) {
public static final LegacySQLTypeName INTERVAL =
type.createAndRegister("INTERVAL").setStandardType(StandardSQLTypeName.INTERVAL);
+ /** Represents a contiguous range of values. */
+ public static final LegacySQLTypeName RANGE =
+ type.createAndRegister("RANGE").setStandardType(StandardSQLTypeName.RANGE);
+
private static Map standardToLegacyMap = new HashMap<>();
static {
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/StandardSQLTypeName.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/StandardSQLTypeName.java
index 1081fc5d6..1f70183cd 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/StandardSQLTypeName.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/StandardSQLTypeName.java
@@ -60,5 +60,7 @@ public enum StandardSQLTypeName {
/** Represents JSON data. */
JSON,
/** Represents duration or amount of time. */
- INTERVAL
+ INTERVAL,
+ /** Represents a contiguous range of values. */
+ RANGE
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldElementTypeTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldElementTypeTest.java
new file mode 100644
index 000000000..9b4590892
--- /dev/null
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldElementTypeTest.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.cloud.bigquery;
+
+import static org.junit.Assert.assertEquals;
+
+import org.junit.Test;
+
+public class FieldElementTypeTest {
+ private static final FieldElementType FIELD_ELEMENT_TYPE =
+ FieldElementType.newBuilder().setType("DATE").build();
+
+ @Test
+ public void testToBuilder() {
+ compareFieldElementType(FIELD_ELEMENT_TYPE, FIELD_ELEMENT_TYPE.toBuilder().build());
+ }
+
+ @Test
+ public void testBuilder() {
+ assertEquals("DATE", FIELD_ELEMENT_TYPE.getType());
+ }
+
+ @Test
+ public void testFromAndPb() {
+ assertEquals(FIELD_ELEMENT_TYPE, FieldElementType.fromPb(FIELD_ELEMENT_TYPE.toPb()));
+ }
+
+ private void compareFieldElementType(FieldElementType expected, FieldElementType value) {
+ assertEquals(expected.getType(), value.getType());
+ assertEquals(expected.hashCode(), value.hashCode());
+ assertEquals(expected.toString(), value.toString());
+ }
+}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
index 9a0e3e107..d8d673360 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
@@ -72,6 +72,7 @@
import com.google.cloud.bigquery.ExtractJobConfiguration;
import com.google.cloud.bigquery.Field;
import com.google.cloud.bigquery.Field.Mode;
+import com.google.cloud.bigquery.FieldElementType;
import com.google.cloud.bigquery.FieldList;
import com.google.cloud.bigquery.FieldValue;
import com.google.cloud.bigquery.FieldValue.Attribute;
@@ -1246,6 +1247,25 @@ public void testIntervalType() throws InterruptedException {
}
}
+ @Test
+ public void testRangeType() throws InterruptedException {
+ String tableName = "test_create_table_rangetype";
+ TableId tableId = TableId.of(DATASET, tableName);
+ Schema schema =
+ Schema.of(
+ Field.newBuilder("rangeField", StandardSQLTypeName.RANGE)
+ .setRangeElementType(FieldElementType.newBuilder().setType("DATETIME").build())
+ .build());
+ StandardTableDefinition standardTableDefinition = StandardTableDefinition.of(schema);
+ try {
+ // Create a table with a RANGE column.
+ Table createdTable = bigquery.create(TableInfo.of(tableId, standardTableDefinition));
+ assertNotNull(createdTable);
+ } finally {
+ assertTrue(bigquery.delete(tableId));
+ }
+ }
+
@Test
public void testCreateTableWithConstraints() {
String tableName = "test_create_table_with_constraints";
From 78995c47ba33019e1007f98d152016ffc3184bd4 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 8 Jan 2024 17:33:48 +0100
Subject: [PATCH 148/393] deps: update dependency
com.google.cloud:google-cloud-shared-dependencies to v3.21.0 (#3060)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 99903e7f2..5d5bd27ca 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,7 +55,7 @@
github
google-cloud-bigquery-parent
v2-rev20231111-2.0.0
- 3.20.0
+ 3.21.0
14.0.2
From 27489c7215939078f37beec405d6ccd7e9acfd12 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 10 Jan 2024 18:18:23 +0100
Subject: [PATCH 149/393] test(deps): update dependency
com.google.cloud:google-cloud-storage to v2.31.0 (#3063)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 5d5bd27ca..ec4240d77 100644
--- a/pom.xml
+++ b/pom.xml
@@ -155,7 +155,7 @@
com.google.cloud
google-cloud-storage
- 2.30.1
+ 2.31.0
test
From 645ff9cf0632bab1cf65d77ceaa969f7edc7fc96 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Thu, 11 Jan 2024 11:04:10 -0500
Subject: [PATCH 150/393] chore(main): release 2.36.0 (#3044)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
CHANGELOG.md | 22 ++++++++++++++++++++++
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
6 files changed, 29 insertions(+), 7 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 940d1c5a5..88197b2c1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,27 @@
# Changelog
+## [2.36.0](https://github.com/googleapis/java-bigquery/compare/v2.35.0...v2.36.0) (2024-01-10)
+
+
+### Features
+
+* Support RANGE schema ([#3043](https://github.com/googleapis/java-bigquery/issues/3043)) ([febfc1f](https://github.com/googleapis/java-bigquery/commit/febfc1fdb026a0d07ab24159437633cfb7f44c5d))
+* Use location in BigQueryOption as the default for query ([#3047](https://github.com/googleapis/java-bigquery/issues/3047)) ([270f866](https://github.com/googleapis/java-bigquery/commit/270f8665a4973be6091697bc8101bee76e26ff1d))
+
+
+### Bug Fixes
+
+* Bigquery.create NullPointerException when job already exists ([#3035](https://github.com/googleapis/java-bigquery/issues/3035)) ([38191b1](https://github.com/googleapis/java-bigquery/commit/38191b10a3c2f3ed89351e095c9fc1983bb301ea))
+
+
+### Dependencies
+
+* Update actions/upload-artifact action to v4 ([#3055](https://github.com/googleapis/java-bigquery/issues/3055)) ([7d76100](https://github.com/googleapis/java-bigquery/commit/7d761006b4a7f549bf254b03f67989c9b41cd7b1))
+* Update arrow.version to v14.0.2 ([#3050](https://github.com/googleapis/java-bigquery/issues/3050)) ([b0dc33a](https://github.com/googleapis/java-bigquery/commit/b0dc33ad4e004edcfbee131edb5745159f9e6af3))
+* Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.34.0 ([#3033](https://github.com/googleapis/java-bigquery/issues/3033)) ([a710632](https://github.com/googleapis/java-bigquery/commit/a7106325b0f688fc36b1b93ecb7001e45b54a454))
+* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.21.0 ([#3060](https://github.com/googleapis/java-bigquery/issues/3060)) ([78995c4](https://github.com/googleapis/java-bigquery/commit/78995c47ba33019e1007f98d152016ffc3184bd4))
+* Update github/codeql-action action to v2.22.11 ([#3002](https://github.com/googleapis/java-bigquery/issues/3002)) ([52d5e97](https://github.com/googleapis/java-bigquery/commit/52d5e97bdb9fa58c9fbee06cc1b41d58feeae379))
+
## [2.35.0](https://github.com/googleapis/java-bigquery/compare/v2.34.2...v2.35.0) (2023-12-01)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index d1e001a29..4041a1b70 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.35.1-SNAPSHOT
+ 2.36.0
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 9d1466f15..d7e151936 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.35.1-SNAPSHOT
+ 2.36.0
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.35.1-SNAPSHOT
+ 2.36.0
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index ec4240d77..f7c83573f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.35.1-SNAPSHOT
+ 2.36.0
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.35.1-SNAPSHOT
+ 2.36.0
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 6892d55a9..a38c313c7 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.35.1-SNAPSHOT
+ 2.36.0
diff --git a/versions.txt b/versions.txt
index 3fa7a0036..e2ab490a5 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.35.0:2.35.1-SNAPSHOT
\ No newline at end of file
+google-cloud-bigquery:2.36.0:2.36.0
\ No newline at end of file
From a7ffacf7ff1c4fca4dcf7d47463e752730bb6dfd Mon Sep 17 00:00:00 2001
From: Sergei Lilichenko
Date: Fri, 12 Jan 2024 04:45:43 -0800
Subject: [PATCH 151/393] chore: change row and column variable names in
SimpleQuery example (#3059)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* Changed the names of the row and column variables to make their purpose clear.
* Changed the code sample to reflect the real life usage
* Updated the query and column names
* Attempt to fix formatting.
* Modified the IT test to match the query in the sample.
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: PhongChuong <147636638+PhongChuong@users.noreply.github.com>
Co-authored-by: Owl Bot
---
.../java/com/example/bigquery/SimpleQuery.java | 14 ++++++++++++--
.../java/com/example/bigquery/SimpleQueryIT.java | 4 +++-
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/samples/snippets/src/main/java/com/example/bigquery/SimpleQuery.java b/samples/snippets/src/main/java/com/example/bigquery/SimpleQuery.java
index 1aeaff195..429a339cf 100644
--- a/samples/snippets/src/main/java/com/example/bigquery/SimpleQuery.java
+++ b/samples/snippets/src/main/java/com/example/bigquery/SimpleQuery.java
@@ -17,6 +17,7 @@
package com.example.bigquery;
// [START bigquery_query]
+
import com.google.cloud.bigquery.BigQuery;
import com.google.cloud.bigquery.BigQueryException;
import com.google.cloud.bigquery.BigQueryOptions;
@@ -27,7 +28,9 @@ public class SimpleQuery {
public static void main(String[] args) {
// TODO(developer): Replace this query before running the sample.
- String query = "SELECT corpus FROM `bigquery-public-data.samples.shakespeare` GROUP BY corpus;";
+ String query =
+ "SELECT corpus, count(*) as corpus_count "
+ + "FROM `bigquery-public-data.samples.shakespeare` GROUP BY corpus;";
simpleQuery(query);
}
@@ -44,7 +47,14 @@ public static void simpleQuery(String query) {
TableResult result = bigquery.query(queryConfig);
// Print the results.
- result.iterateAll().forEach(rows -> rows.forEach(row -> System.out.println(row.getValue())));
+ result
+ .iterateAll()
+ .forEach(
+ row -> {
+ System.out.print("corpus:" + row.get("corpus").getStringValue());
+ System.out.print(", count:" + row.get("corpus_count").getLongValue());
+ System.out.println();
+ });
System.out.println("Query ran successfully");
} catch (BigQueryException | InterruptedException e) {
diff --git a/samples/snippets/src/test/java/com/example/bigquery/SimpleQueryIT.java b/samples/snippets/src/test/java/com/example/bigquery/SimpleQueryIT.java
index b750c3146..5441ffcca 100644
--- a/samples/snippets/src/test/java/com/example/bigquery/SimpleQueryIT.java
+++ b/samples/snippets/src/test/java/com/example/bigquery/SimpleQueryIT.java
@@ -51,7 +51,9 @@ public void tearDown() {
@Test
public void testSimpleQuery() {
- String query = "SELECT corpus FROM `bigquery-public-data.samples.shakespeare` GROUP BY corpus;";
+ String query =
+ "SELECT corpus, count(*) as corpus_count "
+ + "FROM `bigquery-public-data.samples.shakespeare` GROUP BY corpus;";
SimpleQuery.simpleQuery(query);
assertThat(bout.toString()).contains("Query ran successfully");
From 7d61111d23282c7e2478ac31ba0d4e423330ec92 Mon Sep 17 00:00:00 2001
From: PhongChuong <147636638+PhongChuong@users.noreply.github.com>
Date: Fri, 12 Jan 2024 07:50:18 -0500
Subject: [PATCH 152/393] feat: Add support for Table resource tags (#3046)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* Refactor labels into annotations to be used for resource tags
* Fix issue where changelog was updated during a refactoring
* Fix issue where changelog was updated during a refactoring
* Add resource tags to Tables
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* fix: clirr
* Update TableInfoTest to include ResourceTags
---------
Co-authored-by: Owl Bot
---
.../clirr-ignored-differences.xml | 5 +++
.../{Labels.java => Annotations.java} | 12 +++----
.../google/cloud/bigquery/DatasetInfo.java | 8 ++---
.../com/google/cloud/bigquery/ModelInfo.java | 8 ++---
.../java/com/google/cloud/bigquery/Table.java | 6 ++++
.../com/google/cloud/bigquery/TableInfo.java | 31 ++++++++++++++++---
.../{LabelsTest.java => AnnotationsTest.java} | 28 ++++++++---------
.../google/cloud/bigquery/TableInfoTest.java | 2 ++
8 files changed, 68 insertions(+), 32 deletions(-)
rename google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/{Labels.java => Annotations.java} (87%)
rename google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/{LabelsTest.java => AnnotationsTest.java} (62%)
diff --git a/google-cloud-bigquery/clirr-ignored-differences.xml b/google-cloud-bigquery/clirr-ignored-differences.xml
index 7513b5324..9c69fd6a6 100644
--- a/google-cloud-bigquery/clirr-ignored-differences.xml
+++ b/google-cloud-bigquery/clirr-ignored-differences.xml
@@ -29,6 +29,11 @@
com/google/cloud/bigquery/RoutineInfo*
*RemoteFunctionOptions(*)
+
+ 7013
+ com/google/cloud/bigquery/TableInfo*
+ *ResourceTags(*)
+
7012
com/google/cloud/bigquery/Connection
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Labels.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Annotations.java
similarity index 87%
rename from google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Labels.java
rename to google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Annotations.java
index 8f91aa37a..5d8d1e7e0 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Labels.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Annotations.java
@@ -28,9 +28,9 @@
import javax.annotation.Nullable;
@AutoValue
-abstract class Labels implements Serializable {
+abstract class Annotations implements Serializable {
private static final long serialVersionUID = 1L;
- static final Labels ZERO = of(Collections.emptyMap());
+ static final Annotations ZERO = of(Collections.emptyMap());
@Nullable
abstract Map userMap();
@@ -59,13 +59,13 @@ Map toPb() {
return Collections.unmodifiableMap(pbMap);
}
- private static Labels of(Map userMap) {
+ private static Annotations of(Map userMap) {
Preconditions.checkArgument(
userMap == null || !userMap.containsKey(null), "null keys are not supported");
- return new AutoValue_Labels(userMap);
+ return new AutoValue_Annotations(userMap);
}
- static Labels fromUser(Map map) {
+ static Annotations fromUser(Map map) {
if (map == null || map instanceof ImmutableMap) {
return of(map);
}
@@ -73,7 +73,7 @@ static Labels fromUser(Map map) {
return of(Collections.unmodifiableMap(new HashMap<>(map)));
}
- static Labels fromPb(Map pb) {
+ static Annotations fromPb(Map pb) {
if (Data.isNull(pb)) {
return of(null);
}
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/DatasetInfo.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/DatasetInfo.java
index 0dddc0e86..b5fabe97d 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/DatasetInfo.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/DatasetInfo.java
@@ -69,7 +69,7 @@ public Dataset apply(DatasetInfo datasetInfo) {
private final Long lastModified;
private final String location;
private final String selfLink;
- private final Labels labels;
+ private final Annotations labels;
private final EncryptionConfiguration defaultEncryptionConfiguration;
private final Long defaultPartitionExpirationMs;
private final String defaultCollation;
@@ -194,7 +194,7 @@ static final class BuilderImpl extends Builder {
private Long lastModified;
private String location;
private String selfLink;
- private Labels labels = Labels.ZERO;
+ private Annotations labels = Annotations.ZERO;
private EncryptionConfiguration defaultEncryptionConfiguration;
private Long defaultPartitionExpirationMs;
private String defaultCollation;
@@ -247,7 +247,7 @@ public Acl apply(Dataset.Access accessPb) {
this.lastModified = datasetPb.getLastModifiedTime();
this.location = datasetPb.getLocation();
this.selfLink = datasetPb.getSelfLink();
- this.labels = Labels.fromPb(datasetPb.getLabels());
+ this.labels = Annotations.fromPb(datasetPb.getLabels());
if (datasetPb.getDefaultEncryptionConfiguration() != null) {
this.defaultEncryptionConfiguration =
new EncryptionConfiguration.Builder(datasetPb.getDefaultEncryptionConfiguration())
@@ -337,7 +337,7 @@ Builder setSelfLink(String selfLink) {
*/
@Override
public Builder setLabels(Map labels) {
- this.labels = Labels.fromUser(labels);
+ this.labels = Annotations.fromUser(labels);
return this;
}
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ModelInfo.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ModelInfo.java
index 83603cbd2..922ed441c 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ModelInfo.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ModelInfo.java
@@ -67,7 +67,7 @@ public Model apply(ModelInfo ModelInfo) {
private final Long creationTime;
private final Long lastModifiedTime;
private final Long expirationTime;
- private final Labels labels;
+ private final Annotations labels;
private final String location;
private final ImmutableList trainingRunList;
private final ImmutableList featureColumnList;
@@ -132,7 +132,7 @@ static class BuilderImpl extends Builder {
private Long creationTime;
private Long lastModifiedTime;
private Long expirationTime;
- private Labels labels = Labels.ZERO;
+ private Annotations labels = Annotations.ZERO;
private String location;
private List trainingRunList = Collections.emptyList();
private List labelColumnList = Collections.emptyList();
@@ -169,7 +169,7 @@ static class BuilderImpl extends Builder {
this.creationTime = modelPb.getCreationTime();
this.lastModifiedTime = modelPb.getLastModifiedTime();
this.expirationTime = modelPb.getExpirationTime();
- this.labels = Labels.fromPb(modelPb.getLabels());
+ this.labels = Annotations.fromPb(modelPb.getLabels());
this.location = modelPb.getLocation();
if (modelPb.getTrainingRuns() != null) {
this.trainingRunList = modelPb.getTrainingRuns();
@@ -238,7 +238,7 @@ public Builder setModelId(ModelId modelId) {
@Override
public Builder setLabels(Map labels) {
- this.labels = Labels.fromUser(labels);
+ this.labels = Annotations.fromUser(labels);
return this;
}
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Table.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Table.java
index fdf0bad66..56c655855 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Table.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Table.java
@@ -192,6 +192,12 @@ public Builder setLabels(Map labels) {
return this;
}
+ @Override
+ public Builder setResourceTags(Map resourceTags) {
+ infoBuilder.setResourceTags(resourceTags);
+ return this;
+ }
+
@Override
public Builder setRequirePartitionFilter(Boolean requirePartitionFilter) {
infoBuilder.setRequirePartitionFilter(requirePartitionFilter);
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableInfo.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableInfo.java
index c00ba8441..6e050d064 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableInfo.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableInfo.java
@@ -77,7 +77,9 @@ public Table apply(TableInfo tableInfo) {
private final BigInteger numRows;
private final TableDefinition definition;
private final EncryptionConfiguration encryptionConfiguration;
- private final Labels labels;
+ private final Annotations labels;
+
+ private final Annotations resourceTags;
private final Boolean requirePartitionFilter;
private final String defaultCollation;
@@ -152,6 +154,9 @@ public abstract static class Builder {
@BetaApi
public abstract Builder setLabels(Map labels);
+ /** Sets the resource tags applied to this table. */
+ public abstract Builder setResourceTags(Map resourceTags);
+
/** Creates a {@code TableInfo} object. */
public abstract TableInfo build();
@@ -191,7 +196,9 @@ static class BuilderImpl extends Builder {
private BigInteger numRows;
private TableDefinition definition;
private EncryptionConfiguration encryptionConfiguration;
- private Labels labels = Labels.ZERO;
+ private Annotations labels = Annotations.ZERO;
+
+ private Annotations resourceTags = Annotations.ZERO;
private Boolean requirePartitionFilter;
private String defaultCollation;
private CloneDefinition cloneDefinition;
@@ -222,6 +229,7 @@ static class BuilderImpl extends Builder {
this.definition = tableInfo.definition;
this.encryptionConfiguration = tableInfo.encryptionConfiguration;
this.labels = tableInfo.labels;
+ this.resourceTags = tableInfo.resourceTags;
this.requirePartitionFilter = tableInfo.requirePartitionFilter;
this.defaultCollation = tableInfo.defaultCollation;
this.cloneDefinition = tableInfo.cloneDefinition;
@@ -255,7 +263,8 @@ static class BuilderImpl extends Builder {
this.encryptionConfiguration =
new EncryptionConfiguration.Builder(tablePb.getEncryptionConfiguration()).build();
}
- this.labels = Labels.fromPb(tablePb.getLabels());
+ this.labels = Annotations.fromPb(tablePb.getLabels());
+ this.resourceTags = Annotations.fromPb(tablePb.getResourceTags());
this.requirePartitionFilter = tablePb.getRequirePartitionFilter();
this.defaultCollation = tablePb.getDefaultCollation();
if (tablePb.getCloneDefinition() != null) {
@@ -394,7 +403,13 @@ public Builder setEncryptionConfiguration(EncryptionConfiguration configuration)
@Override
public Builder setLabels(Map labels) {
- this.labels = Labels.fromUser(labels);
+ this.labels = Annotations.fromUser(labels);
+ return this;
+ }
+
+ @Override
+ public Builder setResourceTags(Map resourceTags) {
+ this.resourceTags = Annotations.fromUser(resourceTags);
return this;
}
@@ -449,6 +464,7 @@ public TableInfo build() {
this.definition = builder.definition;
this.encryptionConfiguration = builder.encryptionConfiguration;
this.labels = builder.labels;
+ this.resourceTags = builder.resourceTags;
this.requirePartitionFilter = builder.requirePartitionFilter;
this.defaultCollation = builder.defaultCollation;
this.cloneDefinition = builder.cloneDefinition;
@@ -610,6 +626,11 @@ public Map getLabels() {
return labels.userMap();
}
+ /** Return a map for resource tags applied to the table. */
+ public Map getResourceTags() {
+ return resourceTags.userMap();
+ }
+
/**
* Returns true if a partition filter (that can be used for partition elimination) is required for
* queries over this table.
@@ -660,6 +681,7 @@ public String toString() {
.add("definition", definition)
.add("encryptionConfiguration", encryptionConfiguration)
.add("labels", labels)
+ .add("resourceTags", resourceTags)
.add("requirePartitionFilter", requirePartitionFilter)
.add("defaultCollation", defaultCollation)
.add("cloneDefinition", cloneDefinition)
@@ -724,6 +746,7 @@ Table toPb() {
tablePb.setEncryptionConfiguration(encryptionConfiguration.toPb());
}
tablePb.setLabels(labels.toPb());
+ tablePb.setResourceTags(resourceTags.toPb());
tablePb.setRequirePartitionFilter(requirePartitionFilter);
if (defaultCollation != null) {
tablePb.setDefaultCollation(defaultCollation);
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/LabelsTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/AnnotationsTest.java
similarity index 62%
rename from google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/LabelsTest.java
rename to google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/AnnotationsTest.java
index 787dd77df..aa3dd9fde 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/LabelsTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/AnnotationsTest.java
@@ -25,50 +25,50 @@
import java.util.Map;
import org.junit.Test;
-public class LabelsTest {
+public class AnnotationsTest {
@Test
public void testFromUser() {
- assertThat(Labels.fromUser(null).userMap()).isNull();
+ assertThat(Annotations.fromUser(null).userMap()).isNull();
HashMap user = new HashMap<>();
- assertThat(Labels.fromUser(user).userMap()).isEmpty();
+ assertThat(Annotations.fromUser(user).userMap()).isEmpty();
user.put("a", "b");
- Labels labels = Labels.fromUser(user);
- assertThat(labels.userMap()).containsExactly("a", "b");
+ Annotations annotations = Annotations.fromUser(user);
+ assertThat(annotations.userMap()).containsExactly("a", "b");
- // Changing map afterwards does not change the labels.
+ // Changing map afterwards does not change the annotation.
user.put("c", "d");
- assertThat(labels.userMap()).containsExactly("a", "b");
+ assertThat(annotations.userMap()).containsExactly("a", "b");
}
@Test
public void testFromToPb() {
- assertThat(Labels.fromPb(null).toPb()).isNull();
+ assertThat(Annotations.fromPb(null).toPb()).isNull();
HashMap pb = new HashMap<>();
- assertThat(Labels.fromPb(pb).toPb()).isNull();
+ assertThat(Annotations.fromPb(pb).toPb()).isNull();
pb.put("a", "b");
- assertThat(Labels.fromPb(pb).toPb()).isEqualTo(pb);
+ assertThat(Annotations.fromPb(pb).toPb()).isEqualTo(pb);
pb.put("c", Data.NULL_STRING);
- assertThat(Labels.fromPb(pb).toPb()).isEqualTo(pb);
+ assertThat(Annotations.fromPb(pb).toPb()).isEqualTo(pb);
Map jsonNullMap = Data.nullOf(HashMap.class);
- assertThat(Data.isNull(Labels.fromPb(jsonNullMap).toPb())).isTrue();
+ assertThat(Data.isNull(Annotations.fromPb(jsonNullMap).toPb())).isTrue();
}
@Test
public void testNullKey() {
try {
- Labels.fromUser(Collections.singletonMap((String) null, "foo"));
+ Annotations.fromUser(Collections.singletonMap((String) null, "foo"));
fail("null key shouldn't work");
} catch (IllegalArgumentException e) {
}
try {
- Labels.fromPb(Collections.singletonMap((String) null, "foo"));
+ Annotations.fromPb(Collections.singletonMap((String) null, "foo"));
fail("null key shouldn't work");
} catch (IllegalArgumentException e) {
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableInfoTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableInfoTest.java
index 6283f71c2..a4ce6fbb4 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableInfoTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableInfoTest.java
@@ -126,6 +126,7 @@ public class TableInfoTest {
.setNumRows(BigInteger.valueOf(NUM_ROWS))
.setSelfLink(SELF_LINK)
.setLabels(Collections.singletonMap("a", "b"))
+ .setResourceTags(Collections.singletonMap("resourceTagA", "resourceTagB"))
.setRequirePartitionFilter(REQUIRE_PARTITION_FILTER)
.build();
private static final TableInfo VIEW_INFO =
@@ -309,6 +310,7 @@ private void compareTableInfo(TableInfo expected, TableInfo value) {
assertEquals(expected.getNumRows(), value.getNumRows());
assertEquals(expected.getSelfLink(), value.getSelfLink());
assertEquals(expected.getLabels(), value.getLabels());
+ assertEquals(expected.getResourceTags(), value.getResourceTags());
assertEquals(expected.getRequirePartitionFilter(), value.getRequirePartitionFilter());
assertEquals(expected.toString(), value.toString());
assertEquals(expected.hashCode(), value.hashCode());
From 0fbdfba1aecf18567fae95aea133b6504f050bd5 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 16 Jan 2024 17:15:41 +0100
Subject: [PATCH 153/393] deps: update github/codeql-action action to v2.23.0
(#3061)
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index c7f7f64aa..8694cee27 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@03e7845b7bfcd5e7fb63d1ae8c61b0e791134fab # v2.22.11
+ uses: github/codeql-action/upload-sarif@8b7fcbfac2aae0e6c24d9f9ebd5830b1290b18e4 # v2.23.0
with:
sarif_file: results.sarif
From 48cdaa8a77935062cfe9ed8fb66f52f774bdd673 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 16 Jan 2024 17:22:09 +0100
Subject: [PATCH 154/393] deps: update dependency
com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.35.0
(#3066)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index f7c83573f..55d055a2c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -167,7 +167,7 @@
com.google.api.grpc
proto-google-cloud-bigqueryconnection-v1
- 2.34.0
+ 2.35.0
test
From 6ff4f043905a6fe67bc3ed5cbbacc0f9eddd3172 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 16 Jan 2024 17:22:59 +0100
Subject: [PATCH 155/393] deps: update dependency
com.google.cloud:google-cloud-datacatalog-bom to v1.39.0 (#3067)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 55d055a2c..e519c5d51 100644
--- a/pom.xml
+++ b/pom.xml
@@ -97,7 +97,7 @@
com.google.cloud
google-cloud-datacatalog-bom
- 1.36.0
+ 1.39.0
pom
import
From d4a4b064656f397d0fd7e23420c79956d5a9f0b0 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 16 Jan 2024 17:42:22 +0100
Subject: [PATCH 156/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigqueryconnection to v2.35.0 (#3065)
---
pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index e519c5d51..490c8ef4a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -161,7 +161,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.34.0
+ 2.35.0
test
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 99e3a8540..d4d2d367e 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -69,7 +69,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.34.0
+ 2.35.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index a38c313c7..878543a0a 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -67,7 +67,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.34.0
+ 2.35.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 3debd229e..c96c555e8 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -85,7 +85,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.34.0
+ 2.35.0
test
From 76987c46c0fa7fa0b23f1b7fd25eec5433088ab3 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 16 Jan 2024 17:43:38 +0100
Subject: [PATCH 157/393] build(deps): update dependency
org.apache.maven.plugins:maven-surefire-plugin to v3.2.5 (#3062)
---
samples/native-image-sample/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index 95de88cf6..982a48a3b 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -111,7 +111,7 @@
org.apache.maven.plugins
maven-surefire-plugin
- 3.2.3
+ 3.2.5
**/*IT
From c42fb60445cdc30b8d0ece8e2d367e8b01debdcd Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Wed, 17 Jan 2024 09:35:21 -0500
Subject: [PATCH 158/393] chore(main): release 2.36.1-SNAPSHOT (#3068)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(main): release 2.36.1-SNAPSHOT
* chore(main): release 2.36.1-SNAPSHOT
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot
---
README.md | 6 +++---
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
6 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/README.md b/README.md
index 0a5c250ae..2ada83ad8 100644
--- a/README.md
+++ b/README.md
@@ -60,13 +60,13 @@ implementation 'com.google.cloud:google-cloud-bigquery'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigquery:2.35.0'
+implementation 'com.google.cloud:google-cloud-bigquery:2.36.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.35.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.36.0"
```
@@ -351,7 +351,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquery/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.35.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.36.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 4041a1b70..cb406b27b 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.36.0
+ 2.36.1-SNAPSHOT
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index d7e151936..b88b36b01 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.36.0
+ 2.36.1-SNAPSHOT
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.36.0
+ 2.36.1-SNAPSHOT
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 490c8ef4a..629944356 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.36.0
+ 2.36.1-SNAPSHOT
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.36.0
+ 2.36.1-SNAPSHOT
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 878543a0a..795e5765e 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.36.0
+ 2.36.1-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index e2ab490a5..207aed950 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.36.0:2.36.0
\ No newline at end of file
+google-cloud-bigquery:2.36.0:2.36.1-SNAPSHOT
\ No newline at end of file
From eb94d565571339409821c72777339e31148c089f Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 18 Jan 2024 17:29:12 +0100
Subject: [PATCH 159/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquery to v2.36.0 (#3070)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigquery to v2.36.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 2 +-
samples/install-without-bom/pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 2ada83ad8..310b8c5de 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquery
- 2.35.0
+ 2.36.0
```
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index d4d2d367e..d2eb11c49 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -45,7 +45,7 @@
com.google.cloud
google-cloud-bigquery
- 2.35.0
+ 2.36.0
From f371d6709109acf07224ee0b2615de400fd90838 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 18 Jan 2024 17:33:57 +0100
Subject: [PATCH 160/393] deps: update dependency
com.google.apis:google-api-services-bigquery to v2-rev20240105-2.0.0 (#3073)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update dependency com.google.apis:google-api-services-bigquery to v2-rev20240105-2.0.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 629944356..b9dd8358a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,7 +54,7 @@
UTF-8
github
google-cloud-bigquery-parent
- v2-rev20231111-2.0.0
+ v2-rev20240105-2.0.0
3.21.0
14.0.2
From c23493ef0f24e1db66880d7b243132eae4d3c3d5 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 18 Jan 2024 17:36:57 +0100
Subject: [PATCH 161/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigtable to v2.31.0 (#3074)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigtable to v2.31.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index d2eb11c49..34eb32784 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -63,7 +63,7 @@
com.google.cloud
google-cloud-bigtable
- 2.30.0
+ 2.31.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 795e5765e..4ed56f631 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -61,7 +61,7 @@
com.google.cloud
google-cloud-bigtable
- 2.30.0
+ 2.31.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index c96c555e8..9932d7bac 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -79,7 +79,7 @@
com.google.cloud
google-cloud-bigtable
- 2.30.0
+ 2.31.0
test
From e3f417cec3bdd81040baac3f054d0270dde9d9f8 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 18 Jan 2024 17:37:44 +0100
Subject: [PATCH 162/393] deps: update github/codeql-action action to v2.23.1
(#3077)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update github/codeql-action action to v2.23.1
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.github/workflows/scorecard.yml | 2 +-
README.md | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 8694cee27..58e6328e5 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@8b7fcbfac2aae0e6c24d9f9ebd5830b1290b18e4 # v2.23.0
+ uses: github/codeql-action/upload-sarif@4759df8df70c5ebe7042c3029bbace20eee13edd # v2.23.1
with:
sarif_file: results.sarif
diff --git a/README.md b/README.md
index 310b8c5de..9614c18dd 100644
--- a/README.md
+++ b/README.md
@@ -53,7 +53,7 @@ If you are using Maven without the BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:
```Groovy
-implementation platform('com.google.cloud:libraries-bom:26.29.0')
+implementation platform('com.google.cloud:libraries-bom:26.30.0')
implementation 'com.google.cloud:google-cloud-bigquery'
```
From 3fbb2bba7ad7bca245a8ca5eb59d999aead29ebd Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 19 Jan 2024 16:10:13 +0100
Subject: [PATCH 163/393] deps: update actions/upload-artifact action to v4.1.0
(#3071)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update actions/upload-artifact action to v4.1.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 58e6328e5..f87be2a0b 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -59,7 +59,7 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
- uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
+ uses: actions/upload-artifact@1eb3cb2b3e0f29609092a73eb033bb759a334595 # v4.1.0
with:
name: SARIF file
path: results.sarif
From f03c4fc957ae5665fe0f98c0f06cc80eea7cec59 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 19 Jan 2024 16:12:32 +0100
Subject: [PATCH 164/393] deps: update dependency
com.google.oauth-client:google-oauth-client-jetty to v1.35.0 (#3079)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update dependency com.google.oauth-client:google-oauth-client-jetty to v1.35.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 34eb32784..f160d5598 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -57,7 +57,7 @@
com.google.oauth-client
google-oauth-client-jetty
- 1.34.1
+ 1.35.0
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 4ed56f631..0391bb721 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -55,7 +55,7 @@
com.google.oauth-client
google-oauth-client-jetty
- 1.34.1
+ 1.35.0
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 9932d7bac..fa0264d1e 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -71,7 +71,7 @@
com.google.oauth-client
google-oauth-client-jetty
- 1.34.1
+ 1.35.0
From a5b119cdf6f8ce9d180a2d51a3a7a9aad50b1ea4 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 19 Jan 2024 16:13:21 +0100
Subject: [PATCH 165/393] deps: update dependency
com.google.cloud:google-cloud-shared-dependencies to v3.22.0 (#3080)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index b9dd8358a..bef057fa4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,7 +55,7 @@
github
google-cloud-bigquery-parent
v2-rev20240105-2.0.0
- 3.21.0
+ 3.22.0
14.0.2
From af81354c342cdb2a790cb008fc9fe3460e62265b Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 19 Jan 2024 16:25:33 +0100
Subject: [PATCH 166/393] deps: update actions/upload-artifact action to v4.2.0
(#3081)
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index f87be2a0b..967aa1144 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -59,7 +59,7 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
- uses: actions/upload-artifact@1eb3cb2b3e0f29609092a73eb033bb759a334595 # v4.1.0
+ uses: actions/upload-artifact@694cdabd8bdb0f10b2cea11669e1bf5453eed0a6 # v4.2.0
with:
name: SARIF file
path: results.sarif
From 2614df203b1f3c9800b8c8c23d32e7f22ec76253 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 19 Jan 2024 16:30:46 +0100
Subject: [PATCH 167/393] deps: update dependency
com.google.oauth-client:google-oauth-client-java6 to v1.35.0 (#3078)
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index f160d5598..19b925037 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -52,7 +52,7 @@
com.google.oauth-client
google-oauth-client-java6
- 1.34.1
+ 1.35.0
com.google.oauth-client
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 0391bb721..7058520bc 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -50,7 +50,7 @@
com.google.oauth-client
google-oauth-client-java6
- 1.34.1
+ 1.35.0
com.google.oauth-client
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index fa0264d1e..c29824dc2 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -66,7 +66,7 @@
com.google.oauth-client
google-oauth-client-java6
- 1.34.1
+ 1.35.0
com.google.oauth-client
From 62c54c547df1fac081b02a5eb8e9829df9708345 Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Mon, 22 Jan 2024 09:51:09 -0500
Subject: [PATCH 168/393] chore: Create renovate_config_check.yaml (#1920)
(#3085)
* chore: Create renovate_config_check.yaml
Source-Link: https://github.com/googleapis/synthtool/commit/6612ab8f3afcd5e292aecd647f0fa68812c9f5b5
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:a6aa751984f1e905c3ae5a3aac78fc7b68210626ce91487dc7ff4f0a06f010cc
Co-authored-by: Owl Bot
---
.github/.OwlBot.lock.yaml | 6 +--
.github/workflows/renovate_config_check.yaml | 25 ++++++++++
.kokoro/requirements.txt | 48 ++++++++++----------
3 files changed, 52 insertions(+), 27 deletions(-)
create mode 100644 .github/workflows/renovate_config_check.yaml
diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index bff46cd66..dc05a7276 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -1,4 +1,4 @@
-# Copyright 2023 Google LLC
+# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -13,5 +13,5 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
- digest: sha256:11d59eabd49dc088f8339fb96e9da79ba4b3a73b3d49a8a4e0263e91edd053ba
-# created: 2023-12-05T18:46:43.811070085Z
\ No newline at end of file
+ digest: sha256:a6aa751984f1e905c3ae5a3aac78fc7b68210626ce91487dc7ff4f0a06f010cc
+# created: 2024-01-22T14:14:20.913785597Z
diff --git a/.github/workflows/renovate_config_check.yaml b/.github/workflows/renovate_config_check.yaml
new file mode 100644
index 000000000..87d8eb2be
--- /dev/null
+++ b/.github/workflows/renovate_config_check.yaml
@@ -0,0 +1,25 @@
+name: Renovate Bot Config Validation
+
+on:
+ pull_request:
+ paths:
+ - 'renovate.json'
+
+jobs:
+ renovate_bot_config_validation:
+ runs-on: ubuntu-22.04
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+
+ - name: Set up Node.js
+ uses: actions/setup-node@v3
+ with:
+ node-version: '20'
+
+ - name: Install Renovate and Config Validator
+ run: |
+ npm install -g npm@latest
+ npm install --global renovate
+ renovate-config-validator
diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt
index 6a36ccab4..445c5c1f0 100644
--- a/.kokoro/requirements.txt
+++ b/.kokoro/requirements.txt
@@ -170,30 +170,30 @@ colorlog==6.7.0 \
--hash=sha256:0d33ca236784a1ba3ff9c532d4964126d8a2c44f1f0cb1d2b0728196f512f662 \
--hash=sha256:bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5
# via gcp-docuploader
-cryptography==41.0.3 \
- --hash=sha256:0d09fb5356f975974dbcb595ad2d178305e5050656affb7890a1583f5e02a306 \
- --hash=sha256:23c2d778cf829f7d0ae180600b17e9fceea3c2ef8b31a99e3c694cbbf3a24b84 \
- --hash=sha256:3fb248989b6363906827284cd20cca63bb1a757e0a2864d4c1682a985e3dca47 \
- --hash=sha256:41d7aa7cdfded09b3d73a47f429c298e80796c8e825ddfadc84c8a7f12df212d \
- --hash=sha256:42cb413e01a5d36da9929baa9d70ca90d90b969269e5a12d39c1e0d475010116 \
- --hash=sha256:4c2f0d35703d61002a2bbdcf15548ebb701cfdd83cdc12471d2bae80878a4207 \
- --hash=sha256:4fd871184321100fb400d759ad0cddddf284c4b696568204d281c902fc7b0d81 \
- --hash=sha256:5259cb659aa43005eb55a0e4ff2c825ca111a0da1814202c64d28a985d33b087 \
- --hash=sha256:57a51b89f954f216a81c9d057bf1a24e2f36e764a1ca9a501a6964eb4a6800dd \
- --hash=sha256:652627a055cb52a84f8c448185922241dd5217443ca194d5739b44612c5e6507 \
- --hash=sha256:67e120e9a577c64fe1f611e53b30b3e69744e5910ff3b6e97e935aeb96005858 \
- --hash=sha256:6af1c6387c531cd364b72c28daa29232162010d952ceb7e5ca8e2827526aceae \
- --hash=sha256:6d192741113ef5e30d89dcb5b956ef4e1578f304708701b8b73d38e3e1461f34 \
- --hash=sha256:7efe8041897fe7a50863e51b77789b657a133c75c3b094e51b5e4b5cec7bf906 \
- --hash=sha256:84537453d57f55a50a5b6835622ee405816999a7113267739a1b4581f83535bd \
- --hash=sha256:8f09daa483aedea50d249ef98ed500569841d6498aa9c9f4b0531b9964658922 \
- --hash=sha256:95dd7f261bb76948b52a5330ba5202b91a26fbac13ad0e9fc8a3ac04752058c7 \
- --hash=sha256:a74fbcdb2a0d46fe00504f571a2a540532f4c188e6ccf26f1f178480117b33c4 \
- --hash=sha256:a983e441a00a9d57a4d7c91b3116a37ae602907a7618b882c8013b5762e80574 \
- --hash=sha256:ab8de0d091acbf778f74286f4989cf3d1528336af1b59f3e5d2ebca8b5fe49e1 \
- --hash=sha256:aeb57c421b34af8f9fe830e1955bf493a86a7996cc1338fe41b30047d16e962c \
- --hash=sha256:ce785cf81a7bdade534297ef9e490ddff800d956625020ab2ec2780a556c313e \
- --hash=sha256:d0d651aa754ef58d75cec6edfbd21259d93810b73f6ec246436a21b7841908de
+cryptography==41.0.6 \
+ --hash=sha256:068bc551698c234742c40049e46840843f3d98ad7ce265fd2bd4ec0d11306596 \
+ --hash=sha256:0f27acb55a4e77b9be8d550d762b0513ef3fc658cd3eb15110ebbcbd626db12c \
+ --hash=sha256:2132d5865eea673fe6712c2ed5fb4fa49dba10768bb4cc798345748380ee3660 \
+ --hash=sha256:3288acccef021e3c3c10d58933f44e8602cf04dba96d9796d70d537bb2f4bbc4 \
+ --hash=sha256:35f3f288e83c3f6f10752467c48919a7a94b7d88cc00b0668372a0d2ad4f8ead \
+ --hash=sha256:398ae1fc711b5eb78e977daa3cbf47cec20f2c08c5da129b7a296055fbb22aed \
+ --hash=sha256:422e3e31d63743855e43e5a6fcc8b4acab860f560f9321b0ee6269cc7ed70cc3 \
+ --hash=sha256:48783b7e2bef51224020efb61b42704207dde583d7e371ef8fc2a5fb6c0aabc7 \
+ --hash=sha256:4d03186af98b1c01a4eda396b137f29e4e3fb0173e30f885e27acec8823c1b09 \
+ --hash=sha256:5daeb18e7886a358064a68dbcaf441c036cbdb7da52ae744e7b9207b04d3908c \
+ --hash=sha256:60e746b11b937911dc70d164060d28d273e31853bb359e2b2033c9e93e6f3c43 \
+ --hash=sha256:742ae5e9a2310e9dade7932f9576606836ed174da3c7d26bc3d3ab4bd49b9f65 \
+ --hash=sha256:7e00fb556bda398b99b0da289ce7053639d33b572847181d6483ad89835115f6 \
+ --hash=sha256:85abd057699b98fce40b41737afb234fef05c67e116f6f3650782c10862c43da \
+ --hash=sha256:8efb2af8d4ba9dbc9c9dd8f04d19a7abb5b49eab1f3694e7b5a16a5fc2856f5c \
+ --hash=sha256:ae236bb8760c1e55b7a39b6d4d32d2279bc6c7c8500b7d5a13b6fb9fc97be35b \
+ --hash=sha256:afda76d84b053923c27ede5edc1ed7d53e3c9f475ebaf63c68e69f1403c405a8 \
+ --hash=sha256:b27a7fd4229abef715e064269d98a7e2909ebf92eb6912a9603c7e14c181928c \
+ --hash=sha256:b648fe2a45e426aaee684ddca2632f62ec4613ef362f4d681a9a6283d10e079d \
+ --hash=sha256:c5a550dc7a3b50b116323e3d376241829fd326ac47bc195e04eb33a8170902a9 \
+ --hash=sha256:da46e2b5df770070412c46f87bac0849b8d685c5f2679771de277a422c7d0b86 \
+ --hash=sha256:f39812f70fc5c71a15aa3c97b2bbe213c3f2a460b79bd21c40d033bb34a9bf36 \
+ --hash=sha256:ff369dd19e8fe0528b02e8df9f2aeb2479f89b1270d90f96a63500afe9af5cae
# via
# gcp-releasetool
# secretstorage
From 1e152e6d206e0ae2b0e73546302f336d3c7d9302 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 23 Jan 2024 20:52:06 +0100
Subject: [PATCH 169/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquerystorage-bom to v3 (#3072)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigquerystorage-bom to v3
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index bef057fa4..086c40886 100644
--- a/pom.xml
+++ b/pom.xml
@@ -73,7 +73,7 @@
com.google.cloud
google-cloud-bigquerystorage-bom
- 2.47.0
+ 3.0.0
pom
import
From 33df25cb22374e44dbd75a31156b7c96ee38f349 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 23 Jan 2024 21:08:49 +0100
Subject: [PATCH 170/393] test(deps): update dependency com.google.truth:truth
to v1.3.0 (#3083)
---
pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/native-image-sample/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/pom.xml b/pom.xml
index 086c40886..b2981acc1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -137,7 +137,7 @@
com.google.truth
truth
- 1.2.0
+ 1.3.0
test
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 19b925037..fbb8f4040 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -81,7 +81,7 @@
com.google.truth
truth
- 1.2.0
+ 1.3.0
test
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index 982a48a3b..df62de7dc 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -62,7 +62,7 @@
com.google.truth
truth
- 1.2.0
+ 1.3.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 7058520bc..c97d24d46 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -79,7 +79,7 @@
com.google.truth
truth
- 1.2.0
+ 1.3.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index c29824dc2..c94079f59 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -97,7 +97,7 @@
com.google.truth
truth
- 1.2.0
+ 1.3.0
test
From 4d4cbae00028f84c071f51e88d7ee976efdf04d5 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 23 Jan 2024 21:29:08 +0100
Subject: [PATCH 171/393] deps: update arrow.version to v15 (#3084)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index b2981acc1..f6b97fe53 100644
--- a/pom.xml
+++ b/pom.xml
@@ -56,7 +56,7 @@
google-cloud-bigquery-parent
v2-rev20240105-2.0.0
3.22.0
- 14.0.2
+ 15.0.0
From eb773b91d03d944d9feab1ac46146234c173c15f Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 23 Jan 2024 21:47:54 +0100
Subject: [PATCH 172/393] test(deps): update dependency
com.google.cloud:google-cloud-storage to v2.32.0 (#3089)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index f6b97fe53..84eb86407 100644
--- a/pom.xml
+++ b/pom.xml
@@ -155,7 +155,7 @@
com.google.cloud
google-cloud-storage
- 2.31.0
+ 2.32.0
test
From b2814a2f8e6601347d0489058e563878af40f301 Mon Sep 17 00:00:00 2001
From: PhongChuong <147636638+PhongChuong@users.noreply.github.com>
Date: Tue, 23 Jan 2024 17:19:09 -0500
Subject: [PATCH 173/393] Feat: Add universe domain (#3090)
* Universe domain feat
* Feat: Add universe domain feat
* Feat: Add universe domain feat
* Feat: Add universe domain feat
---
.../bigquery/spi/v2/HttpBigQueryRpc.java | 45 +++++-
.../cloud/bigquery/it/ITBigQueryTest.java | 134 ++++++++++++++++++
2 files changed, 177 insertions(+), 2 deletions(-)
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java
index 96a10deb3..841a790ee 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java
@@ -105,7 +105,7 @@ public HttpBigQueryRpc(BigQueryOptions options) {
this.options = options;
bigquery =
new Bigquery.Builder(transport, new GsonFactory(), initializer)
- .setRootUrl(options.getHost())
+ .setRootUrl(options.getResolvedApiaryHost("bigquery"))
.setApplicationName(options.getApplicationName())
.build();
}
@@ -114,9 +114,16 @@ private static BigQueryException translate(IOException exception) {
return new BigQueryException(exception);
}
+ private void validateRPC() throws BigQueryException, IOException {
+ if (!this.options.hasValidUniverseDomain()) {
+ throw new BigQueryException(BigQueryException.UNKNOWN_CODE, "Invalid universe domain");
+ }
+ }
+
@Override
public Dataset getDataset(String projectId, String datasetId, Map options) {
try {
+ validateRPC();
return bigquery
.datasets()
.get(projectId, datasetId)
@@ -135,6 +142,7 @@ public Dataset getDataset(String projectId, String datasetId, Map opt
@Override
public Tuple> listDatasets(String projectId, Map options) {
try {
+ validateRPC();
DatasetList datasetsList =
bigquery
.datasets()
@@ -159,6 +167,7 @@ public Tuple> listDatasets(String projectId, Map options) {
try {
+ validateRPC();
return bigquery
.datasets()
.insert(dataset.getDatasetReference().getProjectId(), dataset)
@@ -173,6 +182,7 @@ public Dataset create(Dataset dataset, Map options) {
@Override
public Table create(Table table, Map options) {
try {
+ validateRPC();
// unset the type, as it is output only
table.setType(null);
TableReference reference = table.getTableReference();
@@ -190,6 +200,7 @@ public Table create(Table table, Map options) {
@Override
public Routine create(Routine routine, Map options) {
try {
+ validateRPC();
RoutineReference reference = routine.getRoutineReference();
return bigquery
.routines()
@@ -205,6 +216,7 @@ public Routine create(Routine routine, Map options) {
@Override
public Job create(Job job, Map options) {
try {
+ validateRPC();
String projectId =
job.getJobReference() != null
? job.getJobReference().getProjectId()
@@ -223,6 +235,7 @@ public Job create(Job job, Map options) {
@Override
public Job createJobForQuery(Job job) {
try {
+ validateRPC();
String projectId =
job.getJobReference() != null
? job.getJobReference().getProjectId()
@@ -236,6 +249,7 @@ public Job createJobForQuery(Job job) {
@Override
public boolean deleteDataset(String projectId, String datasetId, Map options) {
try {
+ validateRPC();
bigquery
.datasets()
.delete(projectId, datasetId)
@@ -255,6 +269,7 @@ public boolean deleteDataset(String projectId, String datasetId, Map
@Override
public Dataset patch(Dataset dataset, Map options) {
try {
+ validateRPC();
DatasetReference reference = dataset.getDatasetReference();
return bigquery
.datasets()
@@ -270,6 +285,7 @@ public Dataset patch(Dataset dataset, Map options) {
@Override
public Table patch(Table table, Map options) {
try {
+ validateRPC();
// unset the type, as it is output only
table.setType(null);
TableReference reference = table.getTableReference();
@@ -289,6 +305,7 @@ public Table patch(Table table, Map options) {
public Table getTable(
String projectId, String datasetId, String tableId, Map options) {
try {
+ validateRPC();
return bigquery
.tables()
.get(projectId, datasetId, tableId)
@@ -316,6 +333,7 @@ private String getTableMetadataOption(Map options) {
public Tuple> listTables(
String projectId, String datasetId, Map options) {
try {
+ validateRPC();
TableList tableList =
bigquery
.tables()
@@ -351,6 +369,7 @@ public Table apply(TableList.Tables tablePb) {
@Override
public boolean deleteTable(String projectId, String datasetId, String tableId) {
try {
+ validateRPC();
bigquery.tables().delete(projectId, datasetId, tableId).execute();
return true;
} catch (IOException ex) {
@@ -365,6 +384,7 @@ public boolean deleteTable(String projectId, String datasetId, String tableId) {
@Override
public Model patch(Model model, Map options) {
try {
+ validateRPC();
// unset the type, as it is output only
ModelReference reference = model.getModelReference();
return bigquery
@@ -382,6 +402,7 @@ public Model patch(Model model, Map options) {
public Model getModel(
String projectId, String datasetId, String modelId, Map options) {
try {
+ validateRPC();
return bigquery
.models()
.get(projectId, datasetId, modelId)
@@ -401,6 +422,7 @@ public Model getModel(
public Tuple> listModels(
String projectId, String datasetId, Map options) {
try {
+ validateRPC();
ListModelsResponse modelList =
bigquery
.models()
@@ -420,6 +442,7 @@ public Tuple> listModels(
@Override
public boolean deleteModel(String projectId, String datasetId, String modelId) {
try {
+ validateRPC();
bigquery.models().delete(projectId, datasetId, modelId).execute();
return true;
} catch (IOException ex) {
@@ -434,6 +457,7 @@ public boolean deleteModel(String projectId, String datasetId, String modelId) {
@Override
public Routine update(Routine routine, Map options) {
try {
+ validateRPC();
RoutineReference reference = routine.getRoutineReference();
return bigquery
.routines()
@@ -451,6 +475,7 @@ public Routine update(Routine routine, Map options) {
public Routine getRoutine(
String projectId, String datasetId, String routineId, Map options) {
try {
+ validateRPC();
return bigquery
.routines()
.get(projectId, datasetId, routineId)
@@ -470,6 +495,7 @@ public Routine getRoutine(
public Tuple> listRoutines(
String projectId, String datasetId, Map options) {
try {
+ validateRPC();
ListRoutinesResponse routineList =
bigquery
.routines()
@@ -491,6 +517,7 @@ public Tuple> listRoutines(
@Override
public boolean deleteRoutine(String projectId, String datasetId, String routineId) {
try {
+ validateRPC();
bigquery.routines().delete(projectId, datasetId, routineId).execute();
return true;
} catch (IOException ex) {
@@ -506,6 +533,7 @@ public boolean deleteRoutine(String projectId, String datasetId, String routineI
public TableDataInsertAllResponse insertAll(
String projectId, String datasetId, String tableId, TableDataInsertAllRequest request) {
try {
+ validateRPC();
return bigquery
.tabledata()
.insertAll(projectId, datasetId, tableId, request)
@@ -520,6 +548,7 @@ public TableDataInsertAllResponse insertAll(
public TableDataList listTableData(
String projectId, String datasetId, String tableId, Map options) {
try {
+ validateRPC();
return bigquery
.tabledata()
.list(projectId, datasetId, tableId)
@@ -544,6 +573,7 @@ public TableDataList listTableDataWithRowLimit(
Integer maxResultPerPage,
String pageToken) {
try {
+ validateRPC();
return bigquery
.tabledata()
.list(projectId, datasetId, tableId)
@@ -559,6 +589,7 @@ public TableDataList listTableDataWithRowLimit(
@Override
public Job getJob(String projectId, String jobId, String location, Map options) {
try {
+ validateRPC();
return bigquery
.jobs()
.get(projectId, jobId)
@@ -578,6 +609,7 @@ public Job getJob(String projectId, String jobId, String location, Map > listJobs(String projectId, Map options) {
try {
+ validateRPC();
Bigquery.Jobs.List request =
bigquery
.jobs()
@@ -650,6 +683,7 @@ public Job apply(JobList.Jobs jobPb) {
@Override
public boolean cancel(String projectId, String jobId, String location) {
try {
+ validateRPC();
bigquery
.jobs()
.cancel(projectId, jobId)
@@ -669,6 +703,7 @@ public boolean cancel(String projectId, String jobId, String location) {
@Override
public boolean deleteJob(String projectId, String jobName, String location) {
try {
+ validateRPC();
bigquery
.jobs()
.delete(projectId, jobName)
@@ -685,6 +720,7 @@ public boolean deleteJob(String projectId, String jobName, String location) {
public GetQueryResultsResponse getQueryResults(
String projectId, String jobId, String location, Map options) {
try {
+ validateRPC();
return bigquery
.jobs()
.getQueryResults(projectId, jobId)
@@ -707,6 +743,7 @@ public GetQueryResultsResponse getQueryResults(
public GetQueryResultsResponse getQueryResultsWithRowLimit(
String projectId, String jobId, String location, Integer maxResultPerPage, Long timeoutMs) {
try {
+ validateRPC();
return bigquery
.jobs()
.getQueryResults(projectId, jobId)
@@ -723,6 +760,7 @@ public GetQueryResultsResponse getQueryResultsWithRowLimit(
@Override
public QueryResponse queryRpc(String projectId, QueryRequest content) {
try {
+ validateRPC();
return bigquery.jobs().query(projectId, content).execute();
} catch (IOException ex) {
throw translate(ex);
@@ -732,7 +770,7 @@ public QueryResponse queryRpc(String projectId, QueryRequest content) {
@Override
public String open(Job loadJob) {
try {
- String builder = options.getHost();
+ String builder = options.getResolvedApiaryHost("bigquery");
if (!builder.endsWith("/")) {
builder += "/";
}
@@ -807,6 +845,7 @@ public Job write(
@Override
public Policy getIamPolicy(String resourceId, Map options) {
try {
+ validateRPC();
GetIamPolicyRequest policyRequest = new GetIamPolicyRequest();
if (null != Option.REQUESTED_POLICY_VERSION.getLong(options)) {
policyRequest =
@@ -828,6 +867,7 @@ public Policy getIamPolicy(String resourceId, Map options) {
@Override
public Policy setIamPolicy(String resourceId, Policy policy, Map options) {
try {
+ validateRPC();
SetIamPolicyRequest policyRequest = new SetIamPolicyRequest().setPolicy(policy);
return bigquery
.tables()
@@ -843,6 +883,7 @@ public Policy setIamPolicy(String resourceId, Policy policy, Map opti
public TestIamPermissionsResponse testIamPermissions(
String resourceId, List permissions, Map options) {
try {
+ validateRPC();
TestIamPermissionsRequest permissionsRequest =
new TestIamPermissionsRequest().setPermissions(permissions);
return bigquery
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
index d8d673360..ba30ea0d4 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
@@ -54,6 +54,7 @@
import com.google.cloud.bigquery.BigQueryDryRunResult;
import com.google.cloud.bigquery.BigQueryError;
import com.google.cloud.bigquery.BigQueryException;
+import com.google.cloud.bigquery.BigQueryOptions;
import com.google.cloud.bigquery.BigQueryResult;
import com.google.cloud.bigquery.BigQuerySQLException;
import com.google.cloud.bigquery.CloneDefinition;
@@ -149,6 +150,7 @@
import com.google.common.io.BaseEncoding;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.gson.JsonObject;
+import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
@@ -773,6 +775,65 @@ public class ITBigQueryTest {
private static final String PUBLIC_PROJECT = "bigquery-public-data";
private static final String PUBLIC_DATASET = "census_bureau_international";
+ private static final String FAKE_JSON_CRED_WITH_GOOGLE_DOMAIN =
+ "{\n"
+ + " \"private_key_id\": \"somekeyid\",\n"
+ + " \"private_key\": \"-----BEGIN PRIVATE KEY-----\\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggS"
+ + "kAgEAAoIBAQC+K2hSuFpAdrJI\\nnCgcDz2M7t7bjdlsadsasad+fvRSW6TjNQZ3p5LLQY1kSZRqBqylRkzteMOyHg"
+ + "aR\\n0Pmxh3ILCND5men43j3h4eDbrhQBuxfEMalkG92sL+PNQSETY2tnvXryOvmBRwa/\\nQP/9dJfIkIDJ9Fw9N4"
+ + "Bhhhp6mCcRpdQjV38H7JsyJ7lih/oNjECgYAt\\nknddadwkwewcVxHFhcZJO+XWf6ofLUXpRwiTZakGMn8EE1uVa2"
+ + "LgczOjwWHGi99MFjxSer5m9\\n1tCa3/KEGKiS/YL71JvjwX3mb+cewlkcmweBKZHM2JPTk0ZednFSpVZMtycjkbLa"
+ + "\\ndYOS8V85AgMBewECggEBAKksaldajfDZDV6nGqbFjMiizAKJolr/M3OQw16K6o3/\\n0S31xIe3sSlgW0+UbYlF"
+ + "4U8KifhManD1apVSC3csafaspP4RZUHFhtBywLO9pR5c\\nr6S5aLp+gPWFyIp1pfXbWGvc5VY/v9x7ya1VEa6rXvL"
+ + "sKupSeWAW4tMj3eo/64ge\\nsdaceaLYw52KeBYiT6+vpsnYrEkAHO1fF/LavbLLOFJmFTMxmsNaG0tuiJHgjshB\\"
+ + "n82DpMCbXG9YcCgI/DbzuIjsdj2JC1cascSP//3PmefWysucBQe7Jryb6NQtASmnv\\nCdDw/0jmZTEjpe4S1lxfHp"
+ + "lAhHFtdgYTvyYtaLZiVVkCgYEA8eVpof2rceecw/I6\\n5ng1q3Hl2usdWV/4mZMvR0fOemacLLfocX6IYxT1zA1FF"
+ + "JlbXSRsJMf/Qq39mOR2\\nSpW+hr4jCoHeRVYLgsbggtrevGmILAlNoqCMpGZ6vDmJpq6ECV9olliDvpPgWOP+\\nm"
+ + "YPDreFBGxWvQrADNbRt2dmGsrsCgYEAyUHqB2wvJHFqdmeBsaacewzV8x9WgmeX\\ngUIi9REwXlGDW0Mz50dxpxcK"
+ + "CAYn65+7TCnY5O/jmL0VRxU1J2mSWyWTo1C+17L0\\n3fUqjxL1pkefwecxwecvC+gFFYdJ4CQ/MHHXU81Lwl1iWdF"
+ + "Cd2UoGddYaOF+KNeM\\nHC7cmqra+JsCgYEAlUNywzq8nUg7282E+uICfCB0LfwejuymR93CtsFgb7cRd6ak\\nECR"
+ + "8FGfCpH8ruWJINllbQfcHVCX47ndLZwqv3oVFKh6pAS/vVI4dpOepP8++7y1u\\ncoOvtreXCX6XqfrWDtKIvv0vjl"
+ + "HBhhhp6mCcRpdQjV38H7JsyJ7lih/oNjECgYAt\\nkndj5uNl5SiuVxHFhcZJO+XWf6ofLUregtevZakGMn8EE1uVa"
+ + "2AY7eafmoU/nZPT\\n00YB0TBATdCbn/nBSuKDESkhSg9s2GEKQZG5hBmL5uCMfo09z3SfxZIhJdlerreP\\nJ7gSi"
+ + "dI12N+EZxYd4xIJh/HFDgp7RRO87f+WJkofMQKBgGTnClK1VMaCRbJZPriw\\nEfeFCoOX75MxKwXs6xgrw4W//AYG"
+ + "GUjDt83lD6AZP6tws7gJ2IwY/qP7+lyhjEqN\\nHtfPZRGFkGZsdaksdlaksd323423d+15/UvrlRSFPNj1tWQmNKk"
+ + "XyRDW4IG1Oa2p\\nrALStNBx5Y9t0/LQnFI4w3aG\\n-----END PRIVATE KEY-----\\n\",\n"
+ + " \"project_id\": \"someprojectid\",\n"
+ + " \"client_email\": \"someclientid@developer.gserviceaccount.com\",\n"
+ + " \"client_id\": \"someclientid.apps.googleusercontent.com\",\n"
+ + " \"type\": \"service_account\",\n"
+ + " \"universe_domain\": \"googleapis.com\"\n"
+ + "}";
+ private static final String FAKE_JSON_CRED_WITH_INVALID_DOMAIN =
+ "{\n"
+ + " \"private_key_id\": \"somekeyid\",\n"
+ + " \"private_key\": \"-----BEGIN PRIVATE KEY-----\\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggS"
+ + "kAgEAAoIBAQC+K2hSuFpAdrJI\\nnCgcDz2M7t7bjdlsadsasad+fvRSW6TjNQZ3p5LLQY1kSZRqBqylRkzteMOyHg"
+ + "aR\\n0Pmxh3ILCND5men43j3h4eDbrhQBuxfEMalkG92sL+PNQSETY2tnvXryOvmBRwa/\\nQP/9dJfIkIDJ9Fw9N4"
+ + "Bhhhp6mCcRpdQjV38H7JsyJ7lih/oNjECgYAt\\nknddadwkwewcVxHFhcZJO+XWf6ofLUXpRwiTZakGMn8EE1uVa2"
+ + "LgczOjwWHGi99MFjxSer5m9\\n1tCa3/KEGKiS/YL71JvjwX3mb+cewlkcmweBKZHM2JPTk0ZednFSpVZMtycjkbLa"
+ + "\\ndYOS8V85AgMBewECggEBAKksaldajfDZDV6nGqbFjMiizAKJolr/M3OQw16K6o3/\\n0S31xIe3sSlgW0+UbYlF"
+ + "4U8KifhManD1apVSC3csafaspP4RZUHFhtBywLO9pR5c\\nr6S5aLp+gPWFyIp1pfXbWGvc5VY/v9x7ya1VEa6rXvL"
+ + "sKupSeWAW4tMj3eo/64ge\\nsdaceaLYw52KeBYiT6+vpsnYrEkAHO1fF/LavbLLOFJmFTMxmsNaG0tuiJHgjshB\\"
+ + "n82DpMCbXG9YcCgI/DbzuIjsdj2JC1cascSP//3PmefWysucBQe7Jryb6NQtASmnv\\nCdDw/0jmZTEjpe4S1lxfHp"
+ + "lAhHFtdgYTvyYtaLZiVVkCgYEA8eVpof2rceecw/I6\\n5ng1q3Hl2usdWV/4mZMvR0fOemacLLfocX6IYxT1zA1FF"
+ + "JlbXSRsJMf/Qq39mOR2\\nSpW+hr4jCoHeRVYLgsbggtrevGmILAlNoqCMpGZ6vDmJpq6ECV9olliDvpPgWOP+\\nm"
+ + "YPDreFBGxWvQrADNbRt2dmGsrsCgYEAyUHqB2wvJHFqdmeBsaacewzV8x9WgmeX\\ngUIi9REwXlGDW0Mz50dxpxcK"
+ + "CAYn65+7TCnY5O/jmL0VRxU1J2mSWyWTo1C+17L0\\n3fUqjxL1pkefwecxwecvC+gFFYdJ4CQ/MHHXU81Lwl1iWdF"
+ + "Cd2UoGddYaOF+KNeM\\nHC7cmqra+JsCgYEAlUNywzq8nUg7282E+uICfCB0LfwejuymR93CtsFgb7cRd6ak\\nECR"
+ + "8FGfCpH8ruWJINllbQfcHVCX47ndLZwqv3oVFKh6pAS/vVI4dpOepP8++7y1u\\ncoOvtreXCX6XqfrWDtKIvv0vjl"
+ + "HBhhhp6mCcRpdQjV38H7JsyJ7lih/oNjECgYAt\\nkndj5uNl5SiuVxHFhcZJO+XWf6ofLUregtevZakGMn8EE1uVa"
+ + "2AY7eafmoU/nZPT\\n00YB0TBATdCbn/nBSuKDESkhSg9s2GEKQZG5hBmL5uCMfo09z3SfxZIhJdlerreP\\nJ7gSi"
+ + "dI12N+EZxYd4xIJh/HFDgp7RRO87f+WJkofMQKBgGTnClK1VMaCRbJZPriw\\nEfeFCoOX75MxKwXs6xgrw4W//AYG"
+ + "GUjDt83lD6AZP6tws7gJ2IwY/qP7+lyhjEqN\\nHtfPZRGFkGZsdaksdlaksd323423d+15/UvrlRSFPNj1tWQmNKk"
+ + "XyRDW4IG1Oa2p\\nrALStNBx5Y9t0/LQnFI4w3aG\\n-----END PRIVATE KEY-----\\n\",\n"
+ + " \"project_id\": \"someprojectid\",\n"
+ + " \"client_email\": \"someclientid@developer.gserviceaccount.com\",\n"
+ + " \"client_id\": \"someclientid.apps.googleusercontent.com\",\n"
+ + " \"type\": \"service_account\",\n"
+ + " \"universe_domain\": \"fake.domain\"\n"
+ + "}";
+
private static BigQuery bigquery;
private static Storage storage;
@@ -6323,4 +6384,77 @@ public void testStatelessQueriesWithLocation() throws Exception {
bigQuery.delete(dataset.getDatasetId(), DatasetDeleteOption.deleteContents());
}
}
+
+ @Test
+ public void testUniverseDomainWithInvalidUniverseDomain() {
+ RemoteBigQueryHelper bigqueryHelper = RemoteBigQueryHelper.create();
+ BigQueryOptions bigQueryOptions =
+ bigqueryHelper
+ .getOptions()
+ .toBuilder()
+ .setCredentials(loadCredentials(FAKE_JSON_CRED_WITH_GOOGLE_DOMAIN))
+ .setUniverseDomain("invalid.domain")
+ .build();
+ BigQuery bigQuery = bigQueryOptions.getService();
+
+ try {
+ // Use list dataset to send RPC to invalid domain.
+ bigQuery.listDatasets("bigquery-public-data");
+ fail("RPCs to invalid universe domain should fail");
+ } catch (BigQueryException e) {
+ assertNotNull(e.getMessage());
+ assertThat((e.getMessage().contains("Invalid universe domain"))).isTrue();
+ }
+ }
+
+ @Test
+ public void testInvalidUniverseDomainWithMismatchCredentials() {
+ RemoteBigQueryHelper bigqueryHelper = RemoteBigQueryHelper.create();
+ BigQueryOptions bigQueryOptions =
+ bigqueryHelper
+ .getOptions()
+ .toBuilder()
+ .setCredentials(loadCredentials(FAKE_JSON_CRED_WITH_INVALID_DOMAIN))
+ .build();
+ BigQuery bigQuery = bigQueryOptions.getService();
+
+ try {
+ // Use list dataset to send RPC to invalid domain.
+ bigQuery.listDatasets("bigquery-public-data");
+ fail("RPCs to invalid universe domain should fail");
+ } catch (BigQueryException e) {
+ assertNotNull(e.getMessage());
+ assertThat((e.getMessage().contains("Invalid universe domain"))).isTrue();
+ }
+ }
+
+ @Test
+ public void testUniverseDomainWithMatchingDomain() {
+ // Test a valid domain using the default credentials and Google default universe domain.
+ RemoteBigQueryHelper bigqueryHelper = RemoteBigQueryHelper.create();
+ BigQueryOptions bigQueryOptions =
+ bigqueryHelper.getOptions().toBuilder().setUniverseDomain("googleapis.com").build();
+ BigQuery bigQuery = bigQueryOptions.getService();
+
+ // Verify that all is well by listing a dataset.
+ Page datasets = bigQuery.listDatasets("bigquery-public-data");
+ Iterator iterator = datasets.iterateAll().iterator();
+ Set datasetNames = new HashSet<>();
+ while (iterator.hasNext()) {
+ datasetNames.add(iterator.next().getDatasetId().getDataset());
+ }
+ for (String type : PUBLIC_DATASETS) {
+ assertTrue(datasetNames.contains(type));
+ }
+ }
+
+ static GoogleCredentials loadCredentials(String credentialFile) {
+ try {
+ InputStream keyStream = new ByteArrayInputStream(credentialFile.getBytes());
+ return GoogleCredentials.fromStream(keyStream);
+ } catch (IOException e) {
+ fail("Couldn't create fake JSON credentials.");
+ }
+ return null;
+ }
}
From f4411b09c4b681d2f3fb250ef133b291649f2865 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 24 Jan 2024 19:12:59 +0100
Subject: [PATCH 174/393] deps: update actions/upload-artifact action to v4.3.0
(#3091)
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 967aa1144..6584155ee 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -59,7 +59,7 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
- uses: actions/upload-artifact@694cdabd8bdb0f10b2cea11669e1bf5453eed0a6 # v4.2.0
+ uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: SARIF file
path: results.sarif
From a77b6eb7cb2b51f29303bbb8b3823881d291647b Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 24 Jan 2024 19:14:02 +0100
Subject: [PATCH 175/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigqueryconnection to v2.36.0 (#3092)
---
pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 84eb86407..5d2a7baa9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -161,7 +161,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.35.0
+ 2.36.0
test
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index fbb8f4040..de976d88a 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -69,7 +69,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.35.0
+ 2.36.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index c97d24d46..f9d680f4a 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -67,7 +67,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.35.0
+ 2.36.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index c94079f59..732a9b53d 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -85,7 +85,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.35.0
+ 2.36.0
test
From 110bcc506272b372fdd90ee718fad298c8ab7e19 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 24 Jan 2024 19:15:30 +0100
Subject: [PATCH 176/393] deps: update dependency
com.google.cloud:google-cloud-datacatalog-bom to v1.40.0 (#3094)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 5d2a7baa9..d05faa084 100644
--- a/pom.xml
+++ b/pom.xml
@@ -97,7 +97,7 @@
com.google.cloud
google-cloud-datacatalog-bom
- 1.39.0
+ 1.40.0
pom
import
From 24456a361a39550e962ac68a79de3c7a9e912884 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 24 Jan 2024 20:27:27 +0100
Subject: [PATCH 177/393] deps: update dependency
com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.36.0
(#3093)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index d05faa084..5630ca332 100644
--- a/pom.xml
+++ b/pom.xml
@@ -167,7 +167,7 @@
com.google.api.grpc
proto-google-cloud-bigqueryconnection-v1
- 2.35.0
+ 2.36.0
test
From 0933b34f30ade216dcf61767a771509ca07f294b Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 24 Jan 2024 23:48:17 +0100
Subject: [PATCH 178/393] deps: update dependency
com.google.cloud:google-cloud-shared-dependencies to v3.23.0 (#3096)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 5630ca332..f9555dadf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,7 +55,7 @@
github
google-cloud-bigquery-parent
v2-rev20240105-2.0.0
- 3.22.0
+ 3.23.0
15.0.0
From f4c3d3999e7d2e9b48374dbf28c10fe5f7b6dd18 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 25 Jan 2024 17:53:02 +0100
Subject: [PATCH 179/393] test(deps): update dependency
com.google.cloud:google-cloud-storage to v2.32.1 (#3097)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index f9555dadf..8f3364ee3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -155,7 +155,7 @@
com.google.cloud
google-cloud-storage
- 2.32.0
+ 2.32.1
test
From bf74f073cf03ea3911f2cef650337a4f206de7f6 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 25 Jan 2024 22:04:18 +0100
Subject: [PATCH 180/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquerystorage-bom to v3.0.1 (#3098)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-bigquerystorage-bom](https://togithub.com/googleapis/java-bigquerystorage) | `3.0.0` -> `3.0.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-bigquerystorage-bom/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-bigquerystorage-bom/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-bigquerystorage-bom/3.0.0/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-bigquerystorage-bom/3.0.0/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
googleapis/java-bigquerystorage (com.google.cloud:google-cloud-bigquerystorage-bom)
### [`v3.0.1`](https://togithub.com/googleapis/java-bigquerystorage/blob/HEAD/CHANGELOG.md#301-2024-01-25)
[Compare Source](https://togithub.com/googleapis/java-bigquerystorage/compare/v3.0.0...v3.0.1)
##### Bug Fixes
- **deps:** Update the Java code generator (gapic-generator-java) to 2.32.0 ([#2363](https://togithub.com/googleapis/java-bigquerystorage/issues/2363)) ([542b946](https://togithub.com/googleapis/java-bigquerystorage/commit/542b94606de6790f54ebeb546dc84f30faeb58b2))
##### Dependencies
- Update arrow.version to v15 ([#2372](https://togithub.com/googleapis/java-bigquerystorage/issues/2372)) ([4b59eec](https://togithub.com/googleapis/java-bigquerystorage/commit/4b59eec20da86195ab5051e585bfe20d149af863))
- Update dependency com.google.cloud:google-cloud-bigquery to v2.36.0 ([#2364](https://togithub.com/googleapis/java-bigquerystorage/issues/2364)) ([26f3429](https://togithub.com/googleapis/java-bigquerystorage/commit/26f342990fee9c12cb1ee3d016a6d2f434d7b85d))
- Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.22.0 ([#2370](https://togithub.com/googleapis/java-bigquerystorage/issues/2370)) ([adcc49e](https://togithub.com/googleapis/java-bigquerystorage/commit/adcc49e96a445c4dd2c68be7c82a1d750579d0d3))
- Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.23.0 ([#2378](https://togithub.com/googleapis/java-bigquerystorage/issues/2378)) ([2d8245f](https://togithub.com/googleapis/java-bigquerystorage/commit/2d8245fbf1143308410ea2a86ca98b0289a04c29))
- Update dependency com.google.truth:truth to v1.3.0 ([#2371](https://togithub.com/googleapis/java-bigquerystorage/issues/2371)) ([8b39e8a](https://togithub.com/googleapis/java-bigquerystorage/commit/8b39e8af6a88312b39e1283a52bcd52c119c5f30))
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-bigquery).
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 8f3364ee3..43bc4cdd2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -73,7 +73,7 @@
com.google.cloud
google-cloud-bigquerystorage-bom
- 3.0.0
+ 3.0.1
pom
import
From 8dbf92a662a3f0b0e00cbefe0b67b23a7dd4744d Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Thu, 25 Jan 2024 22:46:15 +0000
Subject: [PATCH 181/393] chore(main): release 2.37.0 (#3076)
:robot: I have created a release *beep* *boop*
---
## [2.37.0](https://togithub.com/googleapis/java-bigquery/compare/v2.36.0...v2.37.0) (2024-01-25)
### Features
* Add support for Table resource tags ([#3046](https://togithub.com/googleapis/java-bigquery/issues/3046)) ([7d61111](https://togithub.com/googleapis/java-bigquery/commit/7d61111d23282c7e2478ac31ba0d4e423330ec92))
* Add universe domain ([#3090](https://togithub.com/googleapis/java-bigquery/issues/3090)) ([b2814a2](https://togithub.com/googleapis/java-bigquery/commit/b2814a2f8e6601347d0489058e563878af40f301))
### Dependencies
* Update actions/upload-artifact action to v4.1.0 ([#3071](https://togithub.com/googleapis/java-bigquery/issues/3071)) ([3fbb2bb](https://togithub.com/googleapis/java-bigquery/commit/3fbb2bba7ad7bca245a8ca5eb59d999aead29ebd))
* Update actions/upload-artifact action to v4.2.0 ([#3081](https://togithub.com/googleapis/java-bigquery/issues/3081)) ([af81354](https://togithub.com/googleapis/java-bigquery/commit/af81354c342cdb2a790cb008fc9fe3460e62265b))
* Update actions/upload-artifact action to v4.3.0 ([#3091](https://togithub.com/googleapis/java-bigquery/issues/3091)) ([f4411b0](https://togithub.com/googleapis/java-bigquery/commit/f4411b09c4b681d2f3fb250ef133b291649f2865))
* Update arrow.version to v15 ([#3084](https://togithub.com/googleapis/java-bigquery/issues/3084)) ([4d4cbae](https://togithub.com/googleapis/java-bigquery/commit/4d4cbae00028f84c071f51e88d7ee976efdf04d5))
* Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.35.0 ([#3066](https://togithub.com/googleapis/java-bigquery/issues/3066)) ([48cdaa8](https://togithub.com/googleapis/java-bigquery/commit/48cdaa8a77935062cfe9ed8fb66f52f774bdd673))
* Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.36.0 ([#3093](https://togithub.com/googleapis/java-bigquery/issues/3093)) ([24456a3](https://togithub.com/googleapis/java-bigquery/commit/24456a361a39550e962ac68a79de3c7a9e912884))
* Update dependency com.google.apis:google-api-services-bigquery to v2-rev20240105-2.0.0 ([#3073](https://togithub.com/googleapis/java-bigquery/issues/3073)) ([f371d67](https://togithub.com/googleapis/java-bigquery/commit/f371d6709109acf07224ee0b2615de400fd90838))
* Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.39.0 ([#3067](https://togithub.com/googleapis/java-bigquery/issues/3067)) ([6ff4f04](https://togithub.com/googleapis/java-bigquery/commit/6ff4f043905a6fe67bc3ed5cbbacc0f9eddd3172))
* Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.40.0 ([#3094](https://togithub.com/googleapis/java-bigquery/issues/3094)) ([110bcc5](https://togithub.com/googleapis/java-bigquery/commit/110bcc506272b372fdd90ee718fad298c8ab7e19))
* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.22.0 ([#3080](https://togithub.com/googleapis/java-bigquery/issues/3080)) ([a5b119c](https://togithub.com/googleapis/java-bigquery/commit/a5b119cdf6f8ce9d180a2d51a3a7a9aad50b1ea4))
* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.23.0 ([#3096](https://togithub.com/googleapis/java-bigquery/issues/3096)) ([0933b34](https://togithub.com/googleapis/java-bigquery/commit/0933b34f30ade216dcf61767a771509ca07f294b))
* Update dependency com.google.oauth-client:google-oauth-client-java6 to v1.35.0 ([#3078](https://togithub.com/googleapis/java-bigquery/issues/3078)) ([2614df2](https://togithub.com/googleapis/java-bigquery/commit/2614df203b1f3c9800b8c8c23d32e7f22ec76253))
* Update dependency com.google.oauth-client:google-oauth-client-jetty to v1.35.0 ([#3079](https://togithub.com/googleapis/java-bigquery/issues/3079)) ([f03c4fc](https://togithub.com/googleapis/java-bigquery/commit/f03c4fc957ae5665fe0f98c0f06cc80eea7cec59))
* Update github/codeql-action action to v2.23.0 ([#3061](https://togithub.com/googleapis/java-bigquery/issues/3061)) ([0fbdfba](https://togithub.com/googleapis/java-bigquery/commit/0fbdfba1aecf18567fae95aea133b6504f050bd5))
* Update github/codeql-action action to v2.23.1 ([#3077](https://togithub.com/googleapis/java-bigquery/issues/3077)) ([e3f417c](https://togithub.com/googleapis/java-bigquery/commit/e3f417cec3bdd81040baac3f054d0270dde9d9f8))
---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
---
CHANGELOG.md | 27 +++++++++++++++++++++++++++
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
6 files changed, 34 insertions(+), 7 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 88197b2c1..ea4a0271a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,32 @@
# Changelog
+## [2.37.0](https://github.com/googleapis/java-bigquery/compare/v2.36.0...v2.37.0) (2024-01-25)
+
+
+### Features
+
+* Add support for Table resource tags ([#3046](https://github.com/googleapis/java-bigquery/issues/3046)) ([7d61111](https://github.com/googleapis/java-bigquery/commit/7d61111d23282c7e2478ac31ba0d4e423330ec92))
+* Add universe domain ([#3090](https://github.com/googleapis/java-bigquery/issues/3090)) ([b2814a2](https://github.com/googleapis/java-bigquery/commit/b2814a2f8e6601347d0489058e563878af40f301))
+
+
+### Dependencies
+
+* Update actions/upload-artifact action to v4.1.0 ([#3071](https://github.com/googleapis/java-bigquery/issues/3071)) ([3fbb2bb](https://github.com/googleapis/java-bigquery/commit/3fbb2bba7ad7bca245a8ca5eb59d999aead29ebd))
+* Update actions/upload-artifact action to v4.2.0 ([#3081](https://github.com/googleapis/java-bigquery/issues/3081)) ([af81354](https://github.com/googleapis/java-bigquery/commit/af81354c342cdb2a790cb008fc9fe3460e62265b))
+* Update actions/upload-artifact action to v4.3.0 ([#3091](https://github.com/googleapis/java-bigquery/issues/3091)) ([f4411b0](https://github.com/googleapis/java-bigquery/commit/f4411b09c4b681d2f3fb250ef133b291649f2865))
+* Update arrow.version to v15 ([#3084](https://github.com/googleapis/java-bigquery/issues/3084)) ([4d4cbae](https://github.com/googleapis/java-bigquery/commit/4d4cbae00028f84c071f51e88d7ee976efdf04d5))
+* Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.35.0 ([#3066](https://github.com/googleapis/java-bigquery/issues/3066)) ([48cdaa8](https://github.com/googleapis/java-bigquery/commit/48cdaa8a77935062cfe9ed8fb66f52f774bdd673))
+* Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.36.0 ([#3093](https://github.com/googleapis/java-bigquery/issues/3093)) ([24456a3](https://github.com/googleapis/java-bigquery/commit/24456a361a39550e962ac68a79de3c7a9e912884))
+* Update dependency com.google.apis:google-api-services-bigquery to v2-rev20240105-2.0.0 ([#3073](https://github.com/googleapis/java-bigquery/issues/3073)) ([f371d67](https://github.com/googleapis/java-bigquery/commit/f371d6709109acf07224ee0b2615de400fd90838))
+* Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.39.0 ([#3067](https://github.com/googleapis/java-bigquery/issues/3067)) ([6ff4f04](https://github.com/googleapis/java-bigquery/commit/6ff4f043905a6fe67bc3ed5cbbacc0f9eddd3172))
+* Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.40.0 ([#3094](https://github.com/googleapis/java-bigquery/issues/3094)) ([110bcc5](https://github.com/googleapis/java-bigquery/commit/110bcc506272b372fdd90ee718fad298c8ab7e19))
+* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.22.0 ([#3080](https://github.com/googleapis/java-bigquery/issues/3080)) ([a5b119c](https://github.com/googleapis/java-bigquery/commit/a5b119cdf6f8ce9d180a2d51a3a7a9aad50b1ea4))
+* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.23.0 ([#3096](https://github.com/googleapis/java-bigquery/issues/3096)) ([0933b34](https://github.com/googleapis/java-bigquery/commit/0933b34f30ade216dcf61767a771509ca07f294b))
+* Update dependency com.google.oauth-client:google-oauth-client-java6 to v1.35.0 ([#3078](https://github.com/googleapis/java-bigquery/issues/3078)) ([2614df2](https://github.com/googleapis/java-bigquery/commit/2614df203b1f3c9800b8c8c23d32e7f22ec76253))
+* Update dependency com.google.oauth-client:google-oauth-client-jetty to v1.35.0 ([#3079](https://github.com/googleapis/java-bigquery/issues/3079)) ([f03c4fc](https://github.com/googleapis/java-bigquery/commit/f03c4fc957ae5665fe0f98c0f06cc80eea7cec59))
+* Update github/codeql-action action to v2.23.0 ([#3061](https://github.com/googleapis/java-bigquery/issues/3061)) ([0fbdfba](https://github.com/googleapis/java-bigquery/commit/0fbdfba1aecf18567fae95aea133b6504f050bd5))
+* Update github/codeql-action action to v2.23.1 ([#3077](https://github.com/googleapis/java-bigquery/issues/3077)) ([e3f417c](https://github.com/googleapis/java-bigquery/commit/e3f417cec3bdd81040baac3f054d0270dde9d9f8))
+
## [2.36.0](https://github.com/googleapis/java-bigquery/compare/v2.35.0...v2.36.0) (2024-01-10)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index cb406b27b..54c64e8e4 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.36.1-SNAPSHOT
+ 2.37.0
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index b88b36b01..c59d4be0d 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.36.1-SNAPSHOT
+ 2.37.0
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.36.1-SNAPSHOT
+ 2.37.0
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 43bc4cdd2..c22acba48 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.36.1-SNAPSHOT
+ 2.37.0
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.36.1-SNAPSHOT
+ 2.37.0
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index f9d680f4a..f96a2ed83 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.36.1-SNAPSHOT
+ 2.37.0
diff --git a/versions.txt b/versions.txt
index 207aed950..fc69e9146 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.36.0:2.36.1-SNAPSHOT
\ No newline at end of file
+google-cloud-bigquery:2.37.0:2.37.0
\ No newline at end of file
From 4139430b06a4f9dcbca2b97866ff97163b4f38c1 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 26 Jan 2024 17:05:28 +0100
Subject: [PATCH 182/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigtable to v2.32.0 (#3099)
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index de976d88a..08b42114b 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -63,7 +63,7 @@
com.google.cloud
google-cloud-bigtable
- 2.31.0
+ 2.32.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index f96a2ed83..2b6035287 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -61,7 +61,7 @@
com.google.cloud
google-cloud-bigtable
- 2.31.0
+ 2.32.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 732a9b53d..0c5231406 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -79,7 +79,7 @@
com.google.cloud
google-cloud-bigtable
- 2.31.0
+ 2.32.0
test
From e7d1af9336013ebbfa4dd5f797b9117ba9876441 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 26 Jan 2024 17:06:21 +0100
Subject: [PATCH 183/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquery to v2.37.0 (#3101)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigquery to v2.37.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 8 ++++----
samples/install-without-bom/pom.xml | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 9614c18dd..7a3ab38df 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquery
- 2.36.0
+ 2.37.0
```
@@ -60,13 +60,13 @@ implementation 'com.google.cloud:google-cloud-bigquery'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigquery:2.36.0'
+implementation 'com.google.cloud:google-cloud-bigquery:2.37.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.36.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.37.0"
```
@@ -351,7 +351,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquery/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.36.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.37.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 08b42114b..917e48741 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -45,7 +45,7 @@
com.google.cloud
google-cloud-bigquery
- 2.36.0
+ 2.37.0
From 2cc545ec1c0267fd9c33f3f1566f29d9a30f514e Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 26 Jan 2024 17:07:02 +0100
Subject: [PATCH 184/393] deps: update github/codeql-action action to v2.23.2
(#3102)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update github/codeql-action action to v2.23.2
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 6584155ee..460ae63c4 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@4759df8df70c5ebe7042c3029bbace20eee13edd # v2.23.1
+ uses: github/codeql-action/upload-sarif@2f93e4319b2f04a2efc38fa7f78bd681bc3f7b2f # v2.23.2
with:
sarif_file: results.sarif
From 6eff68eb8c55162ca1cd2e915f3f60a87f584b35 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 29 Jan 2024 14:15:46 +0100
Subject: [PATCH 185/393] deps: update dependency
com.google.apis:google-api-services-bigquery to v2-rev20240124-2.0.0 (#3104)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index c22acba48..6cc61a091 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,7 +54,7 @@
UTF-8
github
google-cloud-bigquery-parent
- v2-rev20240105-2.0.0
+ v2-rev20240124-2.0.0
3.23.0
15.0.0
From fd637fe13fa8286b84891aa7420c2dbf212669b7 Mon Sep 17 00:00:00 2001
From: Alice <65933803+alicejli@users.noreply.github.com>
Date: Mon, 29 Jan 2024 08:16:32 -0500
Subject: [PATCH 186/393] chore: remove obsolete release job configs (#3095)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore: remove obsolete release job configs
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.kokoro/build.sh | 29 +-
.kokoro/release/bump_snapshot.cfg | 53 ---
.kokoro/release/bump_snapshot.sh | 30 --
.kokoro/release/common.cfg | 49 ---
.kokoro/release/common.sh | 50 ---
.kokoro/release/drop.cfg | 6 -
.kokoro/release/drop.sh | 32 --
.kokoro/release/promote.cfg | 6 -
.kokoro/release/promote.sh | 34 --
.kokoro/release/publish_javadoc.cfg | 23 --
.kokoro/release/publish_javadoc.sh | 53 ---
.kokoro/release/publish_javadoc11.cfg | 30 --
.kokoro/release/publish_javadoc11.sh | 63 ----
.kokoro/release/snapshot.cfg | 6 -
.kokoro/release/snapshot.sh | 33 --
.kokoro/release/stage.cfg | 19 -
.kokoro/release/stage.sh | 47 ---
.kokoro/requirements.txt | 491 --------------------------
owlbot.py | 2 +
19 files changed, 7 insertions(+), 1049 deletions(-)
delete mode 100644 .kokoro/release/bump_snapshot.cfg
delete mode 100755 .kokoro/release/bump_snapshot.sh
delete mode 100644 .kokoro/release/common.cfg
delete mode 100755 .kokoro/release/common.sh
delete mode 100644 .kokoro/release/drop.cfg
delete mode 100755 .kokoro/release/drop.sh
delete mode 100644 .kokoro/release/promote.cfg
delete mode 100755 .kokoro/release/promote.sh
delete mode 100644 .kokoro/release/publish_javadoc.cfg
delete mode 100755 .kokoro/release/publish_javadoc.sh
delete mode 100644 .kokoro/release/publish_javadoc11.cfg
delete mode 100755 .kokoro/release/publish_javadoc11.sh
delete mode 100644 .kokoro/release/snapshot.cfg
delete mode 100755 .kokoro/release/snapshot.sh
delete mode 100644 .kokoro/release/stage.cfg
delete mode 100755 .kokoro/release/stage.sh
delete mode 100644 .kokoro/requirements.txt
diff --git a/.kokoro/build.sh b/.kokoro/build.sh
index 1b59f5bc3..64f559885 100755
--- a/.kokoro/build.sh
+++ b/.kokoro/build.sh
@@ -62,7 +62,7 @@ javadoc)
integration)
mvn -B ${INTEGRATION_TEST_ARGS} \
-ntp \
- -Dtest=ITBigQueryTest,ITRemoteUDFTest \
+ -Penable-integration-tests \
-DtrimStackTrace=false \
-Dclirr.skip=true \
-Denforcer.skip=true \
@@ -70,33 +70,14 @@ integration)
verify
RETURN_CODE=$?
;;
-nightly-it)
- mvn -B ${INTEGRATION_TEST_ARGS} \
- -ntp \
- -Dtest=ITNightlyBigQueryTest,ITRemoteUDFTest \
- -DtrimStackTrace=false \
- -Dclirr.skip=true \
- -Denforcer.skip=true \
- -fae \
- verify
- RETURN_CODE=$?
- ;;
graalvm)
- # Run Integration Tests with Native Image. Skip running nightly tests in presubmits.
- mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Dtest=ITBigQueryTest,ITRemoteUDFTest -Pnative -Penable-integration-tests test
+ # Run Unit and Integration Tests with Native Image
+ mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
RETURN_CODE=$?
;;
graalvm17)
- # Run Integration Tests with Native Image. Skip running nightly tests in presubmits.
- mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Dtest=ITBigQueryTest,ITRemoteUDFTest -Pnative -Penable-integration-tests test
- RETURN_CODE=$?
- ;;
-nightly-graalvm)
- mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Dtest=ITNightlyBigQueryTest,ITRemoteUDFTest -Pnative -Penable-integration-tests test
- RETURN_CODE=$?
- ;;
-nightly-graalvm17)
- mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Dtest=ITNightlyBigQueryTest,ITRemoteUDFTest -Pnative -Penable-integration-tests test
+ # Run Unit and Integration Tests with Native Image
+ mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
RETURN_CODE=$?
;;
samples)
diff --git a/.kokoro/release/bump_snapshot.cfg b/.kokoro/release/bump_snapshot.cfg
deleted file mode 100644
index a9df23a26..000000000
--- a/.kokoro/release/bump_snapshot.cfg
+++ /dev/null
@@ -1,53 +0,0 @@
-# Format: //devtools/kokoro/config/proto/build.proto
-
-# Build logs will be here
-action {
- define_artifacts {
- regex: "**/*sponge_log.xml"
- }
-}
-
-# Download trampoline resources.
-gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
-
-# Use the trampoline script to run in docker.
-build_file: "java-bigquery/.kokoro/trampoline.sh"
-
-# Configure the docker image for kokoro-trampoline.
-env_vars: {
- key: "TRAMPOLINE_IMAGE"
- value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user"
-}
-
-env_vars: {
- key: "TRAMPOLINE_BUILD_FILE"
- value: "github/java-bigquery/.kokoro/release/bump_snapshot.sh"
-}
-
-# tokens used by release-please to keep an up-to-date release PR.
-before_action {
- fetch_keystore {
- keystore_resource {
- keystore_config_id: 73713
- keyname: "github-magic-proxy-key-release-please"
- }
- }
-}
-
-before_action {
- fetch_keystore {
- keystore_resource {
- keystore_config_id: 73713
- keyname: "github-magic-proxy-token-release-please"
- }
- }
-}
-
-before_action {
- fetch_keystore {
- keystore_resource {
- keystore_config_id: 73713
- keyname: "github-magic-proxy-url-release-please"
- }
- }
-}
diff --git a/.kokoro/release/bump_snapshot.sh b/.kokoro/release/bump_snapshot.sh
deleted file mode 100755
index cda46bf27..000000000
--- a/.kokoro/release/bump_snapshot.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/bash
-
-# Copyright 2019 Google LLC
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-set -eo pipefail
-
-export NPM_CONFIG_PREFIX=/home/node/.npm-global
-
-if [ -f ${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please ]; then
- # Groom the snapshot release PR immediately after publishing a release
- npx release-please release-pr --token=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-token-release-please \
- --repo-url=googleapis/java-bigquery \
- --package-name="bigquery" \
- --api-url=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please \
- --proxy-key=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-key-release-please \
- --snapshot \
- --release-type=java-auth-yoshi
-fi
diff --git a/.kokoro/release/common.cfg b/.kokoro/release/common.cfg
deleted file mode 100644
index 6d3d52351..000000000
--- a/.kokoro/release/common.cfg
+++ /dev/null
@@ -1,49 +0,0 @@
-# Format: //devtools/kokoro/config/proto/build.proto
-
-# Download trampoline resources.
-gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
-
-# Use the trampoline script to run in docker.
-build_file: "java-bigquery/.kokoro/trampoline.sh"
-
-# Configure the docker image for kokoro-trampoline.
-env_vars: {
- key: "TRAMPOLINE_IMAGE"
- value: "gcr.io/cloud-devrel-kokoro-resources/java8"
-}
-
-before_action {
- fetch_keystore {
- keystore_resource {
- keystore_config_id: 70247
- keyname: "maven-gpg-keyring"
- }
- }
-}
-
-before_action {
- fetch_keystore {
- keystore_resource {
- keystore_config_id: 70247
- keyname: "maven-gpg-passphrase"
- }
- }
-}
-
-before_action {
- fetch_keystore {
- keystore_resource {
- keystore_config_id: 70247
- keyname: "maven-gpg-pubkeyring"
- }
- }
-}
-
-before_action {
- fetch_keystore {
- keystore_resource {
- keystore_config_id: 70247
- keyname: "sonatype-credentials"
- }
- }
-}
diff --git a/.kokoro/release/common.sh b/.kokoro/release/common.sh
deleted file mode 100755
index 7f78ee414..000000000
--- a/.kokoro/release/common.sh
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/bash
-# Copyright 2018 Google LLC
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-set -eo pipefail
-
-# Get secrets from keystore and set and environment variables
-setup_environment_secrets() {
- export GPG_PASSPHRASE=$(cat ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-passphrase)
- export GPG_TTY=$(tty)
- export GPG_HOMEDIR=/gpg
- mkdir $GPG_HOMEDIR
- mv ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-pubkeyring $GPG_HOMEDIR/pubring.gpg
- mv ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-keyring $GPG_HOMEDIR/secring.gpg
- export SONATYPE_USERNAME=$(cat ${KOKORO_KEYSTORE_DIR}/70247_sonatype-credentials | cut -f1 -d'|')
- export SONATYPE_PASSWORD=$(cat ${KOKORO_KEYSTORE_DIR}/70247_sonatype-credentials | cut -f2 -d'|')
-}
-
-create_settings_xml_file() {
- echo "
-
-
- ossrh
- ${SONATYPE_USERNAME}
- ${SONATYPE_PASSWORD}
-
-
- sonatype-nexus-staging
- ${SONATYPE_USERNAME}
- ${SONATYPE_PASSWORD}
-
-
- sonatype-nexus-snapshots
- ${SONATYPE_USERNAME}
- ${SONATYPE_PASSWORD}
-
-
- " > $1
-}
\ No newline at end of file
diff --git a/.kokoro/release/drop.cfg b/.kokoro/release/drop.cfg
deleted file mode 100644
index 0040a6262..000000000
--- a/.kokoro/release/drop.cfg
+++ /dev/null
@@ -1,6 +0,0 @@
-# Format: //devtools/kokoro/config/proto/build.proto
-
-env_vars: {
- key: "TRAMPOLINE_BUILD_FILE"
- value: "github/java-bigquery/.kokoro/release/drop.sh"
-}
diff --git a/.kokoro/release/drop.sh b/.kokoro/release/drop.sh
deleted file mode 100755
index 742ec1a88..000000000
--- a/.kokoro/release/drop.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-# Copyright 2018 Google LLC
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-set -eo pipefail
-
-# STAGING_REPOSITORY_ID must be set
-if [ -z "${STAGING_REPOSITORY_ID}" ]; then
- echo "Missing STAGING_REPOSITORY_ID environment variable"
- exit 1
-fi
-
-source $(dirname "$0")/common.sh
-pushd $(dirname "$0")/../../
-
-setup_environment_secrets
-create_settings_xml_file "settings.xml"
-
-mvn nexus-staging:drop -B \
- --settings=settings.xml \
- -DstagingRepositoryId=${STAGING_REPOSITORY_ID}
diff --git a/.kokoro/release/promote.cfg b/.kokoro/release/promote.cfg
deleted file mode 100644
index 5bc020921..000000000
--- a/.kokoro/release/promote.cfg
+++ /dev/null
@@ -1,6 +0,0 @@
-# Format: //devtools/kokoro/config/proto/build.proto
-
-env_vars: {
- key: "TRAMPOLINE_BUILD_FILE"
- value: "github/java-bigquery/.kokoro/release/promote.sh"
-}
diff --git a/.kokoro/release/promote.sh b/.kokoro/release/promote.sh
deleted file mode 100755
index 3cac3d8a9..000000000
--- a/.kokoro/release/promote.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/bash
-# Copyright 2018 Google LLC
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-set -eo pipefail
-
-# STAGING_REPOSITORY_ID must be set
-if [ -z "${STAGING_REPOSITORY_ID}" ]; then
- echo "Missing STAGING_REPOSITORY_ID environment variable"
- exit 1
-fi
-
-source $(dirname "$0")/common.sh
-
-pushd $(dirname "$0")/../../
-
-setup_environment_secrets
-create_settings_xml_file "settings.xml"
-
-mvn nexus-staging:release -B \
- -DperformRelease=true \
- --settings=settings.xml \
- -DstagingRepositoryId=${STAGING_REPOSITORY_ID}
diff --git a/.kokoro/release/publish_javadoc.cfg b/.kokoro/release/publish_javadoc.cfg
deleted file mode 100644
index eedb45d59..000000000
--- a/.kokoro/release/publish_javadoc.cfg
+++ /dev/null
@@ -1,23 +0,0 @@
-# Format: //devtools/kokoro/config/proto/build.proto
-
-gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/doc-templates/"
-
-env_vars: {
- key: "STAGING_BUCKET"
- value: "docs-staging"
-}
-
-env_vars: {
- key: "TRAMPOLINE_BUILD_FILE"
- value: "github/java-bigquery/.kokoro/release/publish_javadoc.sh"
-}
-
-
-before_action {
- fetch_keystore {
- keystore_resource {
- keystore_config_id: 73713
- keyname: "docuploader_service_account"
- }
- }
-}
diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh
deleted file mode 100755
index 5d8cd8bee..000000000
--- a/.kokoro/release/publish_javadoc.sh
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/bash
-# Copyright 2019 Google LLC
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-set -eo pipefail
-
-if [[ -z "${CREDENTIALS}" ]]; then
- CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713_docuploader_service_account
-fi
-
-if [[ -z "${STAGING_BUCKET}" ]]; then
- echo "Need to set STAGING_BUCKET environment variable"
- exit 1
-fi
-
-# work from the git root directory
-pushd $(dirname "$0")/../../
-
-# install docuploader package
-python3 -m pip install --require-hashes -r .kokoro/requirements.txt
-
-# compile all packages
-mvn clean install -B -q -DskipTests=true
-
-export NAME=google-cloud-bigquery
-export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3)
-
-# build the docs
-mvn site -B -q
-
-pushd target/site/apidocs
-
-# create metadata
-python3 -m docuploader create-metadata \
- --name ${NAME} \
- --version ${VERSION} \
- --language java
-
-# upload docs
-python3 -m docuploader upload . \
- --credentials ${CREDENTIALS} \
- --staging-bucket ${STAGING_BUCKET}
diff --git a/.kokoro/release/publish_javadoc11.cfg b/.kokoro/release/publish_javadoc11.cfg
deleted file mode 100644
index 60a846c10..000000000
--- a/.kokoro/release/publish_javadoc11.cfg
+++ /dev/null
@@ -1,30 +0,0 @@
-# Format: //devtools/kokoro/config/proto/build.proto
-
-# cloud-rad production
-env_vars: {
- key: "STAGING_BUCKET_V2"
- value: "docs-staging-v2"
-}
-
-# Configure the docker image for kokoro-trampoline
-env_vars: {
- key: "TRAMPOLINE_IMAGE"
- value: "gcr.io/cloud-devrel-kokoro-resources/java11"
-}
-
-env_vars: {
- key: "TRAMPOLINE_BUILD_FILE"
- value: "github/java-bigquery/.kokoro/release/publish_javadoc11.sh"
-}
-
-before_action {
- fetch_keystore {
- keystore_resource {
- keystore_config_id: 73713
- keyname: "docuploader_service_account"
- }
- }
-}
-
-# Downloads docfx doclet resource. This will be in ${KOKORO_GFILE_DIR}/
-gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/docfx"
diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh
deleted file mode 100755
index b65cd03b6..000000000
--- a/.kokoro/release/publish_javadoc11.sh
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/bash
-# Copyright 2021 Google LLC
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-set -eo pipefail
-
-if [[ -z "${CREDENTIALS}" ]]; then
- CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713_docuploader_service_account
-fi
-
-if [[ -z "${STAGING_BUCKET_V2}" ]]; then
- echo "Need to set STAGING_BUCKET_V2 environment variable"
- exit 1
-fi
-
-# work from the git root directory
-pushd $(dirname "$0")/../../
-
-# install docuploader package
-python3 -m pip install --require-hashes -r .kokoro/requirements.txt
-
-# compile all packages
-mvn clean install -B -q -DskipTests=true
-
-export NAME=google-cloud-bigquery
-export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3)
-
-# cloud RAD generation
-mvn clean javadoc:aggregate -B -q -P docFX
-# include CHANGELOG
-cp CHANGELOG.md target/docfx-yml/history.md
-
-pushd target/docfx-yml
-
-# create metadata
-python3 -m docuploader create-metadata \
- --name ${NAME} \
- --version ${VERSION} \
- --xrefs devsite://java/gax \
- --xrefs devsite://java/google-cloud-core \
- --xrefs devsite://java/api-common \
- --xrefs devsite://java/proto-google-common-protos \
- --xrefs devsite://java/google-api-client \
- --xrefs devsite://java/google-http-client \
- --xrefs devsite://java/protobuf \
- --language java
-
-# upload yml to production bucket
-python3 -m docuploader upload . \
- --credentials ${CREDENTIALS} \
- --staging-bucket ${STAGING_BUCKET_V2} \
- --destination-prefix docfx
diff --git a/.kokoro/release/snapshot.cfg b/.kokoro/release/snapshot.cfg
deleted file mode 100644
index effcaa312..000000000
--- a/.kokoro/release/snapshot.cfg
+++ /dev/null
@@ -1,6 +0,0 @@
-# Format: //devtools/kokoro/config/proto/build.proto
-
-env_vars: {
- key: "TRAMPOLINE_BUILD_FILE"
- value: "github/java-bigquery/.kokoro/release/snapshot.sh"
-}
\ No newline at end of file
diff --git a/.kokoro/release/snapshot.sh b/.kokoro/release/snapshot.sh
deleted file mode 100755
index 1f55b7702..000000000
--- a/.kokoro/release/snapshot.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/bash
-# Copyright 2019 Google LLC
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-set -eo pipefail
-
-source $(dirname "$0")/common.sh
-MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml
-pushd $(dirname "$0")/../../
-
-# ensure we're trying to push a snapshot (no-result returns non-zero exit code)
-grep SNAPSHOT versions.txt
-
-setup_environment_secrets
-create_settings_xml_file "settings.xml"
-
-mvn clean deploy -B \
- --settings ${MAVEN_SETTINGS_FILE} \
- -DperformRelease=true \
- -Dgpg.executable=gpg \
- -Dgpg.passphrase=${GPG_PASSPHRASE} \
- -Dgpg.homedir=${GPG_HOMEDIR}
diff --git a/.kokoro/release/stage.cfg b/.kokoro/release/stage.cfg
deleted file mode 100644
index 8cd8055a9..000000000
--- a/.kokoro/release/stage.cfg
+++ /dev/null
@@ -1,19 +0,0 @@
-# Format: //devtools/kokoro/config/proto/build.proto
-
-env_vars: {
- key: "TRAMPOLINE_BUILD_FILE"
- value: "github/java-bigquery/.kokoro/release/stage.sh"
-}
-
-# Need to save the properties file
-action {
- define_artifacts {
- regex: "github/java-bigquery/target/nexus-staging/staging/*.properties"
- strip_prefix: "github/java-bigquery"
- }
-}
-
-env_vars: {
- key: "SECRET_MANAGER_KEYS"
- value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem"
-}
diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh
deleted file mode 100755
index 61e714d6b..000000000
--- a/.kokoro/release/stage.sh
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/bin/bash
-# Copyright 2018 Google LLC
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-set -eo pipefail
-
-# Start the releasetool reporter
-requirementsFile=$(realpath $(dirname "${BASH_SOURCE[0]}")/../requirements.txt)
-python3 -m pip install --require-hashes -r $requirementsFile
-python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script
-
-source $(dirname "$0")/common.sh
-source $(dirname "$0")/../common.sh
-MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml
-pushd $(dirname "$0")/../../
-
-setup_environment_secrets
-create_settings_xml_file "settings.xml"
-
-# attempt to stage 3 times with exponential backoff (starting with 10 seconds)
-retry_with_backoff 3 10 \
- mvn clean deploy -B \
- --settings ${MAVEN_SETTINGS_FILE} \
- -DskipTests=true \
- -Dclirr.skip=true \
- -DperformRelease=true \
- -Dgpg.executable=gpg \
- -Dgpg.passphrase=${GPG_PASSPHRASE} \
- -Dgpg.homedir=${GPG_HOMEDIR}
-
-if [[ -n "${AUTORELEASE_PR}" ]]
-then
- mvn nexus-staging:release -B \
- -DperformRelease=true \
- --settings=settings.xml
-fi
diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt
deleted file mode 100644
index 445c5c1f0..000000000
--- a/.kokoro/requirements.txt
+++ /dev/null
@@ -1,491 +0,0 @@
-#
-# This file is autogenerated by pip-compile with Python 3.9
-# by the following command:
-#
-# pip-compile requirements.in --generate-hashes --upgrade
-#
-attrs==23.1.0 \
- --hash=sha256:1f28b4522cdc2fb4256ac1a020c78acf9cba2c6b461ccd2c126f3aa8e8335d04 \
- --hash=sha256:6279836d581513a26f1bf235f9acd333bc9115683f14f7e8fae46c98fc50e015
- # via gcp-releasetool
-cachetools==5.3.1 \
- --hash=sha256:95ef631eeaea14ba2e36f06437f36463aac3a096799e876ee55e5cdccb102590 \
- --hash=sha256:dce83f2d9b4e1f732a8cd44af8e8fab2dbe46201467fc98b3ef8f269092bf62b
- # via google-auth
-certifi==2023.7.22 \
- --hash=sha256:539cc1d13202e33ca466e88b2807e29f4c13049d6d87031a3c110744495cb082 \
- --hash=sha256:92d6037539857d8206b8f6ae472e8b77db8058fec5937a1ef3f54304089edbb9
- # via requests
-cffi==1.15.1 \
- --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \
- --hash=sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef \
- --hash=sha256:04ed324bda3cda42b9b695d51bb7d54b680b9719cfab04227cdd1e04e5de3104 \
- --hash=sha256:0e2642fe3142e4cc4af0799748233ad6da94c62a8bec3a6648bf8ee68b1c7426 \
- --hash=sha256:173379135477dc8cac4bc58f45db08ab45d228b3363adb7af79436135d028405 \
- --hash=sha256:198caafb44239b60e252492445da556afafc7d1e3ab7a1fb3f0584ef6d742375 \
- --hash=sha256:1e74c6b51a9ed6589199c787bf5f9875612ca4a8a0785fb2d4a84429badaf22a \
- --hash=sha256:2012c72d854c2d03e45d06ae57f40d78e5770d252f195b93f581acf3ba44496e \
- --hash=sha256:21157295583fe8943475029ed5abdcf71eb3911894724e360acff1d61c1d54bc \
- --hash=sha256:2470043b93ff09bf8fb1d46d1cb756ce6132c54826661a32d4e4d132e1977adf \
- --hash=sha256:285d29981935eb726a4399badae8f0ffdff4f5050eaa6d0cfc3f64b857b77185 \
- --hash=sha256:30d78fbc8ebf9c92c9b7823ee18eb92f2e6ef79b45ac84db507f52fbe3ec4497 \
- --hash=sha256:320dab6e7cb2eacdf0e658569d2575c4dad258c0fcc794f46215e1e39f90f2c3 \
- --hash=sha256:33ab79603146aace82c2427da5ca6e58f2b3f2fb5da893ceac0c42218a40be35 \
- --hash=sha256:3548db281cd7d2561c9ad9984681c95f7b0e38881201e157833a2342c30d5e8c \
- --hash=sha256:3799aecf2e17cf585d977b780ce79ff0dc9b78d799fc694221ce814c2c19db83 \
- --hash=sha256:39d39875251ca8f612b6f33e6b1195af86d1b3e60086068be9cc053aa4376e21 \
- --hash=sha256:3b926aa83d1edb5aa5b427b4053dc420ec295a08e40911296b9eb1b6170f6cca \
- --hash=sha256:3bcde07039e586f91b45c88f8583ea7cf7a0770df3a1649627bf598332cb6984 \
- --hash=sha256:3d08afd128ddaa624a48cf2b859afef385b720bb4b43df214f85616922e6a5ac \
- --hash=sha256:3eb6971dcff08619f8d91607cfc726518b6fa2a9eba42856be181c6d0d9515fd \
- --hash=sha256:40f4774f5a9d4f5e344f31a32b5096977b5d48560c5592e2f3d2c4374bd543ee \
- --hash=sha256:4289fc34b2f5316fbb762d75362931e351941fa95fa18789191b33fc4cf9504a \
- --hash=sha256:470c103ae716238bbe698d67ad020e1db9d9dba34fa5a899b5e21577e6d52ed2 \
- --hash=sha256:4f2c9f67e9821cad2e5f480bc8d83b8742896f1242dba247911072d4fa94c192 \
- --hash=sha256:50a74364d85fd319352182ef59c5c790484a336f6db772c1a9231f1c3ed0cbd7 \
- --hash=sha256:54a2db7b78338edd780e7ef7f9f6c442500fb0d41a5a4ea24fff1c929d5af585 \
- --hash=sha256:5635bd9cb9731e6d4a1132a498dd34f764034a8ce60cef4f5319c0541159392f \
- --hash=sha256:59c0b02d0a6c384d453fece7566d1c7e6b7bae4fc5874ef2ef46d56776d61c9e \
- --hash=sha256:5d598b938678ebf3c67377cdd45e09d431369c3b1a5b331058c338e201f12b27 \
- --hash=sha256:5df2768244d19ab7f60546d0c7c63ce1581f7af8b5de3eb3004b9b6fc8a9f84b \
- --hash=sha256:5ef34d190326c3b1f822a5b7a45f6c4535e2f47ed06fec77d3d799c450b2651e \
- --hash=sha256:6975a3fac6bc83c4a65c9f9fcab9e47019a11d3d2cf7f3c0d03431bf145a941e \
- --hash=sha256:6c9a799e985904922a4d207a94eae35c78ebae90e128f0c4e521ce339396be9d \
- --hash=sha256:70df4e3b545a17496c9b3f41f5115e69a4f2e77e94e1d2a8e1070bc0c38c8a3c \
- --hash=sha256:7473e861101c9e72452f9bf8acb984947aa1661a7704553a9f6e4baa5ba64415 \
- --hash=sha256:8102eaf27e1e448db915d08afa8b41d6c7ca7a04b7d73af6514df10a3e74bd82 \
- --hash=sha256:87c450779d0914f2861b8526e035c5e6da0a3199d8f1add1a665e1cbc6fc6d02 \
- --hash=sha256:8b7ee99e510d7b66cdb6c593f21c043c248537a32e0bedf02e01e9553a172314 \
- --hash=sha256:91fc98adde3d7881af9b59ed0294046f3806221863722ba7d8d120c575314325 \
- --hash=sha256:94411f22c3985acaec6f83c6df553f2dbe17b698cc7f8ae751ff2237d96b9e3c \
- --hash=sha256:98d85c6a2bef81588d9227dde12db8a7f47f639f4a17c9ae08e773aa9c697bf3 \
- --hash=sha256:9ad5db27f9cabae298d151c85cf2bad1d359a1b9c686a275df03385758e2f914 \
- --hash=sha256:a0b71b1b8fbf2b96e41c4d990244165e2c9be83d54962a9a1d118fd8657d2045 \
- --hash=sha256:a0f100c8912c114ff53e1202d0078b425bee3649ae34d7b070e9697f93c5d52d \
- --hash=sha256:a591fe9e525846e4d154205572a029f653ada1a78b93697f3b5a8f1f2bc055b9 \
- --hash=sha256:a5c84c68147988265e60416b57fc83425a78058853509c1b0629c180094904a5 \
- --hash=sha256:a66d3508133af6e8548451b25058d5812812ec3798c886bf38ed24a98216fab2 \
- --hash=sha256:a8c4917bd7ad33e8eb21e9a5bbba979b49d9a97acb3a803092cbc1133e20343c \
- --hash=sha256:b3bbeb01c2b273cca1e1e0c5df57f12dce9a4dd331b4fa1635b8bec26350bde3 \
- --hash=sha256:cba9d6b9a7d64d4bd46167096fc9d2f835e25d7e4c121fb2ddfc6528fb0413b2 \
- --hash=sha256:cc4d65aeeaa04136a12677d3dd0b1c0c94dc43abac5860ab33cceb42b801c1e8 \
- --hash=sha256:ce4bcc037df4fc5e3d184794f27bdaab018943698f4ca31630bc7f84a7b69c6d \
- --hash=sha256:cec7d9412a9102bdc577382c3929b337320c4c4c4849f2c5cdd14d7368c5562d \
- --hash=sha256:d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9 \
- --hash=sha256:d61f4695e6c866a23a21acab0509af1cdfd2c013cf256bbf5b6b5e2695827162 \
- --hash=sha256:db0fbb9c62743ce59a9ff687eb5f4afbe77e5e8403d6697f7446e5f609976f76 \
- --hash=sha256:dd86c085fae2efd48ac91dd7ccffcfc0571387fe1193d33b6394db7ef31fe2a4 \
- --hash=sha256:e00b098126fd45523dd056d2efba6c5a63b71ffe9f2bbe1a4fe1716e1d0c331e \
- --hash=sha256:e229a521186c75c8ad9490854fd8bbdd9a0c9aa3a524326b55be83b54d4e0ad9 \
- --hash=sha256:e263d77ee3dd201c3a142934a086a4450861778baaeeb45db4591ef65550b0a6 \
- --hash=sha256:ed9cb427ba5504c1dc15ede7d516b84757c3e3d7868ccc85121d9310d27eed0b \
- --hash=sha256:fa6693661a4c91757f4412306191b6dc88c1703f780c8234035eac011922bc01 \
- --hash=sha256:fcd131dd944808b5bdb38e6f5b53013c5aa4f334c5cad0c72742f6eba4b73db0
- # via cryptography
-charset-normalizer==3.2.0 \
- --hash=sha256:04e57ab9fbf9607b77f7d057974694b4f6b142da9ed4a199859d9d4d5c63fe96 \
- --hash=sha256:09393e1b2a9461950b1c9a45d5fd251dc7c6f228acab64da1c9c0165d9c7765c \
- --hash=sha256:0b87549028f680ca955556e3bd57013ab47474c3124dc069faa0b6545b6c9710 \
- --hash=sha256:1000fba1057b92a65daec275aec30586c3de2401ccdcd41f8a5c1e2c87078706 \
- --hash=sha256:1249cbbf3d3b04902ff081ffbb33ce3377fa6e4c7356f759f3cd076cc138d020 \
- --hash=sha256:1920d4ff15ce893210c1f0c0e9d19bfbecb7983c76b33f046c13a8ffbd570252 \
- --hash=sha256:193cbc708ea3aca45e7221ae58f0fd63f933753a9bfb498a3b474878f12caaad \
- --hash=sha256:1a100c6d595a7f316f1b6f01d20815d916e75ff98c27a01ae817439ea7726329 \
- --hash=sha256:1f30b48dd7fa1474554b0b0f3fdfdd4c13b5c737a3c6284d3cdc424ec0ffff3a \
- --hash=sha256:203f0c8871d5a7987be20c72442488a0b8cfd0f43b7973771640fc593f56321f \
- --hash=sha256:246de67b99b6851627d945db38147d1b209a899311b1305dd84916f2b88526c6 \
- --hash=sha256:2dee8e57f052ef5353cf608e0b4c871aee320dd1b87d351c28764fc0ca55f9f4 \
- --hash=sha256:2efb1bd13885392adfda4614c33d3b68dee4921fd0ac1d3988f8cbb7d589e72a \
- --hash=sha256:2f4ac36d8e2b4cc1aa71df3dd84ff8efbe3bfb97ac41242fbcfc053c67434f46 \
- --hash=sha256:3170c9399da12c9dc66366e9d14da8bf7147e1e9d9ea566067bbce7bb74bd9c2 \
- --hash=sha256:3b1613dd5aee995ec6d4c69f00378bbd07614702a315a2cf6c1d21461fe17c23 \
- --hash=sha256:3bb3d25a8e6c0aedd251753a79ae98a093c7e7b471faa3aa9a93a81431987ace \
- --hash=sha256:3bb7fda7260735efe66d5107fb7e6af6a7c04c7fce9b2514e04b7a74b06bf5dd \
- --hash=sha256:41b25eaa7d15909cf3ac4c96088c1f266a9a93ec44f87f1d13d4a0e86c81b982 \
- --hash=sha256:45de3f87179c1823e6d9e32156fb14c1927fcc9aba21433f088fdfb555b77c10 \
- --hash=sha256:46fb8c61d794b78ec7134a715a3e564aafc8f6b5e338417cb19fe9f57a5a9bf2 \
- --hash=sha256:48021783bdf96e3d6de03a6e39a1171ed5bd7e8bb93fc84cc649d11490f87cea \
- --hash=sha256:4957669ef390f0e6719db3613ab3a7631e68424604a7b448f079bee145da6e09 \
- --hash=sha256:5e86d77b090dbddbe78867a0275cb4df08ea195e660f1f7f13435a4649e954e5 \
- --hash=sha256:6339d047dab2780cc6220f46306628e04d9750f02f983ddb37439ca47ced7149 \
- --hash=sha256:681eb3d7e02e3c3655d1b16059fbfb605ac464c834a0c629048a30fad2b27489 \
- --hash=sha256:6c409c0deba34f147f77efaa67b8e4bb83d2f11c8806405f76397ae5b8c0d1c9 \
- --hash=sha256:7095f6fbfaa55defb6b733cfeb14efaae7a29f0b59d8cf213be4e7ca0b857b80 \
- --hash=sha256:70c610f6cbe4b9fce272c407dd9d07e33e6bf7b4aa1b7ffb6f6ded8e634e3592 \
- --hash=sha256:72814c01533f51d68702802d74f77ea026b5ec52793c791e2da806a3844a46c3 \
- --hash=sha256:7a4826ad2bd6b07ca615c74ab91f32f6c96d08f6fcc3902ceeedaec8cdc3bcd6 \
- --hash=sha256:7c70087bfee18a42b4040bb9ec1ca15a08242cf5867c58726530bdf3945672ed \
- --hash=sha256:855eafa5d5a2034b4621c74925d89c5efef61418570e5ef9b37717d9c796419c \
- --hash=sha256:8700f06d0ce6f128de3ccdbc1acaea1ee264d2caa9ca05daaf492fde7c2a7200 \
- --hash=sha256:89f1b185a01fe560bc8ae5f619e924407efca2191b56ce749ec84982fc59a32a \
- --hash=sha256:8b2c760cfc7042b27ebdb4a43a4453bd829a5742503599144d54a032c5dc7e9e \
- --hash=sha256:8c2f5e83493748286002f9369f3e6607c565a6a90425a3a1fef5ae32a36d749d \
- --hash=sha256:8e098148dd37b4ce3baca71fb394c81dc5d9c7728c95df695d2dca218edf40e6 \
- --hash=sha256:94aea8eff76ee6d1cdacb07dd2123a68283cb5569e0250feab1240058f53b623 \
- --hash=sha256:95eb302ff792e12aba9a8b8f8474ab229a83c103d74a750ec0bd1c1eea32e669 \
- --hash=sha256:9bd9b3b31adcb054116447ea22caa61a285d92e94d710aa5ec97992ff5eb7cf3 \
- --hash=sha256:9e608aafdb55eb9f255034709e20d5a83b6d60c054df0802fa9c9883d0a937aa \
- --hash=sha256:a103b3a7069b62f5d4890ae1b8f0597618f628b286b03d4bc9195230b154bfa9 \
- --hash=sha256:a386ebe437176aab38c041de1260cd3ea459c6ce5263594399880bbc398225b2 \
- --hash=sha256:a38856a971c602f98472050165cea2cdc97709240373041b69030be15047691f \
- --hash=sha256:a401b4598e5d3f4a9a811f3daf42ee2291790c7f9d74b18d75d6e21dda98a1a1 \
- --hash=sha256:a7647ebdfb9682b7bb97e2a5e7cb6ae735b1c25008a70b906aecca294ee96cf4 \
- --hash=sha256:aaf63899c94de41fe3cf934601b0f7ccb6b428c6e4eeb80da72c58eab077b19a \
- --hash=sha256:b0dac0ff919ba34d4df1b6131f59ce95b08b9065233446be7e459f95554c0dc8 \
- --hash=sha256:baacc6aee0b2ef6f3d308e197b5d7a81c0e70b06beae1f1fcacffdbd124fe0e3 \
- --hash=sha256:bf420121d4c8dce6b889f0e8e4ec0ca34b7f40186203f06a946fa0276ba54029 \
- --hash=sha256:c04a46716adde8d927adb9457bbe39cf473e1e2c2f5d0a16ceb837e5d841ad4f \
- --hash=sha256:c0b21078a4b56965e2b12f247467b234734491897e99c1d51cee628da9786959 \
- --hash=sha256:c1c76a1743432b4b60ab3358c937a3fe1341c828ae6194108a94c69028247f22 \
- --hash=sha256:c4983bf937209c57240cff65906b18bb35e64ae872da6a0db937d7b4af845dd7 \
- --hash=sha256:c4fb39a81950ec280984b3a44f5bd12819953dc5fa3a7e6fa7a80db5ee853952 \
- --hash=sha256:c57921cda3a80d0f2b8aec7e25c8aa14479ea92b5b51b6876d975d925a2ea346 \
- --hash=sha256:c8063cf17b19661471ecbdb3df1c84f24ad2e389e326ccaf89e3fb2484d8dd7e \
- --hash=sha256:ccd16eb18a849fd8dcb23e23380e2f0a354e8daa0c984b8a732d9cfaba3a776d \
- --hash=sha256:cd6dbe0238f7743d0efe563ab46294f54f9bc8f4b9bcf57c3c666cc5bc9d1299 \
- --hash=sha256:d62e51710986674142526ab9f78663ca2b0726066ae26b78b22e0f5e571238dd \
- --hash=sha256:db901e2ac34c931d73054d9797383d0f8009991e723dab15109740a63e7f902a \
- --hash=sha256:e03b8895a6990c9ab2cdcd0f2fe44088ca1c65ae592b8f795c3294af00a461c3 \
- --hash=sha256:e1c8a2f4c69e08e89632defbfabec2feb8a8d99edc9f89ce33c4b9e36ab63037 \
- --hash=sha256:e4b749b9cc6ee664a3300bb3a273c1ca8068c46be705b6c31cf5d276f8628a94 \
- --hash=sha256:e6a5bf2cba5ae1bb80b154ed68a3cfa2fa00fde979a7f50d6598d3e17d9ac20c \
- --hash=sha256:e857a2232ba53ae940d3456f7533ce6ca98b81917d47adc3c7fd55dad8fab858 \
- --hash=sha256:ee4006268ed33370957f55bf2e6f4d263eaf4dc3cfc473d1d90baff6ed36ce4a \
- --hash=sha256:eef9df1eefada2c09a5e7a40991b9fc6ac6ef20b1372abd48d2794a316dc0449 \
- --hash=sha256:f058f6963fd82eb143c692cecdc89e075fa0828db2e5b291070485390b2f1c9c \
- --hash=sha256:f25c229a6ba38a35ae6e25ca1264621cc25d4d38dca2942a7fce0b67a4efe918 \
- --hash=sha256:f2a1d0fd4242bd8643ce6f98927cf9c04540af6efa92323e9d3124f57727bfc1 \
- --hash=sha256:f7560358a6811e52e9c4d142d497f1a6e10103d3a6881f18d04dbce3729c0e2c \
- --hash=sha256:f779d3ad205f108d14e99bb3859aa7dd8e9c68874617c72354d7ecaec2a054ac \
- --hash=sha256:f87f746ee241d30d6ed93969de31e5ffd09a2961a051e60ae6bddde9ec3583aa
- # via requests
-click==8.0.4 \
- --hash=sha256:6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1 \
- --hash=sha256:8458d7b1287c5fb128c90e23381cf99dcde74beaf6c7ff6384ce84d6fe090adb
- # via
- # -r requirements.in
- # gcp-docuploader
- # gcp-releasetool
-colorlog==6.7.0 \
- --hash=sha256:0d33ca236784a1ba3ff9c532d4964126d8a2c44f1f0cb1d2b0728196f512f662 \
- --hash=sha256:bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5
- # via gcp-docuploader
-cryptography==41.0.6 \
- --hash=sha256:068bc551698c234742c40049e46840843f3d98ad7ce265fd2bd4ec0d11306596 \
- --hash=sha256:0f27acb55a4e77b9be8d550d762b0513ef3fc658cd3eb15110ebbcbd626db12c \
- --hash=sha256:2132d5865eea673fe6712c2ed5fb4fa49dba10768bb4cc798345748380ee3660 \
- --hash=sha256:3288acccef021e3c3c10d58933f44e8602cf04dba96d9796d70d537bb2f4bbc4 \
- --hash=sha256:35f3f288e83c3f6f10752467c48919a7a94b7d88cc00b0668372a0d2ad4f8ead \
- --hash=sha256:398ae1fc711b5eb78e977daa3cbf47cec20f2c08c5da129b7a296055fbb22aed \
- --hash=sha256:422e3e31d63743855e43e5a6fcc8b4acab860f560f9321b0ee6269cc7ed70cc3 \
- --hash=sha256:48783b7e2bef51224020efb61b42704207dde583d7e371ef8fc2a5fb6c0aabc7 \
- --hash=sha256:4d03186af98b1c01a4eda396b137f29e4e3fb0173e30f885e27acec8823c1b09 \
- --hash=sha256:5daeb18e7886a358064a68dbcaf441c036cbdb7da52ae744e7b9207b04d3908c \
- --hash=sha256:60e746b11b937911dc70d164060d28d273e31853bb359e2b2033c9e93e6f3c43 \
- --hash=sha256:742ae5e9a2310e9dade7932f9576606836ed174da3c7d26bc3d3ab4bd49b9f65 \
- --hash=sha256:7e00fb556bda398b99b0da289ce7053639d33b572847181d6483ad89835115f6 \
- --hash=sha256:85abd057699b98fce40b41737afb234fef05c67e116f6f3650782c10862c43da \
- --hash=sha256:8efb2af8d4ba9dbc9c9dd8f04d19a7abb5b49eab1f3694e7b5a16a5fc2856f5c \
- --hash=sha256:ae236bb8760c1e55b7a39b6d4d32d2279bc6c7c8500b7d5a13b6fb9fc97be35b \
- --hash=sha256:afda76d84b053923c27ede5edc1ed7d53e3c9f475ebaf63c68e69f1403c405a8 \
- --hash=sha256:b27a7fd4229abef715e064269d98a7e2909ebf92eb6912a9603c7e14c181928c \
- --hash=sha256:b648fe2a45e426aaee684ddca2632f62ec4613ef362f4d681a9a6283d10e079d \
- --hash=sha256:c5a550dc7a3b50b116323e3d376241829fd326ac47bc195e04eb33a8170902a9 \
- --hash=sha256:da46e2b5df770070412c46f87bac0849b8d685c5f2679771de277a422c7d0b86 \
- --hash=sha256:f39812f70fc5c71a15aa3c97b2bbe213c3f2a460b79bd21c40d033bb34a9bf36 \
- --hash=sha256:ff369dd19e8fe0528b02e8df9f2aeb2479f89b1270d90f96a63500afe9af5cae
- # via
- # gcp-releasetool
- # secretstorage
-gcp-docuploader==0.6.5 \
- --hash=sha256:30221d4ac3e5a2b9c69aa52fdbef68cc3f27d0e6d0d90e220fc024584b8d2318 \
- --hash=sha256:b7458ef93f605b9d46a4bf3a8dc1755dad1f31d030c8679edf304e343b347eea
- # via -r requirements.in
-gcp-releasetool==1.16.0 \
- --hash=sha256:27bf19d2e87aaa884096ff941aa3c592c482be3d6a2bfe6f06afafa6af2353e3 \
- --hash=sha256:a316b197a543fd036209d0caba7a8eb4d236d8e65381c80cbc6d7efaa7606d63
- # via -r requirements.in
-google-api-core==2.11.1 \
- --hash=sha256:25d29e05a0058ed5f19c61c0a78b1b53adea4d9364b464d014fbda941f6d1c9a \
- --hash=sha256:d92a5a92dc36dd4f4b9ee4e55528a90e432b059f93aee6ad857f9de8cc7ae94a
- # via
- # google-cloud-core
- # google-cloud-storage
-google-auth==2.22.0 \
- --hash=sha256:164cba9af4e6e4e40c3a4f90a1a6c12ee56f14c0b4868d1ca91b32826ab334ce \
- --hash=sha256:d61d1b40897407b574da67da1a833bdc10d5a11642566e506565d1b1a46ba873
- # via
- # gcp-releasetool
- # google-api-core
- # google-cloud-core
- # google-cloud-storage
-google-cloud-core==2.3.3 \
- --hash=sha256:37b80273c8d7eee1ae816b3a20ae43585ea50506cb0e60f3cf5be5f87f1373cb \
- --hash=sha256:fbd11cad3e98a7e5b0343dc07cb1039a5ffd7a5bb96e1f1e27cee4bda4a90863
- # via google-cloud-storage
-google-cloud-storage==2.10.0 \
- --hash=sha256:934b31ead5f3994e5360f9ff5750982c5b6b11604dc072bc452c25965e076dc7 \
- --hash=sha256:9433cf28801671de1c80434238fb1e7e4a1ba3087470e90f70c928ea77c2b9d7
- # via gcp-docuploader
-google-crc32c==1.5.0 \
- --hash=sha256:024894d9d3cfbc5943f8f230e23950cd4906b2fe004c72e29b209420a1e6b05a \
- --hash=sha256:02c65b9817512edc6a4ae7c7e987fea799d2e0ee40c53ec573a692bee24de876 \
- --hash=sha256:02ebb8bf46c13e36998aeaad1de9b48f4caf545e91d14041270d9dca767b780c \
- --hash=sha256:07eb3c611ce363c51a933bf6bd7f8e3878a51d124acfc89452a75120bc436289 \
- --hash=sha256:1034d91442ead5a95b5aaef90dbfaca8633b0247d1e41621d1e9f9db88c36298 \
- --hash=sha256:116a7c3c616dd14a3de8c64a965828b197e5f2d121fedd2f8c5585c547e87b02 \
- --hash=sha256:19e0a019d2c4dcc5e598cd4a4bc7b008546b0358bd322537c74ad47a5386884f \
- --hash=sha256:1c7abdac90433b09bad6c43a43af253e688c9cfc1c86d332aed13f9a7c7f65e2 \
- --hash=sha256:1e986b206dae4476f41bcec1faa057851f3889503a70e1bdb2378d406223994a \
- --hash=sha256:272d3892a1e1a2dbc39cc5cde96834c236d5327e2122d3aaa19f6614531bb6eb \
- --hash=sha256:278d2ed7c16cfc075c91378c4f47924c0625f5fc84b2d50d921b18b7975bd210 \
- --hash=sha256:2ad40e31093a4af319dadf503b2467ccdc8f67c72e4bcba97f8c10cb078207b5 \
- --hash=sha256:2e920d506ec85eb4ba50cd4228c2bec05642894d4c73c59b3a2fe20346bd00ee \
- --hash=sha256:3359fc442a743e870f4588fcf5dcbc1bf929df1fad8fb9905cd94e5edb02e84c \
- --hash=sha256:37933ec6e693e51a5b07505bd05de57eee12f3e8c32b07da7e73669398e6630a \
- --hash=sha256:398af5e3ba9cf768787eef45c803ff9614cc3e22a5b2f7d7ae116df8b11e3314 \
- --hash=sha256:3b747a674c20a67343cb61d43fdd9207ce5da6a99f629c6e2541aa0e89215bcd \
- --hash=sha256:461665ff58895f508e2866824a47bdee72497b091c730071f2b7575d5762ab65 \
- --hash=sha256:4c6fdd4fccbec90cc8a01fc00773fcd5fa28db683c116ee3cb35cd5da9ef6c37 \
- --hash=sha256:5829b792bf5822fd0a6f6eb34c5f81dd074f01d570ed7f36aa101d6fc7a0a6e4 \
- --hash=sha256:596d1f98fc70232fcb6590c439f43b350cb762fb5d61ce7b0e9db4539654cc13 \
- --hash=sha256:5ae44e10a8e3407dbe138984f21e536583f2bba1be9491239f942c2464ac0894 \
- --hash=sha256:635f5d4dd18758a1fbd1049a8e8d2fee4ffed124462d837d1a02a0e009c3ab31 \
- --hash=sha256:64e52e2b3970bd891309c113b54cf0e4384762c934d5ae56e283f9a0afcd953e \
- --hash=sha256:66741ef4ee08ea0b2cc3c86916ab66b6aef03768525627fd6a1b34968b4e3709 \
- --hash=sha256:67b741654b851abafb7bc625b6d1cdd520a379074e64b6a128e3b688c3c04740 \
- --hash=sha256:6ac08d24c1f16bd2bf5eca8eaf8304812f44af5cfe5062006ec676e7e1d50afc \
- --hash=sha256:6f998db4e71b645350b9ac28a2167e6632c239963ca9da411523bb439c5c514d \
- --hash=sha256:72218785ce41b9cfd2fc1d6a017dc1ff7acfc4c17d01053265c41a2c0cc39b8c \
- --hash=sha256:74dea7751d98034887dbd821b7aae3e1d36eda111d6ca36c206c44478035709c \
- --hash=sha256:759ce4851a4bb15ecabae28f4d2e18983c244eddd767f560165563bf9aefbc8d \
- --hash=sha256:77e2fd3057c9d78e225fa0a2160f96b64a824de17840351b26825b0848022906 \
- --hash=sha256:7c074fece789b5034b9b1404a1f8208fc2d4c6ce9decdd16e8220c5a793e6f61 \
- --hash=sha256:7c42c70cd1d362284289c6273adda4c6af8039a8ae12dc451dcd61cdabb8ab57 \
- --hash=sha256:7f57f14606cd1dd0f0de396e1e53824c371e9544a822648cd76c034d209b559c \
- --hash=sha256:83c681c526a3439b5cf94f7420471705bbf96262f49a6fe546a6db5f687a3d4a \
- --hash=sha256:8485b340a6a9e76c62a7dce3c98e5f102c9219f4cfbf896a00cf48caf078d438 \
- --hash=sha256:84e6e8cd997930fc66d5bb4fde61e2b62ba19d62b7abd7a69920406f9ecca946 \
- --hash=sha256:89284716bc6a5a415d4eaa11b1726d2d60a0cd12aadf5439828353662ede9dd7 \
- --hash=sha256:8b87e1a59c38f275c0e3676fc2ab6d59eccecfd460be267ac360cc31f7bcde96 \
- --hash=sha256:8f24ed114432de109aa9fd317278518a5af2d31ac2ea6b952b2f7782b43da091 \
- --hash=sha256:98cb4d057f285bd80d8778ebc4fde6b4d509ac3f331758fb1528b733215443ae \
- --hash=sha256:998679bf62b7fb599d2878aa3ed06b9ce688b8974893e7223c60db155f26bd8d \
- --hash=sha256:9ba053c5f50430a3fcfd36f75aff9caeba0440b2d076afdb79a318d6ca245f88 \
- --hash=sha256:9c99616c853bb585301df6de07ca2cadad344fd1ada6d62bb30aec05219c45d2 \
- --hash=sha256:a1fd716e7a01f8e717490fbe2e431d2905ab8aa598b9b12f8d10abebb36b04dd \
- --hash=sha256:a2355cba1f4ad8b6988a4ca3feed5bff33f6af2d7f134852cf279c2aebfde541 \
- --hash=sha256:b1f8133c9a275df5613a451e73f36c2aea4fe13c5c8997e22cf355ebd7bd0728 \
- --hash=sha256:b8667b48e7a7ef66afba2c81e1094ef526388d35b873966d8a9a447974ed9178 \
- --hash=sha256:ba1eb1843304b1e5537e1fca632fa894d6f6deca8d6389636ee5b4797affb968 \
- --hash=sha256:be82c3c8cfb15b30f36768797a640e800513793d6ae1724aaaafe5bf86f8f346 \
- --hash=sha256:c02ec1c5856179f171e032a31d6f8bf84e5a75c45c33b2e20a3de353b266ebd8 \
- --hash=sha256:c672d99a345849301784604bfeaeba4db0c7aae50b95be04dd651fd2a7310b93 \
- --hash=sha256:c6c777a480337ac14f38564ac88ae82d4cd238bf293f0a22295b66eb89ffced7 \
- --hash=sha256:cae0274952c079886567f3f4f685bcaf5708f0a23a5f5216fdab71f81a6c0273 \
- --hash=sha256:cd67cf24a553339d5062eff51013780a00d6f97a39ca062781d06b3a73b15462 \
- --hash=sha256:d3515f198eaa2f0ed49f8819d5732d70698c3fa37384146079b3799b97667a94 \
- --hash=sha256:d5280312b9af0976231f9e317c20e4a61cd2f9629b7bfea6a693d1878a264ebd \
- --hash=sha256:de06adc872bcd8c2a4e0dc51250e9e65ef2ca91be023b9d13ebd67c2ba552e1e \
- --hash=sha256:e1674e4307fa3024fc897ca774e9c7562c957af85df55efe2988ed9056dc4e57 \
- --hash=sha256:e2096eddb4e7c7bdae4bd69ad364e55e07b8316653234a56552d9c988bd2d61b \
- --hash=sha256:e560628513ed34759456a416bf86b54b2476c59144a9138165c9a1575801d0d9 \
- --hash=sha256:edfedb64740750e1a3b16152620220f51d58ff1b4abceb339ca92e934775c27a \
- --hash=sha256:f13cae8cc389a440def0c8c52057f37359014ccbc9dc1f0827936bcd367c6100 \
- --hash=sha256:f314013e7dcd5cf45ab1945d92e713eec788166262ae8deb2cfacd53def27325 \
- --hash=sha256:f583edb943cf2e09c60441b910d6a20b4d9d626c75a36c8fcac01a6c96c01183 \
- --hash=sha256:fd8536e902db7e365f49e7d9029283403974ccf29b13fc7028b97e2295b33556 \
- --hash=sha256:fe70e325aa68fa4b5edf7d1a4b6f691eb04bbccac0ace68e34820d283b5f80d4
- # via google-resumable-media
-google-resumable-media==2.5.0 \
- --hash=sha256:218931e8e2b2a73a58eb354a288e03a0fd5fb1c4583261ac6e4c078666468c93 \
- --hash=sha256:da1bd943e2e114a56d85d6848497ebf9be6a14d3db23e9fc57581e7c3e8170ec
- # via google-cloud-storage
-googleapis-common-protos==1.59.1 \
- --hash=sha256:0cbedb6fb68f1c07e18eb4c48256320777707e7d0c55063ae56c15db3224a61e \
- --hash=sha256:b35d530fe825fb4227857bc47ad84c33c809ac96f312e13182bdeaa2abe1178a
- # via google-api-core
-idna==3.4 \
- --hash=sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4 \
- --hash=sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2
- # via requests
-importlib-metadata==6.8.0 \
- --hash=sha256:3ebb78df84a805d7698245025b975d9d67053cd94c79245ba4b3eb694abe68bb \
- --hash=sha256:dbace7892d8c0c4ac1ad096662232f831d4e64f4c4545bd53016a3e9d4654743
- # via keyring
-jaraco-classes==3.3.0 \
- --hash=sha256:10afa92b6743f25c0cf5f37c6bb6e18e2c5bb84a16527ccfc0040ea377e7aaeb \
- --hash=sha256:c063dd08e89217cee02c8d5e5ec560f2c8ce6cdc2fcdc2e68f7b2e5547ed3621
- # via keyring
-jeepney==0.8.0 \
- --hash=sha256:5efe48d255973902f6badc3ce55e2aa6c5c3b3bc642059ef3a91247bcfcc5806 \
- --hash=sha256:c0a454ad016ca575060802ee4d590dd912e35c122fa04e70306de3d076cce755
- # via
- # keyring
- # secretstorage
-jinja2==3.1.2 \
- --hash=sha256:31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852 \
- --hash=sha256:6088930bfe239f0e6710546ab9c19c9ef35e29792895fed6e6e31a023a182a61
- # via gcp-releasetool
-keyring==24.2.0 \
- --hash=sha256:4901caaf597bfd3bbd78c9a0c7c4c29fcd8310dab2cffefe749e916b6527acd6 \
- --hash=sha256:ca0746a19ec421219f4d713f848fa297a661a8a8c1504867e55bfb5e09091509
- # via gcp-releasetool
-markupsafe==2.1.3 \
- --hash=sha256:05fb21170423db021895e1ea1e1f3ab3adb85d1c2333cbc2310f2a26bc77272e \
- --hash=sha256:0a4e4a1aff6c7ac4cd55792abf96c915634c2b97e3cc1c7129578aa68ebd754e \
- --hash=sha256:10bbfe99883db80bdbaff2dcf681dfc6533a614f700da1287707e8a5d78a8431 \
- --hash=sha256:134da1eca9ec0ae528110ccc9e48041e0828d79f24121a1a146161103c76e686 \
- --hash=sha256:1577735524cdad32f9f694208aa75e422adba74f1baee7551620e43a3141f559 \
- --hash=sha256:1b40069d487e7edb2676d3fbdb2b0829ffa2cd63a2ec26c4938b2d34391b4ecc \
- --hash=sha256:282c2cb35b5b673bbcadb33a585408104df04f14b2d9b01d4c345a3b92861c2c \
- --hash=sha256:2c1b19b3aaacc6e57b7e25710ff571c24d6c3613a45e905b1fde04d691b98ee0 \
- --hash=sha256:2ef12179d3a291be237280175b542c07a36e7f60718296278d8593d21ca937d4 \
- --hash=sha256:338ae27d6b8745585f87218a3f23f1512dbf52c26c28e322dbe54bcede54ccb9 \
- --hash=sha256:3c0fae6c3be832a0a0473ac912810b2877c8cb9d76ca48de1ed31e1c68386575 \
- --hash=sha256:3fd4abcb888d15a94f32b75d8fd18ee162ca0c064f35b11134be77050296d6ba \
- --hash=sha256:42de32b22b6b804f42c5d98be4f7e5e977ecdd9ee9b660fda1a3edf03b11792d \
- --hash=sha256:504b320cd4b7eff6f968eddf81127112db685e81f7e36e75f9f84f0df46041c3 \
- --hash=sha256:525808b8019e36eb524b8c68acdd63a37e75714eac50e988180b169d64480a00 \
- --hash=sha256:56d9f2ecac662ca1611d183feb03a3fa4406469dafe241673d521dd5ae92a155 \
- --hash=sha256:5bbe06f8eeafd38e5d0a4894ffec89378b6c6a625ff57e3028921f8ff59318ac \
- --hash=sha256:65c1a9bcdadc6c28eecee2c119465aebff8f7a584dd719facdd9e825ec61ab52 \
- --hash=sha256:68e78619a61ecf91e76aa3e6e8e33fc4894a2bebe93410754bd28fce0a8a4f9f \
- --hash=sha256:69c0f17e9f5a7afdf2cc9fb2d1ce6aabdb3bafb7f38017c0b77862bcec2bbad8 \
- --hash=sha256:6b2b56950d93e41f33b4223ead100ea0fe11f8e6ee5f641eb753ce4b77a7042b \
- --hash=sha256:787003c0ddb00500e49a10f2844fac87aa6ce977b90b0feaaf9de23c22508b24 \
- --hash=sha256:7ef3cb2ebbf91e330e3bb937efada0edd9003683db6b57bb108c4001f37a02ea \
- --hash=sha256:8023faf4e01efadfa183e863fefde0046de576c6f14659e8782065bcece22198 \
- --hash=sha256:8758846a7e80910096950b67071243da3e5a20ed2546e6392603c096778d48e0 \
- --hash=sha256:8afafd99945ead6e075b973fefa56379c5b5c53fd8937dad92c662da5d8fd5ee \
- --hash=sha256:8c41976a29d078bb235fea9b2ecd3da465df42a562910f9022f1a03107bd02be \
- --hash=sha256:8e254ae696c88d98da6555f5ace2279cf7cd5b3f52be2b5cf97feafe883b58d2 \
- --hash=sha256:9402b03f1a1b4dc4c19845e5c749e3ab82d5078d16a2a4c2cd2df62d57bb0707 \
- --hash=sha256:962f82a3086483f5e5f64dbad880d31038b698494799b097bc59c2edf392fce6 \
- --hash=sha256:9dcdfd0eaf283af041973bff14a2e143b8bd64e069f4c383416ecd79a81aab58 \
- --hash=sha256:aa7bd130efab1c280bed0f45501b7c8795f9fdbeb02e965371bbef3523627779 \
- --hash=sha256:ab4a0df41e7c16a1392727727e7998a467472d0ad65f3ad5e6e765015df08636 \
- --hash=sha256:ad9e82fb8f09ade1c3e1b996a6337afac2b8b9e365f926f5a61aacc71adc5b3c \
- --hash=sha256:af598ed32d6ae86f1b747b82783958b1a4ab8f617b06fe68795c7f026abbdcad \
- --hash=sha256:b076b6226fb84157e3f7c971a47ff3a679d837cf338547532ab866c57930dbee \
- --hash=sha256:b7ff0f54cb4ff66dd38bebd335a38e2c22c41a8ee45aa608efc890ac3e3931bc \
- --hash=sha256:bfce63a9e7834b12b87c64d6b155fdd9b3b96191b6bd334bf37db7ff1fe457f2 \
- --hash=sha256:c011a4149cfbcf9f03994ec2edffcb8b1dc2d2aede7ca243746df97a5d41ce48 \
- --hash=sha256:c9c804664ebe8f83a211cace637506669e7890fec1b4195b505c214e50dd4eb7 \
- --hash=sha256:ca379055a47383d02a5400cb0d110cef0a776fc644cda797db0c5696cfd7e18e \
- --hash=sha256:cb0932dc158471523c9637e807d9bfb93e06a95cbf010f1a38b98623b929ef2b \
- --hash=sha256:cd0f502fe016460680cd20aaa5a76d241d6f35a1c3350c474bac1273803893fa \
- --hash=sha256:ceb01949af7121f9fc39f7d27f91be8546f3fb112c608bc4029aef0bab86a2a5 \
- --hash=sha256:d080e0a5eb2529460b30190fcfcc4199bd7f827663f858a226a81bc27beaa97e \
- --hash=sha256:dd15ff04ffd7e05ffcb7fe79f1b98041b8ea30ae9234aed2a9168b5797c3effb \
- --hash=sha256:df0be2b576a7abbf737b1575f048c23fb1d769f267ec4358296f31c2479db8f9 \
- --hash=sha256:e09031c87a1e51556fdcb46e5bd4f59dfb743061cf93c4d6831bf894f125eb57 \
- --hash=sha256:e4dd52d80b8c83fdce44e12478ad2e85c64ea965e75d66dbeafb0a3e77308fcc \
- --hash=sha256:fec21693218efe39aa7f8599346e90c705afa52c5b31ae019b2e57e8f6542bb2
- # via jinja2
-more-itertools==9.1.0 \
- --hash=sha256:cabaa341ad0389ea83c17a94566a53ae4c9d07349861ecb14dc6d0345cf9ac5d \
- --hash=sha256:d2bc7f02446e86a68911e58ded76d6561eea00cddfb2a91e7019bbb586c799f3
- # via jaraco-classes
-packaging==23.1 \
- --hash=sha256:994793af429502c4ea2ebf6bf664629d07c1a9fe974af92966e4b8d2df7edc61 \
- --hash=sha256:a392980d2b6cffa644431898be54b0045151319d1e7ec34f0cfed48767dd334f
- # via gcp-releasetool
-protobuf==3.20.3 \
- --hash=sha256:03038ac1cfbc41aa21f6afcbcd357281d7521b4157926f30ebecc8d4ea59dcb7 \
- --hash=sha256:28545383d61f55b57cf4df63eebd9827754fd2dc25f80c5253f9184235db242c \
- --hash=sha256:2e3427429c9cffebf259491be0af70189607f365c2f41c7c3764af6f337105f2 \
- --hash=sha256:398a9e0c3eaceb34ec1aee71894ca3299605fa8e761544934378bbc6c97de23b \
- --hash=sha256:44246bab5dd4b7fbd3c0c80b6f16686808fab0e4aca819ade6e8d294a29c7050 \
- --hash=sha256:447d43819997825d4e71bf5769d869b968ce96848b6479397e29fc24c4a5dfe9 \
- --hash=sha256:67a3598f0a2dcbc58d02dd1928544e7d88f764b47d4a286202913f0b2801c2e7 \
- --hash=sha256:74480f79a023f90dc6e18febbf7b8bac7508420f2006fabd512013c0c238f454 \
- --hash=sha256:819559cafa1a373b7096a482b504ae8a857c89593cf3a25af743ac9ecbd23480 \
- --hash=sha256:899dc660cd599d7352d6f10d83c95df430a38b410c1b66b407a6b29265d66469 \
- --hash=sha256:8c0c984a1b8fef4086329ff8dd19ac77576b384079247c770f29cc8ce3afa06c \
- --hash=sha256:9aae4406ea63d825636cc11ffb34ad3379335803216ee3a856787bcf5ccc751e \
- --hash=sha256:a7ca6d488aa8ff7f329d4c545b2dbad8ac31464f1d8b1c87ad1346717731e4db \
- --hash=sha256:b6cc7ba72a8850621bfec987cb72623e703b7fe2b9127a161ce61e61558ad905 \
- --hash=sha256:bf01b5720be110540be4286e791db73f84a2b721072a3711efff6c324cdf074b \
- --hash=sha256:c02ce36ec760252242a33967d51c289fd0e1c0e6e5cc9397e2279177716add86 \
- --hash=sha256:d9e4432ff660d67d775c66ac42a67cf2453c27cb4d738fc22cb53b5d84c135d4 \
- --hash=sha256:daa564862dd0d39c00f8086f88700fdbe8bc717e993a21e90711acfed02f2402 \
- --hash=sha256:de78575669dddf6099a8a0f46a27e82a1783c557ccc38ee620ed8cc96d3be7d7 \
- --hash=sha256:e64857f395505ebf3d2569935506ae0dfc4a15cb80dc25261176c784662cdcc4 \
- --hash=sha256:f4bd856d702e5b0d96a00ec6b307b0f51c1982c2bf9c0052cf9019e9a544ba99 \
- --hash=sha256:f4c42102bc82a51108e449cbb32b19b180022941c727bac0cfd50170341f16ee
- # via
- # gcp-docuploader
- # gcp-releasetool
- # google-api-core
- # googleapis-common-protos
-pyasn1==0.5.0 \
- --hash=sha256:87a2121042a1ac9358cabcaf1d07680ff97ee6404333bacca15f76aa8ad01a57 \
- --hash=sha256:97b7290ca68e62a832558ec3976f15cbf911bf5d7c7039d8b861c2a0ece69fde
- # via
- # pyasn1-modules
- # rsa
-pyasn1-modules==0.3.0 \
- --hash=sha256:5bd01446b736eb9d31512a30d46c1ac3395d676c6f3cafa4c03eb54b9925631c \
- --hash=sha256:d3ccd6ed470d9ffbc716be08bd90efbd44d0734bc9303818f7336070984a162d
- # via google-auth
-pycparser==2.21 \
- --hash=sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9 \
- --hash=sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206
- # via cffi
-pyjwt==2.7.0 \
- --hash=sha256:ba2b425b15ad5ef12f200dc67dd56af4e26de2331f965c5439994dad075876e1 \
- --hash=sha256:bd6ca4a3c4285c1a2d4349e5a035fdf8fb94e04ccd0fcbe6ba289dae9cc3e074
- # via gcp-releasetool
-pyperclip==1.8.2 \
- --hash=sha256:105254a8b04934f0bc84e9c24eb360a591aaf6535c9def5f29d92af107a9bf57
- # via gcp-releasetool
-python-dateutil==2.8.2 \
- --hash=sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86 \
- --hash=sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9
- # via gcp-releasetool
-requests==2.31.0 \
- --hash=sha256:58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f \
- --hash=sha256:942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1
- # via
- # gcp-releasetool
- # google-api-core
- # google-cloud-storage
-rsa==4.9 \
- --hash=sha256:90260d9058e514786967344d0ef75fa8727eed8a7d2e43ce9f4bcf1b536174f7 \
- --hash=sha256:e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21
- # via google-auth
-secretstorage==3.3.3 \
- --hash=sha256:2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77 \
- --hash=sha256:f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99
- # via keyring
-six==1.16.0 \
- --hash=sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926 \
- --hash=sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254
- # via
- # gcp-docuploader
- # google-auth
- # python-dateutil
-typing-extensions==4.7.1 \
- --hash=sha256:440d5dd3af93b060174bf433bccd69b0babc3b15b1a8dca43789fd7f61514b36 \
- --hash=sha256:b75ddc264f0ba5615db7ba217daeb99701ad295353c45f9e95963337ceeeffb2
- # via -r requirements.in
-urllib3==1.26.18 \
- --hash=sha256:34b97092d7e0a3a8cf7cd10e386f401b3737364026c45e622aa02903dffe0f07 \
- --hash=sha256:f8ecc1bba5667413457c529ab955bf8c67b45db799d159066261719e328580a0
- # via
- # google-auth
- # requests
-wheel==0.40.0 \
- --hash=sha256:cd1196f3faee2b31968d626e1731c94f99cbdb67cf5a46e4f5656cbee7738873 \
- --hash=sha256:d236b20e7cb522daf2390fa84c55eea81c5c30190f90f29ae2ca1ad8355bf247
- # via -r requirements.in
-zipp==3.16.1 \
- --hash=sha256:0b37c326d826d5ca35f2b9685cd750292740774ef16190008b00a0227c256fe0 \
- --hash=sha256:857b158da2cbf427b376da1c24fd11faecbac5a4ac7523c3607f8a01f94c2ec0
- # via importlib-metadata
-
-# WARNING: The following packages were not pinned, but pip requires them to be
-# pinned when the requirements file includes hashes and the requirement is not
-# satisfied by a package already installed. Consider using the --allow-unsafe flag.
-# setuptools
diff --git a/owlbot.py b/owlbot.py
index 7a89db8ff..490004d0b 100644
--- a/owlbot.py
+++ b/owlbot.py
@@ -23,4 +23,6 @@
'codecov.yaml',
'renovate.json',
'.kokoro/build.sh'
+ '.kokoro/requirements.in',
+ '.kokoro/requirements.txt'
])
\ No newline at end of file
From 16d79364f5845ac82084f97eff082ed07c69c57f Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Wed, 31 Jan 2024 11:26:48 -0500
Subject: [PATCH 187/393] chore: adjust renovate bot configs to update the
sdk-platform-java-config artifact (#1921) (#3107)
chore: update renovate bot configs to update the sdk-platform-java-config artifact
Source-Link: https://github.com/googleapis/synthtool/commit/d7828c02a5b1aeb8dcf3aa6c55f8fdf407a0156f
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:0d1bb26a1a99ae0456176bf891b8490e9aab424a5cb4e4d301d9703c4dc43b58
Co-authored-by: Owl Bot
---
.github/.OwlBot.lock.yaml | 4 ++--
README.md | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index dc05a7276..bf48c82da 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,5 +13,5 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
- digest: sha256:a6aa751984f1e905c3ae5a3aac78fc7b68210626ce91487dc7ff4f0a06f010cc
-# created: 2024-01-22T14:14:20.913785597Z
+ digest: sha256:0d1bb26a1a99ae0456176bf891b8490e9aab424a5cb4e4d301d9703c4dc43b58
+# created: 2024-01-30T19:46:55.029238294Z
diff --git a/README.md b/README.md
index 7a3ab38df..4705d64a0 100644
--- a/README.md
+++ b/README.md
@@ -53,7 +53,7 @@ If you are using Maven without the BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:
```Groovy
-implementation platform('com.google.cloud:libraries-bom:26.30.0')
+implementation platform('com.google.cloud:libraries-bom:26.31.0')
implementation 'com.google.cloud:google-cloud-bigquery'
```
From 3f8e8d1f9477aed3a14bccf021d7ff982463022c Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 2 Feb 2024 17:37:15 +0100
Subject: [PATCH 188/393] deps: update dependency
org.graalvm.buildtools:junit-platform-native to v0.10.0 (#3110)
---
samples/native-image-sample/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index df62de7dc..983e1f56a 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -99,7 +99,7 @@
org.graalvm.buildtools
junit-platform-native
- 0.9.28
+ 0.10.0
test
From 5ad778c18130c33e7532d0bd3193053518ca047a Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 2 Feb 2024 19:03:19 +0100
Subject: [PATCH 189/393] deps: update dependency
com.google.cloud:google-cloud-shared-dependencies to v3.24.0 (#3109)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 6cc61a091..3e2930956 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,7 +55,7 @@
github
google-cloud-bigquery-parent
v2-rev20240124-2.0.0
- 3.23.0
+ 3.24.0
15.0.0
From 2858e96807190d995d9d682e056d90821da11b7a Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 2 Feb 2024 19:44:21 +0100
Subject: [PATCH 190/393] deps: update dependency
org.graalvm.buildtools:native-maven-plugin to v0.10.0 (#3111)
---
samples/native-image-sample/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index 983e1f56a..3975d227c 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -121,7 +121,7 @@
org.graalvm.buildtools
native-maven-plugin
- 0.9.28
+ 0.10.0
true
com.example.bigquery.NativeImageBigquerySample
From 29535e7f82c4ce116e363c693a6d84be07ed5f50 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Fri, 2 Feb 2024 20:50:39 +0000
Subject: [PATCH 191/393] chore(main): release 2.37.1-SNAPSHOT (#3100)
:robot: I have created a release *beep* *boop*
---
### Updating meta-information for bleeding-edge SNAPSHOT release.
---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
---
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 54c64e8e4..dbe402101 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.37.0
+ 2.37.1-SNAPSHOT
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index c59d4be0d..7ce9e586a 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.37.0
+ 2.37.1-SNAPSHOT
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.37.0
+ 2.37.1-SNAPSHOT
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 3e2930956..c7a3c83f6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.37.0
+ 2.37.1-SNAPSHOT
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.37.0
+ 2.37.1-SNAPSHOT
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 2b6035287..2d22c8ec1 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.37.0
+ 2.37.1-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index fc69e9146..7bb7cb270 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.37.0:2.37.0
\ No newline at end of file
+google-cloud-bigquery:2.37.0:2.37.1-SNAPSHOT
\ No newline at end of file
From 01f04059ab119da759536426938c1069906c8be4 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 5 Feb 2024 17:11:13 +0100
Subject: [PATCH 192/393] deps: update github/codeql-action action to v2.24.0
(#3114)
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 460ae63c4..6aa911edf 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@2f93e4319b2f04a2efc38fa7f78bd681bc3f7b2f # v2.23.2
+ uses: github/codeql-action/upload-sarif@dc021d495cb77b369e4d9d04a501700fd83b8c51 # v2.24.0
with:
sarif_file: results.sarif
From d7dec83d288e6b65503d38b7da41f91cb44294d4 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 5 Feb 2024 17:12:02 +0100
Subject: [PATCH 193/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquerystorage-bom to v3.1.0 (#3117)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index c7a3c83f6..70b4ed3d7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -73,7 +73,7 @@
com.google.cloud
google-cloud-bigquerystorage-bom
- 3.0.1
+ 3.1.0
pom
import
From 4b4fdd8ebc324d2bc48a9f78347247f4f6c2e424 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 5 Feb 2024 17:15:00 +0100
Subject: [PATCH 194/393] deps: update dependency
org.junit.vintage:junit-vintage-engine to v5.10.2 (#3119)
---
samples/native-image-sample/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index 3975d227c..e1e6ad55e 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -93,7 +93,7 @@
org.junit.vintage
junit-vintage-engine
- 5.10.1
+ 5.10.2
test
From 667ed38645fdc1f32b2b101cf2db95bf8ef1561a Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 5 Feb 2024 17:36:15 +0100
Subject: [PATCH 195/393] test(deps): update dependency com.google.truth:truth
to v1.4.0 (#3115)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.truth:truth](https://togithub.com/google/truth) | `1.3.0` -> `1.4.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.truth:truth/1.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.truth:truth/1.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.truth:truth/1.3.0/1.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.truth:truth/1.3.0/1.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
google/truth (com.google.truth:truth)
### [`v1.4.0`](https://togithub.com/google/truth/releases/tag/v1.4.0): 1.4.0
In this release, our assertions on Java 8 types continue to move from the `Truth8` class to the main `Truth` class. This change should not break compatibility for any supported JDK or Android version, even users who test under old versions of Android without [API desugaring](https://developer.android.com/studio/write/java8-support#library-desugaring). Additionally, we will never break binary compatibility, though some users will have to make changes to their source code in order for it to compile against newer versions.
This release is likely to lead to more **build failures** than [1.3.0](https://togithub.com/google/truth/releases/tag/v1.3.0) did. However, those failures should be **straightforward to fix**.
#### Example build failure
Foo.java:152: error: reference to assertThat is ambiguous
assertThat(repo.findFileWithName("foo")).isNull();
^
both method assertThat(@org.jspecify.nullness.Nullable Path) in Truth8 and method assertThat(@org.jspecify.nullness.Nullable Path) in Truth match
#### Simplest upgrade strategy (if you can update all your code atomically in the same commit as the Truth upgrade)
In the same commit:
1. Upgrade Truth to 1.4.0.
2. Replace `import static com.google.common.truth.Truth8.assertThat;` with `import static com.google.common.truth.Truth.assertThat;`.
- If you use Kotlin, replace `import com.google.common.truth.Truth8.assertThat` with `import com.google.common.truth.Truth.assertThat`.
3. Replace `import com.google.common.truth.Truth8;` with `import com.google.common.truth.Truth;`.
- again, similarly for Kotlin if needed
4. Replace remaining references to `Truth8` with references to `Truth`.
- For example, replace `Truth8.assertThat(optional).isPresent()` with `Truth.assertThat(optional).isPresent()`.
If you're feeling lucky, you can try this one-liner for the code updates:
```sh
git grep -l Truth8 | xargs perl -pi -e 's/import static com.google.common.truth.Truth8.assertThat;/import static com.google.common.truth.Truth.assertThat;/g; s/import com.google.common.truth.Truth8.assertThat/import com.google.common.truth.Truth.assertThat/g; s/import com.google.common.truth.Truth8/import com.google.common.truth.Truth/g; s/\bTruth8[.]/Truth./g;'
```
After that process, it is possible that you'll still see build errors from ambiguous usages of `assertThat` static imports. If so, you can find a workaround in the section about overload ambiguity in the release notes for [1.3.0](https://togithub.com/google/truth/releases/tag/v1.3.0). Alternatively, you can wait to upgrade until after a future Truth release, which will eliminate the ambiguity by changing the signatures of some `Truth.assertThat` overloads.
#### Incremental upgrade strategy
If you have a very large repo or you have other reasons to prefer to upgrade incrementally, you can use the approach that we used inside Google. Roughly, that approach was:
1. Make the optional changes discussed in the release notes for [1.3.0](https://togithub.com/google/truth/releases/tag/v1.3.0).
2. For any remaining calls to `Truth8.assertThat`, change them to *avoid* static import.
- That is, replace `assertThat(optional).isPresent()` with `Truth8.assertThat(optional).isPresent()`.
3. Upgrade Truth to 1.4.0.
4. Optionally replace references to `Truth8` with references to `Truth` (including restoring static imports if desired), as discussed in section about the simple upgrade strategy above.
#### Optional additional changes
- If you use `assertWithMessage(...).about(intStreams()).that(...)`, `expect.about(optionalLongs()).that(...)`, or similar, you can remove your call to `about`. This change will never be necessary; it is just a simplification.
- This is similar to a previous optional change from [1.3.0](https://togithub.com/google/truth/releases/tag/v1.3.0), except that 1.3.0 solved this problem for `streams` and `optionals`, whereas 1.4.0 solves it for the other `Truth8` types.
#### For help
Please feel welcome to [open an issue](https://togithub.com/google/truth/issues/new) to report problems or request help.
#### Changelog
- Added the remaining `Truth8.assertThat` overloads to the main `Truth` class. ([`9be8e77`](https://togithub.com/google/truth/commit/9be8e774c), [`1f81827`](https://togithub.com/google/truth/commit/1f81827f1))
- Added more `that` overloads to make it possible to write type-specific assertions when using the remaining Java 8 types. ([`7c65fc6`](https://togithub.com/google/truth/commit/7c65fc611))
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-bigquery).
---
pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/native-image-sample/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/pom.xml b/pom.xml
index 70b4ed3d7..d852b7960 100644
--- a/pom.xml
+++ b/pom.xml
@@ -137,7 +137,7 @@
com.google.truth
truth
- 1.3.0
+ 1.4.0
test
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 917e48741..af05d99d3 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -81,7 +81,7 @@
com.google.truth
truth
- 1.3.0
+ 1.4.0
test
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index e1e6ad55e..a8872d9ce 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -62,7 +62,7 @@
com.google.truth
truth
- 1.3.0
+ 1.4.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 2d22c8ec1..51fef3507 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -79,7 +79,7 @@
com.google.truth
truth
- 1.3.0
+ 1.4.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 0c5231406..bdd619a7b 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -97,7 +97,7 @@
com.google.truth
truth
- 1.3.0
+ 1.4.0
test
From 3abdc70890c3f5c396055d7d34fc4fe18aef7371 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 6 Feb 2024 17:00:08 +0100
Subject: [PATCH 196/393] deps: update actions/upload-artifact action to v4.3.1
(#3121)
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 6aa911edf..448676928 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -59,7 +59,7 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
- uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
+ uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: SARIF file
path: results.sarif
From 2156f023b4ab95bc7ec669545b5709317555fdac Mon Sep 17 00:00:00 2001
From: Phong Chuong <147636638+PhongChuong@users.noreply.github.com>
Date: Tue, 6 Feb 2024 11:12:25 -0500
Subject: [PATCH 197/393] Feat: Add queryId to TableResult (#3106)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* Feat: Add queryId to TableResult
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* Feat: Add queryId to TableResult
* Feat: Add IT for TableResult with JobId and QueryId.
* Feat: Add IT for TableResult with JobId and QueryId.
---------
Co-authored-by: Owl Bot
---
.../clirr-ignored-differences.xml | 13 ++++
.../google/cloud/bigquery/BigQueryImpl.java | 8 ++-
.../cloud/bigquery/EmptyTableResult.java | 2 +-
.../google/cloud/bigquery/TableResult.java | 19 +++++-
.../com/google/cloud/bigquery/JobTest.java | 2 +-
.../cloud/bigquery/SerializationTest.java | 2 +-
.../cloud/bigquery/TableResultTest.java | 4 +-
.../com/google/cloud/bigquery/TableTest.java | 9 +--
.../cloud/bigquery/it/ITBigQueryTest.java | 59 ++++++++++++++++---
9 files changed, 95 insertions(+), 23 deletions(-)
diff --git a/google-cloud-bigquery/clirr-ignored-differences.xml b/google-cloud-bigquery/clirr-ignored-differences.xml
index 9c69fd6a6..75441b537 100644
--- a/google-cloud-bigquery/clirr-ignored-differences.xml
+++ b/google-cloud-bigquery/clirr-ignored-differences.xml
@@ -14,6 +14,19 @@
com.google.api.services.bigquery.model.GetQueryResultsResponse getQueryResultsWithRowLimit(java.lang.String, java.lang.String, java.lang.String, java.lang.Integer)
getQueryResultsWithRowLimit is just used by ConnectionImpl at the moment so it should be fine to update the signature instead of writing an overloaded method
+
+ 7004
+ com/google/cloud/bigquery/TableResult*
+ *TableResult(*)
+ It should be fine to update TableResult constructors since it is used to return results to the user and users should not directly construct TableResult objects
+
+
+ 7005
+ com/google/cloud/bigquery/TableResult*
+ *TableResult(*)
+ *TableResult(*)
+ It should be fine to update TableResult constructors since it is used to return results to the user and users should not directly construct TableResult objects
+
7013
com/google/cloud/bigquery/ExternalTableDefinition*
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 dcbcd19b0..30fd24f93 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
@@ -1156,7 +1156,7 @@ public TableResult listTableData(
public TableResult listTableData(TableId tableId, Schema schema, TableDataListOption... options) {
Tuple extends Page, Long> data =
listTableData(tableId, schema, getOptions(), optionMap(options));
- return new TableResult(schema, data.y(), data.x());
+ return new TableResult(schema, data.y(), data.x(), null);
}
private static Tuple extends Page, Long> listTableData(
@@ -1410,7 +1410,8 @@ public com.google.api.services.bigquery.model.QueryResponse call() {
// cache first page of result
transformTableData(results.getRows(), schema)),
// Return the JobID of the successful job
- jobId);
+ jobId,
+ results.getQueryId());
}
// only 1 page of result
return new TableResult(
@@ -1421,7 +1422,8 @@ public com.google.api.services.bigquery.model.QueryResponse call() {
null,
transformTableData(results.getRows(), schema)),
// Return the JobID of the successful job
- results.getJobReference() != null ? JobId.fromPb(results.getJobReference()) : null);
+ results.getJobReference() != null ? JobId.fromPb(results.getJobReference()) : null,
+ results.getQueryId());
}
@Override
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/EmptyTableResult.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/EmptyTableResult.java
index 7cb5e1932..a5c6c4785 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/EmptyTableResult.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/EmptyTableResult.java
@@ -27,6 +27,6 @@ public class EmptyTableResult extends TableResult {
/** An empty {@code TableResult} to avoid making API requests to unlistable tables. */
@InternalApi("Exposed for testing")
public EmptyTableResult(@Nullable Schema schema) {
- super(schema, 0, new PageImpl(null, "", null));
+ super(schema, 0, new PageImpl(null, "", null), null);
}
}
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableResult.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableResult.java
index 325e1fd0b..1631d3bd5 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableResult.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableResult.java
@@ -37,6 +37,8 @@ public class TableResult implements Page, Serializable {
private final Page pageNoSchema;
@Nullable private JobId jobId = null;
+ @Nullable private final String queryId;
+
// package-private so job id is not set outside the package.
void setJobId(@Nullable JobId jobId) {
this.jobId = jobId;
@@ -46,24 +48,35 @@ public JobId getJobId() {
return jobId;
}
+ public String getQueryId() {
+ return queryId;
+ }
+
/**
* If {@code schema} is non-null, {@code TableResult} adds the schema to {@code FieldValueList}s
* when iterating through them. {@code pageNoSchema} must not be null.
*/
@InternalApi("Exposed for testing")
- public TableResult(Schema schema, long totalRows, Page pageNoSchema) {
+ public TableResult(
+ Schema schema, long totalRows, Page pageNoSchema, String queryId) {
this.schema = schema;
this.totalRows = totalRows;
this.pageNoSchema = checkNotNull(pageNoSchema);
+ this.queryId = queryId;
}
@InternalApi("Exposed for testing")
public TableResult(
- Schema schema, long totalRows, Page pageNoSchema, JobId jobId) {
+ Schema schema,
+ long totalRows,
+ Page pageNoSchema,
+ JobId jobId,
+ String queryId) {
this.schema = schema;
this.totalRows = totalRows;
this.pageNoSchema = checkNotNull(pageNoSchema);
this.jobId = jobId;
+ this.queryId = queryId;
}
/** Returns the schema of the results. Null if the schema is not supplied. */
@@ -92,7 +105,7 @@ public String getNextPageToken() {
@Override
public TableResult getNextPage() {
if (pageNoSchema.hasNextPage()) {
- return new TableResult(schema, totalRows, pageNoSchema.getNextPage());
+ return new TableResult(schema, totalRows, pageNoSchema.getNextPage(), queryId);
}
return null;
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobTest.java
index b4b17b7d9..08c4137d6 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobTest.java
@@ -309,7 +309,7 @@ public void testWaitForAndGetQueryResults() throws InterruptedException {
Job completedJob =
expectedJob.toBuilder().setStatus(new JobStatus(JobStatus.State.RUNNING)).build();
Page singlePage = Pages.empty();
- TableResult result = new TableResult(Schema.of(), 1, singlePage);
+ TableResult result = new TableResult(Schema.of(), 1, singlePage, null);
QueryResponse completedQuery =
QueryResponse.newBuilder()
.setCompleted(true)
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/SerializationTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/SerializationTest.java
index 0b0cd0207..d31b282e7 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/SerializationTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/SerializationTest.java
@@ -206,7 +206,7 @@ public class SerializationTest extends BaseSerializationTest {
private static final FieldValue FIELD_VALUE =
FieldValue.of(FieldValue.Attribute.PRIMITIVE, "value");
private static final TableResult TABLE_RESULT =
- new TableResult(Schema.of(), 0L, new PageImpl(null, "", ImmutableList.of()));
+ new TableResult(Schema.of(), 0L, new PageImpl(null, "", ImmutableList.of()), null);
private static final BigQuery BIGQUERY =
BigQueryOptions.newBuilder().setProjectId("p1").build().getService();
private static final Dataset DATASET =
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableResultTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableResultTest.java
index 35a167af1..89b7d6837 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableResultTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableResultTest.java
@@ -53,7 +53,7 @@ private static FieldValueList newFieldValueList(String s) {
@Test
public void testNullSchema() {
- TableResult result = new TableResult(null, 3, INNER_PAGE_0);
+ TableResult result = new TableResult(null, 3, INNER_PAGE_0, null);
assertThat(result.getSchema()).isNull();
assertThat(result.hasNextPage()).isTrue();
assertThat(result.getNextPageToken()).isNotNull();
@@ -75,7 +75,7 @@ public void testNullSchema() {
@Test
public void testSchema() {
- TableResult result = new TableResult(SCHEMA, 3, INNER_PAGE_0);
+ TableResult result = new TableResult(SCHEMA, 3, INNER_PAGE_0, null);
assertThat(result.getSchema()).isEqualTo(SCHEMA);
assertThat(result.hasNextPage()).isTrue();
assertThat(result.getNextPageToken()).isNotNull();
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableTest.java
index b93ed770b..9aa195331 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableTest.java
@@ -248,9 +248,10 @@ public void testInsertComplete() {
@Test
public void testList() {
Page page = new PageImpl<>(null, "c", ROWS);
- when(bigquery.listTableData(TABLE_ID1)).thenReturn(new TableResult(null, ROWS.size(), page));
+ when(bigquery.listTableData(TABLE_ID1))
+ .thenReturn(new TableResult(null, ROWS.size(), page, null));
when(bigquery.listTableData(TABLE_ID1, SCHEMA))
- .thenReturn(new TableResult(SCHEMA, ROWS.size(), page));
+ .thenReturn(new TableResult(SCHEMA, ROWS.size(), page, null));
Page dataPage = table.list();
assertThat(dataPage.getValues()).containsExactlyElementsIn(ROWS).inOrder();
dataPage = table.list(SCHEMA);
@@ -263,9 +264,9 @@ public void testList() {
public void testListWithOptions() {
Page page = new PageImpl<>(null, "c", ROWS);
when(bigquery.listTableData(TABLE_ID1, BigQuery.TableDataListOption.pageSize(10L)))
- .thenReturn(new TableResult(null, ROWS.size(), page));
+ .thenReturn(new TableResult(null, ROWS.size(), page, null));
when(bigquery.listTableData(TABLE_ID1, SCHEMA, BigQuery.TableDataListOption.pageSize(10L)))
- .thenReturn(new TableResult(SCHEMA, ROWS.size(), page));
+ .thenReturn(new TableResult(SCHEMA, ROWS.size(), page, null));
Page dataPage = table.list(BigQuery.TableDataListOption.pageSize(10L));
assertThat(dataPage.getValues()).containsExactlyElementsIn(ROWS).inOrder();
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
index ba30ea0d4..8b5a45913 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
@@ -6312,21 +6312,29 @@ public void testStatelessQueries() throws InterruptedException {
RemoteBigQueryHelper bigqueryHelper = RemoteBigQueryHelper.create();
BigQuery bigQuery = bigqueryHelper.getOptions().getService();
- // simulate setting the QUERY_PREVIEW_ENABLED environment variable
+ // Simulate setting the QUERY_PREVIEW_ENABLED environment variable.
bigQuery.getOptions().setQueryPreviewEnabled("TRUE");
- assertNull(executeSimpleQuery(bigQuery).getJobId());
+ TableResult tableResult = executeSimpleQuery(bigQuery);
+ assertNotNull(tableResult.getQueryId());
+ assertNull(tableResult.getJobId());
- // the flag should be case-insensitive
+ // The flag should be case-insensitive.
bigQuery.getOptions().setQueryPreviewEnabled("tRuE");
- assertNull(executeSimpleQuery(bigQuery).getJobId());
+ tableResult = executeSimpleQuery(bigQuery);
+ assertNotNull(tableResult.getQueryId());
+ assertNull(tableResult.getJobId());
- // any other values won't enable optional job creation mode
+ // Any other values won't enable optional job creation mode.
bigQuery.getOptions().setQueryPreviewEnabled("test_value");
- assertNotNull(executeSimpleQuery(bigQuery).getJobId());
+ tableResult = executeSimpleQuery(bigQuery);
+ assertNotNull(tableResult.getQueryId());
+ assertNotNull(tableResult.getJobId());
- // reset the flag
+ // Reset the flag.
bigQuery.getOptions().setQueryPreviewEnabled(null);
- assertNotNull(executeSimpleQuery(bigQuery).getJobId());
+ tableResult = executeSimpleQuery(bigQuery);
+ assertNotNull(tableResult.getQueryId());
+ assertNotNull(tableResult.getJobId());
}
private TableResult executeSimpleQuery(BigQuery bigQuery) throws InterruptedException {
@@ -6336,6 +6344,41 @@ private TableResult executeSimpleQuery(BigQuery bigQuery) throws InterruptedExce
return result;
}
+ @Test
+ public void testTableResultJobIdAndQueryId() throws InterruptedException {
+ // For stateless queries, jobId and queryId are populated based on the following criteria:
+ // 1. For stateless queries, then queryId is populated.
+ // 2. For queries that fails the requirements to be stateless, then jobId is populated and
+ // queryId is not.
+ // 3. For explicitly created jobs, then jobId is populated and queryId is not populated.
+
+ // Test scenario 1.
+ // Create local BigQuery for test scenario 1 to not contaminate global test parameters.
+ RemoteBigQueryHelper bigqueryHelper = RemoteBigQueryHelper.create();
+ BigQuery bigQuery = bigqueryHelper.getOptions().getService();
+ // Simulate setting the QUERY_PREVIEW_ENABLED environment variable.
+ bigQuery.getOptions().setQueryPreviewEnabled("TRUE");
+ String query = "SELECT 1 as one";
+ QueryJobConfiguration configStateless = QueryJobConfiguration.newBuilder(query).build();
+ TableResult result = bigQuery.query(configStateless);
+ assertNull(result.getJobId());
+ assertNotNull(result.getQueryId());
+
+ // Test scenario 2 by failing stateless check by setting job timeout.
+ QueryJobConfiguration configQueryWithJob =
+ QueryJobConfiguration.newBuilder(query).setJobTimeoutMs(1L).build();
+ result = bigQuery.query(configQueryWithJob);
+ assertNotNull(result.getJobId());
+ assertNull(result.getQueryId());
+
+ // Test scenario 3.
+ QueryJobConfiguration configWithJob = QueryJobConfiguration.newBuilder(query).build();
+ Job job = bigQuery.create(JobInfo.of(JobId.of(), configWithJob));
+ result = job.getQueryResults();
+ assertNotNull(result.getJobId());
+ assertNull(result.getQueryId());
+ }
+
@Test
public void testStatelessQueriesWithLocation() throws Exception {
// This test validates BigQueryOption location is used for stateless query by verifying that the
From 5a82c854b6549c82c905eba4905378b59cc88af4 Mon Sep 17 00:00:00 2001
From: Phong Chuong <147636638+PhongChuong@users.noreply.github.com>
Date: Tue, 6 Feb 2024 12:16:09 -0500
Subject: [PATCH 198/393] Feat: Update universe domain exception error
code/message (#3113)
* Feat: Update universe domain exception error code/message
* Feat: Update universe domain exception error code/message
---
google-cloud-bigquery/pom.xml | 4 ++++
.../cloud/bigquery/spi/v2/HttpBigQueryRpc.java | 7 ++++++-
.../google/cloud/bigquery/it/ITBigQueryTest.java | 13 +++++++++++--
3 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 7ce9e586a..2bd74f8d3 100644
--- a/google-cloud-bigquery/pom.xml
+++ b/google-cloud-bigquery/pom.xml
@@ -50,6 +50,10 @@
org.checkerframework
checker-qual
+
+ com.google.auth
+ google-auth-library-credentials
+
com.google.auth
google-auth-library-oauth2-http
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java
index 841a790ee..dca129bfb 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java
@@ -19,6 +19,7 @@
import static java.net.HttpURLConnection.HTTP_CREATED;
import static java.net.HttpURLConnection.HTTP_NOT_FOUND;
import static java.net.HttpURLConnection.HTTP_OK;
+import static java.net.HttpURLConnection.HTTP_UNAUTHORIZED;
import com.google.api.client.http.ByteArrayContent;
import com.google.api.client.http.GenericUrl;
@@ -116,7 +117,11 @@ private static BigQueryException translate(IOException exception) {
private void validateRPC() throws BigQueryException, IOException {
if (!this.options.hasValidUniverseDomain()) {
- throw new BigQueryException(BigQueryException.UNKNOWN_CODE, "Invalid universe domain");
+ String errorMessage =
+ String.format(
+ "The configured universe domain %s does not match the universe domain found in the credentials %s. If you haven't configured the universe domain explicitly, `googleapis.com` is the default.",
+ this.options.getUniverseDomain(), this.options.getCredentials().getUniverseDomain());
+ throw new BigQueryException(HTTP_UNAUTHORIZED, errorMessage);
}
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
index 8b5a45913..7652e65a5 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
@@ -19,6 +19,7 @@
import static com.google.cloud.bigquery.JobStatus.State.DONE;
import static com.google.common.truth.Truth.assertThat;
import static java.lang.System.currentTimeMillis;
+import static java.net.HttpURLConnection.HTTP_UNAUTHORIZED;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
@@ -6445,8 +6446,12 @@ public void testUniverseDomainWithInvalidUniverseDomain() {
bigQuery.listDatasets("bigquery-public-data");
fail("RPCs to invalid universe domain should fail");
} catch (BigQueryException e) {
+ assertEquals(e.getCode(), HTTP_UNAUTHORIZED);
assertNotNull(e.getMessage());
- assertThat((e.getMessage().contains("Invalid universe domain"))).isTrue();
+ assertThat(
+ (e.getMessage()
+ .contains("does not match the universe domain found in the credentials")))
+ .isTrue();
}
}
@@ -6466,8 +6471,12 @@ public void testInvalidUniverseDomainWithMismatchCredentials() {
bigQuery.listDatasets("bigquery-public-data");
fail("RPCs to invalid universe domain should fail");
} catch (BigQueryException e) {
+ assertEquals(e.getCode(), HTTP_UNAUTHORIZED);
assertNotNull(e.getMessage());
- assertThat((e.getMessage().contains("Invalid universe domain"))).isTrue();
+ assertThat(
+ (e.getMessage()
+ .contains("does not match the universe domain found in the credentials")))
+ .isTrue();
}
}
From 36f9ebac25e2ccff9267603ea16d115ba5ce7976 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Wed, 7 Feb 2024 07:24:15 -0500
Subject: [PATCH 199/393] chore(main): release 2.37.1 (#3116)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
CHANGELOG.md | 20 ++++++++++++++++++++
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
6 files changed, 27 insertions(+), 7 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ea4a0271a..1a961cc3f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,25 @@
# Changelog
+## [2.37.1](https://github.com/googleapis/java-bigquery/compare/v2.37.0...v2.37.1) (2024-02-06)
+
+
+### Features
+
+* Add queryId to TableResult ([#3106](https://github.com/googleapis/java-bigquery/issues/3106)) ([2156f02](https://github.com/googleapis/java-bigquery/commit/2156f023b4ab95bc7ec669545b5709317555fdac))
+* Update universe domain exception error code/message ([#3113](https://github.com/googleapis/java-bigquery/issues/3113)) ([5a82c85](https://github.com/googleapis/java-bigquery/commit/5a82c854b6549c82c905eba4905378b59cc88af4))
+
+
+### Dependencies
+
+* Update actions/upload-artifact action to v4.3.1 ([#3121](https://github.com/googleapis/java-bigquery/issues/3121)) ([3abdc70](https://github.com/googleapis/java-bigquery/commit/3abdc70890c3f5c396055d7d34fc4fe18aef7371))
+* Update dependency com.google.apis:google-api-services-bigquery to v2-rev20240124-2.0.0 ([#3104](https://github.com/googleapis/java-bigquery/issues/3104)) ([6eff68e](https://github.com/googleapis/java-bigquery/commit/6eff68eb8c55162ca1cd2e915f3f60a87f584b35))
+* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.24.0 ([#3109](https://github.com/googleapis/java-bigquery/issues/3109)) ([5ad778c](https://github.com/googleapis/java-bigquery/commit/5ad778c18130c33e7532d0bd3193053518ca047a))
+* Update dependency org.graalvm.buildtools:junit-platform-native to v0.10.0 ([#3110](https://github.com/googleapis/java-bigquery/issues/3110)) ([3f8e8d1](https://github.com/googleapis/java-bigquery/commit/3f8e8d1f9477aed3a14bccf021d7ff982463022c))
+* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.0 ([#3111](https://github.com/googleapis/java-bigquery/issues/3111)) ([2858e96](https://github.com/googleapis/java-bigquery/commit/2858e96807190d995d9d682e056d90821da11b7a))
+* Update dependency org.junit.vintage:junit-vintage-engine to v5.10.2 ([#3119](https://github.com/googleapis/java-bigquery/issues/3119)) ([4b4fdd8](https://github.com/googleapis/java-bigquery/commit/4b4fdd8ebc324d2bc48a9f78347247f4f6c2e424))
+* Update github/codeql-action action to v2.23.2 ([#3102](https://github.com/googleapis/java-bigquery/issues/3102)) ([2cc545e](https://github.com/googleapis/java-bigquery/commit/2cc545ec1c0267fd9c33f3f1566f29d9a30f514e))
+* Update github/codeql-action action to v2.24.0 ([#3114](https://github.com/googleapis/java-bigquery/issues/3114)) ([01f0405](https://github.com/googleapis/java-bigquery/commit/01f04059ab119da759536426938c1069906c8be4))
+
## [2.37.0](https://github.com/googleapis/java-bigquery/compare/v2.36.0...v2.37.0) (2024-01-25)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index dbe402101..1cd278cec 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.37.1-SNAPSHOT
+ 2.37.1
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 2bd74f8d3..27294847a 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.37.1-SNAPSHOT
+ 2.37.1
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.37.1-SNAPSHOT
+ 2.37.1
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index d852b7960..22b2ce927 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.37.1-SNAPSHOT
+ 2.37.1
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.37.1-SNAPSHOT
+ 2.37.1
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 51fef3507..46a3041c2 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.37.1-SNAPSHOT
+ 2.37.1
diff --git a/versions.txt b/versions.txt
index 7bb7cb270..0eda01854 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.37.0:2.37.1-SNAPSHOT
\ No newline at end of file
+google-cloud-bigquery:2.37.1:2.37.1
\ No newline at end of file
From 88bdbe5d02ce8cfc79045042c4d1ba77664fbd59 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Wed, 7 Feb 2024 10:31:31 -0500
Subject: [PATCH 200/393] chore(main): release 2.37.2-SNAPSHOT (#3122)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 1cd278cec..62b803d03 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.37.1
+ 2.37.2-SNAPSHOT
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 27294847a..fe6b2d786 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.37.1
+ 2.37.2-SNAPSHOT
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.37.1
+ 2.37.2-SNAPSHOT
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 22b2ce927..63c7377a9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.37.1
+ 2.37.2-SNAPSHOT
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.37.1
+ 2.37.2-SNAPSHOT
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 46a3041c2..18f2ad1c9 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.37.1
+ 2.37.2-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index 0eda01854..760c94f7d 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.37.1:2.37.1
\ No newline at end of file
+google-cloud-bigquery:2.37.1:2.37.2-SNAPSHOT
\ No newline at end of file
From 74b8989739c653fdbd61599d9af4d566fc38be44 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 8 Feb 2024 16:50:39 +0100
Subject: [PATCH 201/393] test(deps): update dependency
com.google.cloud:google-cloud-storage to v2.33.0 (#3124)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* test(deps): update dependency com.google.cloud:google-cloud-storage to v2.33.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 6 +++---
pom.xml | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 4705d64a0..f26b3e589 100644
--- a/README.md
+++ b/README.md
@@ -60,13 +60,13 @@ implementation 'com.google.cloud:google-cloud-bigquery'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigquery:2.37.0'
+implementation 'com.google.cloud:google-cloud-bigquery:2.37.1'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.37.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.37.1"
```
@@ -351,7 +351,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquery/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.37.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.37.1
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/pom.xml b/pom.xml
index 63c7377a9..a8e8c64cf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -155,7 +155,7 @@
com.google.cloud
google-cloud-storage
- 2.32.1
+ 2.33.0
test
From 2276faa8cab91f3629edeb8b0eb459c7860a5438 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 8 Feb 2024 17:14:15 +0100
Subject: [PATCH 202/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquery to v2.37.1 (#3123)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-bigquery](https://togithub.com/googleapis/java-bigquery) | `2.37.0` -> `2.37.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-bigquery/2.37.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-bigquery/2.37.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-bigquery/2.37.0/2.37.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-bigquery/2.37.0/2.37.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
googleapis/java-bigquery (com.google.cloud:google-cloud-bigquery)
### [`v2.37.1`](https://togithub.com/googleapis/java-bigquery/blob/HEAD/CHANGELOG.md#2371-2024-02-06)
[Compare Source](https://togithub.com/googleapis/java-bigquery/compare/v2.37.0...v2.37.1)
##### Features
- Add queryId to TableResult ([#3106](https://togithub.com/googleapis/java-bigquery/issues/3106)) ([2156f02](https://togithub.com/googleapis/java-bigquery/commit/2156f023b4ab95bc7ec669545b5709317555fdac))
- Update universe domain exception error code/message ([#3113](https://togithub.com/googleapis/java-bigquery/issues/3113)) ([5a82c85](https://togithub.com/googleapis/java-bigquery/commit/5a82c854b6549c82c905eba4905378b59cc88af4))
##### Dependencies
- Update actions/upload-artifact action to v4.3.1 ([#3121](https://togithub.com/googleapis/java-bigquery/issues/3121)) ([3abdc70](https://togithub.com/googleapis/java-bigquery/commit/3abdc70890c3f5c396055d7d34fc4fe18aef7371))
- Update dependency com.google.apis:google-api-services-bigquery to v2-rev20240124-2.0.0 ([#3104](https://togithub.com/googleapis/java-bigquery/issues/3104)) ([6eff68e](https://togithub.com/googleapis/java-bigquery/commit/6eff68eb8c55162ca1cd2e915f3f60a87f584b35))
- Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.24.0 ([#3109](https://togithub.com/googleapis/java-bigquery/issues/3109)) ([5ad778c](https://togithub.com/googleapis/java-bigquery/commit/5ad778c18130c33e7532d0bd3193053518ca047a))
- Update dependency org.graalvm.buildtools:junit-platform-native to v0.10.0 ([#3110](https://togithub.com/googleapis/java-bigquery/issues/3110)) ([3f8e8d1](https://togithub.com/googleapis/java-bigquery/commit/3f8e8d1f9477aed3a14bccf021d7ff982463022c))
- Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.0 ([#3111](https://togithub.com/googleapis/java-bigquery/issues/3111)) ([2858e96](https://togithub.com/googleapis/java-bigquery/commit/2858e96807190d995d9d682e056d90821da11b7a))
- Update dependency org.junit.vintage:junit-vintage-engine to v5.10.2 ([#3119](https://togithub.com/googleapis/java-bigquery/issues/3119)) ([4b4fdd8](https://togithub.com/googleapis/java-bigquery/commit/4b4fdd8ebc324d2bc48a9f78347247f4f6c2e424))
- Update github/codeql-action action to v2.23.2 ([#3102](https://togithub.com/googleapis/java-bigquery/issues/3102)) ([2cc545e](https://togithub.com/googleapis/java-bigquery/commit/2cc545ec1c0267fd9c33f3f1566f29d9a30f514e))
- Update github/codeql-action action to v2.24.0 ([#3114](https://togithub.com/googleapis/java-bigquery/issues/3114)) ([01f0405](https://togithub.com/googleapis/java-bigquery/commit/01f04059ab119da759536426938c1069906c8be4))
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-bigquery).
---
README.md | 2 +-
samples/install-without-bom/pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index f26b3e589..5be562a38 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquery
- 2.37.0
+ 2.37.1
```
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index af05d99d3..feb865daa 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -45,7 +45,7 @@
com.google.cloud
google-cloud-bigquery
- 2.37.0
+ 2.37.1
From 5e2841988b223bc8ac775ed2b4d38e2c26b2815b Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 9 Feb 2024 13:29:43 +0100
Subject: [PATCH 203/393] deps: update dependency
com.google.apis:google-api-services-bigquery to v2-rev20240203-2.0.0 (#3126)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index a8e8c64cf..90f4785e7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,7 +54,7 @@
UTF-8
github
google-cloud-bigquery-parent
- v2-rev20240124-2.0.0
+ v2-rev20240203-2.0.0
3.24.0
15.0.0
From e3d32269a73c32de6f13fc9e753e741a9aa49dba Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 12 Feb 2024 13:36:30 +0100
Subject: [PATCH 204/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigqueryconnection to v2.37.0 (#3131)
---
pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 90f4785e7..deb304c63 100644
--- a/pom.xml
+++ b/pom.xml
@@ -161,7 +161,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.36.0
+ 2.37.0
test
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index feb865daa..fdc172e59 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -69,7 +69,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.36.0
+ 2.37.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 18f2ad1c9..e8b82cc04 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -67,7 +67,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.36.0
+ 2.37.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index bdd619a7b..6471a600c 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -85,7 +85,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.36.0
+ 2.37.0
test
From 9ab79ec14d661e79f152568ff667bef3482315e0 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 12 Feb 2024 13:46:47 +0100
Subject: [PATCH 205/393] deps: update dependency
com.google.cloud:google-cloud-datacatalog-bom to v1.41.0 (#3135)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index deb304c63..7060a1bfa 100644
--- a/pom.xml
+++ b/pom.xml
@@ -97,7 +97,7 @@
com.google.cloud
google-cloud-datacatalog-bom
- 1.40.0
+ 1.41.0
pom
import
From 3a1efc2ede4eb1de5e3cf7703dc6bdef51b263f1 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 12 Feb 2024 19:51:18 +0100
Subject: [PATCH 206/393] deps: update dependency
com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.37.0
(#3132)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 7060a1bfa..fa70c5d63 100644
--- a/pom.xml
+++ b/pom.xml
@@ -167,7 +167,7 @@
com.google.api.grpc
proto-google-cloud-bigqueryconnection-v1
- 2.36.0
+ 2.37.0
test
From e57d6290494748c343c5bb1be750c7444bad1543 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 13 Feb 2024 14:22:01 +0100
Subject: [PATCH 207/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigtable to v2.33.0 (#3136)
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index fdc172e59..89b2df133 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -63,7 +63,7 @@
com.google.cloud
google-cloud-bigtable
- 2.32.0
+ 2.33.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index e8b82cc04..7fdcb6c73 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -61,7 +61,7 @@
com.google.cloud
google-cloud-bigtable
- 2.32.0
+ 2.33.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 6471a600c..722f3660a 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -79,7 +79,7 @@
com.google.cloud
google-cloud-bigtable
- 2.32.0
+ 2.33.0
test
From 4b3a42991836c3bb23972616cb4d20756dc83488 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 13 Feb 2024 18:50:06 +0100
Subject: [PATCH 208/393] deps: update github/codeql-action action to v2.24.1
(#3139)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update github/codeql-action action to v2.24.1
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.github/workflows/scorecard.yml | 2 +-
README.md | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 448676928..6987a764b 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@dc021d495cb77b369e4d9d04a501700fd83b8c51 # v2.24.0
+ uses: github/codeql-action/upload-sarif@1a077f8f6c71a45340c26ca0b877e00459e5f443 # v2.24.1
with:
sarif_file: results.sarif
diff --git a/README.md b/README.md
index 5be562a38..75a55d783 100644
--- a/README.md
+++ b/README.md
@@ -53,7 +53,7 @@ If you are using Maven without the BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:
```Groovy
-implementation platform('com.google.cloud:libraries-bom:26.31.0')
+implementation platform('com.google.cloud:libraries-bom:26.32.0')
implementation 'com.google.cloud:google-cloud-bigquery'
```
From e61a7bc5735822308db3baab327474b6319e4d93 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 14 Feb 2024 16:19:51 +0100
Subject: [PATCH 209/393] deps: update dependency
com.google.cloud:google-cloud-shared-dependencies to v3.25.0 (#3140)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index fa70c5d63..69e133554 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,7 +55,7 @@
github
google-cloud-bigquery-parent
v2-rev20240203-2.0.0
- 3.24.0
+ 3.25.0
15.0.0
From 386cd28b172f3a92c7af5dead8713301abea7026 Mon Sep 17 00:00:00 2001
From: Tomo Suzuki
Date: Wed, 14 Feb 2024 13:34:32 -0500
Subject: [PATCH 210/393] chore: adding google-cloud-bigquery-bom (#3137)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore: adding google-cloud-bigquery-bom
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
google-cloud-bigquery-bom/pom.xml | 83 +++++++++++++++++++++++++++++++
pom.xml | 1 +
2 files changed, 84 insertions(+)
create mode 100644 google-cloud-bigquery-bom/pom.xml
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
new file mode 100644
index 000000000..5e41fa178
--- /dev/null
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -0,0 +1,83 @@
+
+
+ 4.0.0
+ com.google.cloud
+ google-cloud-bigquery-bom
+ 2.37.0
+ pom
+
+ com.google.cloud
+ google-cloud-shared-config
+ 1.7.1
+
+
+
+ Google Cloud BigQuery BOM
+ https://github.com/googleapis/java-bigquery
+
+ BOM for Google Cloud BigQuery
+
+
+
+ Google LLC
+
+
+
+
+ suztomo
+ Tomo Suzuki
+ suztomo@google.com
+ Google LLC
+
+ Developer
+
+
+
+
+
+ scm:git:https://github.com/googleapis/java-bigquery.git
+ scm:git:git@github.com:googleapis/java-bigquery.git
+ https://github.com/googleapis/java-bigquery
+
+
+
+
+
+ The Apache Software License, Version 2.0
+ http://www.apache.org/licenses/LICENSE-2.0.txt
+ repo
+
+
+
+
+
+
+ com.google.cloud
+ google-cloud-bigquery
+ 2.37.0
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+
+ true
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-site-plugin
+
+
+ false
+
+
+
+
+
diff --git a/pom.xml b/pom.xml
index 69e133554..530ffe70e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -175,6 +175,7 @@
google-cloud-bigquery
+ google-cloud-bigquery-bom
From 35490371f26fdac94a38ccd38a5b9f3c423b5175 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Wed, 14 Feb 2024 14:54:09 -0500
Subject: [PATCH 211/393] chore(main): release 2.37.2 (#3127)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
CHANGELOG.md | 11 +++++++++++
benchmark/pom.xml | 2 +-
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
6 files changed, 18 insertions(+), 7 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1a961cc3f..d543ab3d0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,16 @@
# Changelog
+## [2.37.2](https://github.com/googleapis/java-bigquery/compare/v2.37.1...v2.37.2) (2024-02-14)
+
+
+### Dependencies
+
+* Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.37.0 ([#3132](https://github.com/googleapis/java-bigquery/issues/3132)) ([3a1efc2](https://github.com/googleapis/java-bigquery/commit/3a1efc2ede4eb1de5e3cf7703dc6bdef51b263f1))
+* Update dependency com.google.apis:google-api-services-bigquery to v2-rev20240203-2.0.0 ([#3126](https://github.com/googleapis/java-bigquery/issues/3126)) ([5e28419](https://github.com/googleapis/java-bigquery/commit/5e2841988b223bc8ac775ed2b4d38e2c26b2815b))
+* Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.41.0 ([#3135](https://github.com/googleapis/java-bigquery/issues/3135)) ([9ab79ec](https://github.com/googleapis/java-bigquery/commit/9ab79ec14d661e79f152568ff667bef3482315e0))
+* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.25.0 ([#3140](https://github.com/googleapis/java-bigquery/issues/3140)) ([e61a7bc](https://github.com/googleapis/java-bigquery/commit/e61a7bc5735822308db3baab327474b6319e4d93))
+* Update github/codeql-action action to v2.24.1 ([#3139](https://github.com/googleapis/java-bigquery/issues/3139)) ([4b3a429](https://github.com/googleapis/java-bigquery/commit/4b3a42991836c3bb23972616cb4d20756dc83488))
+
## [2.37.1](https://github.com/googleapis/java-bigquery/compare/v2.37.0...v2.37.1) (2024-02-06)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 62b803d03..8a8a2fecd 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.37.2-SNAPSHOT
+ 2.37.2
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index fe6b2d786..f29852bd4 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.37.2-SNAPSHOT
+ 2.37.2
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.37.2-SNAPSHOT
+ 2.37.2
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 530ffe70e..2c7fbe9e9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.37.2-SNAPSHOT
+ 2.37.2
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -111,7 +111,7 @@
com.google.cloud
google-cloud-bigquery
- 2.37.2-SNAPSHOT
+ 2.37.2
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 7fdcb6c73..65a20714c 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.37.2-SNAPSHOT
+ 2.37.2
diff --git a/versions.txt b/versions.txt
index 760c94f7d..6f4cd476e 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.37.1:2.37.2-SNAPSHOT
\ No newline at end of file
+google-cloud-bigquery:2.37.2:2.37.2
\ No newline at end of file
From e1947c15e081ab69edd1e348217ffdb8d1cea816 Mon Sep 17 00:00:00 2001
From: Mridula <66699525+mpeddada1@users.noreply.github.com>
Date: Wed, 14 Feb 2024 20:30:10 +0000
Subject: [PATCH 212/393] chore: use sdk-platform-java-config to consolidate
build configs (#3144)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore: use sdk-platform-java-config to consolidate build configs
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* exclude .kokoro/presubmit from owlbot
---------
Co-authored-by: Owl Bot
---
.kokoro/continuous/graalvm-native-17.cfg | 2 +-
.kokoro/continuous/graalvm-native.cfg | 2 +-
.kokoro/presubmit/graalvm-native-17.cfg | 2 +-
.kokoro/presubmit/graalvm-native.cfg | 2 +-
owlbot.py | 2 ++
pom.xml | 7 +++----
renovate.json | 12 ++++++++++++
7 files changed, 21 insertions(+), 8 deletions(-)
diff --git a/.kokoro/continuous/graalvm-native-17.cfg b/.kokoro/continuous/graalvm-native-17.cfg
index 9eea05bad..28a65e0fe 100644
--- a/.kokoro/continuous/graalvm-native-17.cfg
+++ b/.kokoro/continuous/graalvm-native-17.cfg
@@ -3,7 +3,7 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
- value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17:22.3.2"
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.25.0"
}
env_vars: {
diff --git a/.kokoro/continuous/graalvm-native.cfg b/.kokoro/continuous/graalvm-native.cfg
index 5150fb292..d9c57fee1 100644
--- a/.kokoro/continuous/graalvm-native.cfg
+++ b/.kokoro/continuous/graalvm-native.cfg
@@ -3,7 +3,7 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
- value: "gcr.io/cloud-devrel-kokoro-resources/graalvm:22.3.2"
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.25.0"
}
env_vars: {
diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg
index fb5bb678f..890878fef 100644
--- a/.kokoro/presubmit/graalvm-native-17.cfg
+++ b/.kokoro/presubmit/graalvm-native-17.cfg
@@ -3,7 +3,7 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
- value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17:22.3.3"
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.25.0""
}
env_vars: {
diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg
index 59efee340..8e8cded78 100644
--- a/.kokoro/presubmit/graalvm-native.cfg
+++ b/.kokoro/presubmit/graalvm-native.cfg
@@ -3,7 +3,7 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
- value: "gcr.io/cloud-devrel-kokoro-resources/graalvm:22.3.3"
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.25.0"
}
env_vars: {
diff --git a/owlbot.py b/owlbot.py
index 490004d0b..a2540ce52 100644
--- a/owlbot.py
+++ b/owlbot.py
@@ -20,6 +20,8 @@
'.kokoro/nightly/samples.cfg',
'.kokoro/nightly/integration.cfg',
'.kokoro/presubmit/samples.cfg',
+ '.kokoro/presubmit/graalvm-native.cfg',
+ '.kokoro/presubmit/graalvm-native-17.cfg',
'codecov.yaml',
'renovate.json',
'.kokoro/build.sh'
diff --git a/pom.xml b/pom.xml
index 2c7fbe9e9..5ef5db673 100644
--- a/pom.xml
+++ b/pom.xml
@@ -13,8 +13,8 @@
com.google.cloud
- google-cloud-shared-config
- 1.7.1
+ sdk-platform-java-config
+ 3.25.0
@@ -55,7 +55,6 @@
github
google-cloud-bigquery-parent
v2-rev20240203-2.0.0
- 3.25.0
15.0.0
@@ -64,7 +63,7 @@
com.google.cloud
google-cloud-shared-dependencies
- ${google.cloud.shared-dependencies.version}
+ ${google-cloud-shared-dependencies.version}
pom
import
diff --git a/renovate.json b/renovate.json
index 274ec500c..0b609db9a 100644
--- a/renovate.json
+++ b/renovate.json
@@ -11,6 +11,18 @@
":autodetectPinVersions"
],
"ignorePaths": [".kokoro/requirements.txt"],
+ "customManagers": [
+ {
+ "customType": "regex",
+ "fileMatch": [
+ "^.kokoro/continuous/graalvm-native.*.cfg$",
+ "^.kokoro/presubmit/graalvm-native.*.cfg$"
+ ],
+ "matchStrings": ["value: \"gcr.io/cloud-devrel-public-resources/graalvm.*:(?.*?)\""],
+ "depNameTemplate": "com.google.cloud:sdk-platform-java-config",
+ "datasourceTemplate": "maven"
+ }
+ ],
"packageRules": [
{
"packagePatterns": [
From f3f387b2265d527f3b5bf567c1eaf7ecdad6e096 Mon Sep 17 00:00:00 2001
From: Phong Chuong <147636638+PhongChuong@users.noreply.github.com>
Date: Wed, 14 Feb 2024 16:17:23 -0500
Subject: [PATCH 213/393] feat: add MetadataCacheStatistics to Job
QueryStatistics (#3133)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* Feat: Add MetadataCacheStatistics to Job QueryStatistics
* Add integration test
* Add integration test
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* Update documentation.
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 6 +-
.../google/cloud/bigquery/JobStatistics.java | 23 ++++
.../cloud/bigquery/MetadataCacheStats.java | 76 +++++++++++
.../bigquery/TableMetadataCacheUsage.java | 118 ++++++++++++++++++
.../src/test/java/MetadataCacheStatsTest.java | 60 +++++++++
.../cloud/bigquery/JobStatisticsTest.java | 11 ++
.../bigquery/TableMetadataCacheUsageTest.java | 70 +++++++++++
.../cloud/bigquery/it/ITBigQueryTest.java | 42 +++++++
8 files changed, 403 insertions(+), 3 deletions(-)
create mode 100644 google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/MetadataCacheStats.java
create mode 100644 google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableMetadataCacheUsage.java
create mode 100644 google-cloud-bigquery/src/test/java/MetadataCacheStatsTest.java
create mode 100644 google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableMetadataCacheUsageTest.java
diff --git a/README.md b/README.md
index 75a55d783..f1ebabf70 100644
--- a/README.md
+++ b/README.md
@@ -60,13 +60,13 @@ implementation 'com.google.cloud:google-cloud-bigquery'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigquery:2.37.1'
+implementation 'com.google.cloud:google-cloud-bigquery:2.37.2'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.37.1"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.37.2"
```
@@ -351,7 +351,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquery/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.37.1
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.37.2
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
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 1cbf22fa7..5979afbca 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
@@ -358,6 +358,7 @@ public static class QueryStatistics extends JobStatistics {
private final List timeline;
private final Schema schema;
private final SearchStats searchStats;
+ private final MetadataCacheStats metadataCacheStats;
private final List queryParameters;
/**
@@ -444,6 +445,8 @@ static final class Builder extends JobStatistics.Builder queryParameters;
private SearchStats searchStats;
+ private MetadataCacheStats metadataCacheStats;
+
private Builder() {}
private Builder(com.google.api.services.bigquery.model.JobStatistics statisticsPb) {
@@ -493,6 +496,10 @@ private Builder(com.google.api.services.bigquery.model.JobStatistics statisticsP
if (statisticsPb.getQuery().getSearchStatistics() != null) {
this.searchStats = SearchStats.fromPb(statisticsPb.getQuery().getSearchStatistics());
}
+ if (statisticsPb.getQuery().getMetadataCacheStatistics() != null) {
+ this.metadataCacheStats =
+ MetadataCacheStats.fromPb(statisticsPb.getQuery().getMetadataCacheStatistics());
+ }
if (statisticsPb.getQuery().getDmlStats() != null) {
this.dmlStats = DmlStats.fromPb(statisticsPb.getQuery().getDmlStats());
}
@@ -599,6 +606,11 @@ Builder setSearchStats(SearchStats searchStats) {
return self();
}
+ Builder setMetadataCacheStats(MetadataCacheStats metadataCacheStats) {
+ this.metadataCacheStats = metadataCacheStats;
+ return self();
+ }
+
Builder setQueryParameters(List queryParameters) {
this.queryParameters = queryParameters;
return self();
@@ -631,6 +643,7 @@ private QueryStatistics(Builder builder) {
this.timeline = builder.timeline;
this.schema = builder.schema;
this.searchStats = builder.searchStats;
+ this.metadataCacheStats = builder.metadataCacheStats;
this.queryParameters = builder.queryParameters;
}
@@ -761,6 +774,11 @@ public SearchStats getSearchStats() {
return searchStats;
}
+ /** Statistics for metadata caching in BigLake tables. */
+ public MetadataCacheStats getMetadataCacheStats() {
+ return metadataCacheStats;
+ }
+
/**
* Standard SQL only: Returns a list of undeclared query parameters detected during a dry run
* validation.
@@ -781,6 +799,7 @@ ToStringHelper toStringHelper() {
.add("timeline", timeline)
.add("schema", schema)
.add("searchStats", searchStats)
+ .add("metadataCacheStats", metadataCacheStats)
.add("queryParameters", queryParameters);
}
@@ -804,6 +823,7 @@ public final int hashCode() {
queryPlan,
schema,
searchStats,
+ metadataCacheStats,
queryParameters);
}
@@ -849,6 +869,9 @@ com.google.api.services.bigquery.model.JobStatistics toPb() {
if (searchStats != null) {
queryStatisticsPb.setSearchStatistics(searchStats.toPb());
}
+ if (metadataCacheStats != null) {
+ queryStatisticsPb.setMetadataCacheStatistics(metadataCacheStats.toPb());
+ }
if (queryParameters != null) {
queryStatisticsPb.setUndeclaredQueryParameters(queryParameters);
}
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/MetadataCacheStats.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/MetadataCacheStats.java
new file mode 100644
index 000000000..482571d5f
--- /dev/null
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/MetadataCacheStats.java
@@ -0,0 +1,76 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.bigquery;
+
+import com.google.api.services.bigquery.model.MetadataCacheStatistics;
+import com.google.auto.value.AutoValue;
+import java.io.Serializable;
+import java.util.List;
+import java.util.stream.Collectors;
+import javax.annotation.Nullable;
+
+/**
+ * Represents statistics for metadata caching in BigLake tables.
+ *
+ * @see BigLake Tables
+ */
+@AutoValue
+public abstract class MetadataCacheStats implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ @AutoValue.Builder
+ public abstract static class Builder {
+ /** Sets the free form human-readable reason metadata caching was unused for the job. */
+ public abstract MetadataCacheStats.Builder setTableMetadataCacheUsage(
+ List tableMetadataCacheUsage);
+
+ /** Creates a @code MetadataCacheStats} object. */
+ public abstract MetadataCacheStats build();
+ }
+
+ public abstract Builder toBuilder();
+
+ public static Builder newBuilder() {
+ return new AutoValue_MetadataCacheStats.Builder();
+ }
+
+ @Nullable
+ public abstract List getTableMetadataCacheUsage();
+
+ MetadataCacheStatistics toPb() {
+ MetadataCacheStatistics metadataCacheStatistics = new MetadataCacheStatistics();
+ if (getTableMetadataCacheUsage() != null) {
+ metadataCacheStatistics.setTableMetadataCacheUsage(
+ getTableMetadataCacheUsage().stream()
+ .map(TableMetadataCacheUsage::toPb)
+ .collect(Collectors.toList()));
+ }
+ return metadataCacheStatistics;
+ }
+
+ static MetadataCacheStats fromPb(MetadataCacheStatistics metadataCacheStatistics) {
+ Builder builder = newBuilder();
+ if (metadataCacheStatistics.getTableMetadataCacheUsage() != null) {
+ builder.setTableMetadataCacheUsage(
+ metadataCacheStatistics.getTableMetadataCacheUsage().stream()
+ .map(TableMetadataCacheUsage::fromPb)
+ .collect(Collectors.toList()));
+ }
+ return builder.build();
+ }
+}
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableMetadataCacheUsage.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableMetadataCacheUsage.java
new file mode 100644
index 000000000..89ad4f966
--- /dev/null
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableMetadataCacheUsage.java
@@ -0,0 +1,118 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.bigquery;
+
+import com.google.auto.value.AutoValue;
+import java.io.Serializable;
+import javax.annotation.Nullable;
+
+/** Represents Table level detail on the usage of metadata caching. */
+@AutoValue
+public abstract class TableMetadataCacheUsage implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ /** Reason for not using metadata caching for the table. */
+ public enum UnusedReason {
+ /** Unused reasons not specified. */
+ UNUSED_REASON_UNSPECIFIED,
+
+ /** Metadata cache was outside the table's maxStaleness. */
+ EXCEEDED_MAX_STALENESS,
+
+ /**
+ * Metadata caching feature is not enabled. Update BigLake tables to enable the metadata
+ * caching.
+ */
+ METADATA_CACHING_NOT_ENABLED,
+
+ /** Other unknown reason. */
+ OTHER_REASON
+ }
+
+ @AutoValue.Builder
+ public abstract static class Builder {
+ /** Sets the free form human-readable reason metadata caching was unused for the job. */
+ public abstract TableMetadataCacheUsage.Builder setExplanation(String explanation);
+
+ /** Sets the metadata caching eligible table referenced in the query. */
+ public abstract TableMetadataCacheUsage.Builder setTableReference(TableId tableReference);
+
+ /** Sets the table type. */
+ public abstract TableMetadataCacheUsage.Builder setTableType(String tableType);
+
+ /** Sets reason for not using metadata caching for the table. */
+ public abstract TableMetadataCacheUsage.Builder setUnusedReason(UnusedReason unusedReason);
+
+ /** Creates a @code TableMetadataCacheUsage} object. */
+ public abstract TableMetadataCacheUsage build();
+ }
+
+ public abstract Builder toBuilder();
+
+ public static Builder newBuilder() {
+ return new AutoValue_TableMetadataCacheUsage.Builder();
+ }
+
+ @Nullable
+ public abstract String getExplanation();
+
+ @Nullable
+ public abstract TableId getTableReference();
+
+ @Nullable
+ public abstract String getTableType();
+
+ @Nullable
+ public abstract UnusedReason getUnusedReason();
+
+ com.google.api.services.bigquery.model.TableMetadataCacheUsage toPb() {
+ com.google.api.services.bigquery.model.TableMetadataCacheUsage tableMetadataCacheUsage =
+ new com.google.api.services.bigquery.model.TableMetadataCacheUsage();
+ if (getExplanation() != null) {
+ tableMetadataCacheUsage.setExplanation(getExplanation());
+ }
+ if (getTableReference() != null) {
+ tableMetadataCacheUsage.setTableReference(getTableReference().toPb());
+ }
+ if (getTableType() != null) {
+ tableMetadataCacheUsage.setTableType(getTableType());
+ }
+ if (getUnusedReason() != null) {
+ tableMetadataCacheUsage.setUnusedReason(getUnusedReason().toString());
+ }
+ return tableMetadataCacheUsage;
+ }
+
+ static TableMetadataCacheUsage fromPb(
+ com.google.api.services.bigquery.model.TableMetadataCacheUsage tableMetadataCacheUsage) {
+ Builder builder = newBuilder();
+ if (tableMetadataCacheUsage.getExplanation() != null) {
+ builder.setExplanation(tableMetadataCacheUsage.getExplanation());
+ }
+ if (tableMetadataCacheUsage.getTableReference() != null) {
+ builder.setTableReference(TableId.fromPb(tableMetadataCacheUsage.getTableReference()));
+ }
+ if (tableMetadataCacheUsage.getTableType() != null) {
+ builder.setTableType(tableMetadataCacheUsage.getTableType());
+ }
+ if (tableMetadataCacheUsage.getUnusedReason() != null) {
+ builder.setUnusedReason(UnusedReason.valueOf(tableMetadataCacheUsage.getUnusedReason()));
+ }
+ return builder.build();
+ }
+}
diff --git a/google-cloud-bigquery/src/test/java/MetadataCacheStatsTest.java b/google-cloud-bigquery/src/test/java/MetadataCacheStatsTest.java
new file mode 100644
index 000000000..d1cfa86e9
--- /dev/null
+++ b/google-cloud-bigquery/src/test/java/MetadataCacheStatsTest.java
@@ -0,0 +1,60 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.bigquery;
+
+import static org.junit.Assert.assertEquals;
+
+import com.google.api.services.bigquery.model.MetadataCacheStatistics;
+import com.google.common.collect.ImmutableList;
+import com.google.common.truth.Truth;
+import java.util.List;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class MetadataCacheStatsTest {
+ private static List
+ TABLE_METADATA_CACHE_USAGE_PB_LIST =
+ ImmutableList.of(
+ new com.google.api.services.bigquery.model.TableMetadataCacheUsage()
+ .setExplanation("test explanation"));
+
+ private static final MetadataCacheStats METADATA_CACHE_STATS =
+ MetadataCacheStats.newBuilder()
+ .setTableMetadataCacheUsage(
+ TABLE_METADATA_CACHE_USAGE_PB_LIST.stream()
+ .map(TableMetadataCacheUsage::fromPb)
+ .collect(Collectors.toList()))
+ .build();
+
+ private static final MetadataCacheStatistics METADATA_CACHE_STATISTICS_PB =
+ new MetadataCacheStatistics().setTableMetadataCacheUsage(TABLE_METADATA_CACHE_USAGE_PB_LIST);
+
+ @Test
+ public void testToPbAndFromPb() {
+ assertEquals(METADATA_CACHE_STATISTICS_PB, METADATA_CACHE_STATS.toPb());
+ compareMetadataCacheStats(
+ METADATA_CACHE_STATS, MetadataCacheStats.fromPb(METADATA_CACHE_STATISTICS_PB));
+ }
+
+ private void compareMetadataCacheStats(MetadataCacheStats expected, MetadataCacheStats value) {
+ assertEquals(expected, value);
+ assertEquals(expected.hashCode(), value.hashCode());
+ assertEquals(expected.toString(), value.toString());
+ Truth.assertThat(
+ expected.getTableMetadataCacheUsage().containsAll(value.getTableMetadataCacheUsage()));
+ }
+}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobStatisticsTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobStatisticsTest.java
index f32832b59..5502b8472 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobStatisticsTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobStatisticsTest.java
@@ -163,6 +163,14 @@ public class JobStatisticsTest {
private static final String UNUSED_INDEX_USAGE_MODE = "UNUSED";
private static final SearchStats SEARCH_STATS =
SearchStats.newBuilder().setIndexUsageMode(UNUSED_INDEX_USAGE_MODE).build();
+
+ private static final MetadataCacheStats METADATA_CACHE_STATS =
+ MetadataCacheStats.newBuilder()
+ .setTableMetadataCacheUsage(
+ ImmutableList.of(
+ TableMetadataCacheUsage.newBuilder().setExplanation("test explanation").build()))
+ .build();
+
private static final QueryStatistics QUERY_STATISTICS =
QueryStatistics.newBuilder()
.setCreationTimestamp(CREATION_TIME)
@@ -187,6 +195,7 @@ public class JobStatisticsTest {
.setTimeline(TIMELINE)
.setSchema(SCHEMA)
.setSearchStats(SEARCH_STATS)
+ .setMetadataCacheStats(METADATA_CACHE_STATS)
.build();
private static final QueryStatistics QUERY_STATISTICS_INCOMPLETE =
QueryStatistics.newBuilder()
@@ -196,6 +205,7 @@ public class JobStatisticsTest {
.setBillingTier(BILLING_TIER)
.setCacheHit(CACHE_HIT)
.setSearchStats(SEARCH_STATS)
+ .setMetadataCacheStats(METADATA_CACHE_STATS)
.build();
private static final ScriptStackFrame STATEMENT_STACK_FRAME =
ScriptStackFrame.newBuilder()
@@ -417,6 +427,7 @@ private void compareQueryStatistics(QueryStatistics expected, QueryStatistics va
assertEquals(expected.getSchema(), value.getSchema());
assertEquals(
expected.getSearchStats().getIndexUsageMode(), value.getSearchStats().getIndexUsageMode());
+ assertEquals(expected.getMetadataCacheStats(), value.getMetadataCacheStats());
assertEquals(expected.getStatementType(), value.getStatementType());
assertEquals(expected.getTimeline(), value.getTimeline());
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableMetadataCacheUsageTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableMetadataCacheUsageTest.java
new file mode 100644
index 000000000..8f141fa59
--- /dev/null
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableMetadataCacheUsageTest.java
@@ -0,0 +1,70 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.bigquery;
+
+import static org.junit.Assert.assertEquals;
+
+import com.google.api.services.bigquery.model.TableReference;
+import com.google.cloud.bigquery.TableMetadataCacheUsage.UnusedReason;
+import org.junit.Test;
+
+public class TableMetadataCacheUsageTest {
+
+ private static final String EXPLANATION = "test explanation";
+
+ private static final String TABLE_TYPE = "test tableType";
+
+ private static final UnusedReason UNUSED_REASON = UnusedReason.UNUSED_REASON_UNSPECIFIED;
+ private static final TableReference TABLE_REFERENCE =
+ new TableReference()
+ .setTableId("test tableId")
+ .setProjectId("test projectId")
+ .setDatasetId("test dataset");
+ private static final TableMetadataCacheUsage TABLE_METADATA_CACHE_USAGE =
+ TableMetadataCacheUsage.newBuilder()
+ .setExplanation(EXPLANATION)
+ .setTableType(TABLE_TYPE)
+ .setUnusedReason(UNUSED_REASON)
+ .setTableReference(TableId.fromPb(TABLE_REFERENCE))
+ .build();
+
+ private static final com.google.api.services.bigquery.model.TableMetadataCacheUsage
+ TABLE_METADATA_CACHE_USAGE_PB =
+ new com.google.api.services.bigquery.model.TableMetadataCacheUsage()
+ .setTableReference(TABLE_REFERENCE)
+ .setExplanation(EXPLANATION)
+ .setTableType(TABLE_TYPE)
+ .setUnusedReason(UNUSED_REASON.toString());
+
+ @Test
+ public void testToPbAndFromPb() {
+ assertEquals(TABLE_METADATA_CACHE_USAGE_PB, TABLE_METADATA_CACHE_USAGE.toPb());
+ compareTableMetadataCacheUsage(
+ TABLE_METADATA_CACHE_USAGE, TableMetadataCacheUsage.fromPb(TABLE_METADATA_CACHE_USAGE_PB));
+ }
+
+ private void compareTableMetadataCacheUsage(
+ TableMetadataCacheUsage expected, TableMetadataCacheUsage value) {
+ assertEquals(expected, value);
+ assertEquals(expected.hashCode(), value.hashCode());
+ assertEquals(expected.toString(), value.toString());
+ assertEquals(expected.getExplanation(), value.getExplanation());
+ assertEquals(expected.getTableType(), value.getTableType());
+ assertEquals(expected.getUnusedReason(), value.getUnusedReason());
+ assertEquals(expected.getTableReference(), value.getTableReference());
+ }
+}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
index 7652e65a5..3fd084a63 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
@@ -126,6 +126,7 @@
import com.google.cloud.bigquery.TableDefinition;
import com.google.cloud.bigquery.TableId;
import com.google.cloud.bigquery.TableInfo;
+import com.google.cloud.bigquery.TableMetadataCacheUsage.UnusedReason;
import com.google.cloud.bigquery.TableResult;
import com.google.cloud.bigquery.TimePartitioning;
import com.google.cloud.bigquery.TimePartitioning.Type;
@@ -6500,6 +6501,47 @@ public void testUniverseDomainWithMatchingDomain() {
}
}
+ @Test
+ public void testExternalTableMetadataCachingNotEnable() throws InterruptedException {
+ String tableName = "test_metadata_cache_not_enable";
+ TableId tableId = TableId.of(DATASET, tableName);
+ ExternalTableDefinition externalTableDefinition =
+ ExternalTableDefinition.of(
+ "gs://" + BUCKET + "/" + JSON_LOAD_FILE, TABLE_SCHEMA, FormatOptions.json());
+ TableInfo tableInfo = TableInfo.of(tableId, externalTableDefinition);
+ Table createdTable = bigquery.create(tableInfo);
+ assertNotNull(createdTable);
+ assertEquals(DATASET, createdTable.getTableId().getDataset());
+ assertEquals(tableName, createdTable.getTableId().getTable());
+ Table remoteTable = bigquery.getTable(DATASET, tableName);
+ assertNotNull(remoteTable);
+ assertTrue(remoteTable.getDefinition() instanceof ExternalTableDefinition);
+ assertEquals(createdTable.getTableId(), remoteTable.getTableId());
+ assertEquals(TABLE_SCHEMA, remoteTable.getDefinition().getSchema());
+
+ String query = String.format("SELECT * FROM %s.%s", DATASET, tableName);
+ QueryJobConfiguration config = QueryJobConfiguration.newBuilder(query).build();
+
+ Job remoteJob = bigquery.create(JobInfo.of(config));
+ remoteJob = remoteJob.waitFor();
+ assertNull(remoteJob.getStatus().getError());
+
+ Job queryJob = bigquery.getJob(remoteJob.getJobId());
+ JobStatistics.QueryStatistics statistics = queryJob.getStatistics();
+ assertNotNull(statistics);
+ assertNotNull(statistics.getMetadataCacheStats());
+ assertThat(statistics.getMetadataCacheStats().getTableMetadataCacheUsage().size()).isEqualTo(1);
+ assertThat(
+ statistics
+ .getMetadataCacheStats()
+ .getTableMetadataCacheUsage()
+ .get(0)
+ .getUnusedReason())
+ .isEqualTo(UnusedReason.METADATA_CACHING_NOT_ENABLED);
+
+ assertTrue(remoteTable.delete());
+ }
+
static GoogleCredentials loadCredentials(String credentialFile) {
try {
InputStream keyStream = new ByteArrayInputStream(credentialFile.getBytes());
From b358bbcc047ad75b0847b7110920eccee490e17a Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 15 Feb 2024 02:30:48 +0100
Subject: [PATCH 214/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquery to v2.37.2 (#3143)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigquery to v2.37.2
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 2 +-
google-cloud-bigquery-bom/pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index f1ebabf70..f32db6e66 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquery
- 2.37.1
+ 2.37.2
```
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index 5e41fa178..6ccf7c912 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -54,7 +54,7 @@
com.google.cloud
google-cloud-bigquery
- 2.37.0
+ 2.37.2
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 89b2df133..981ef0189 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -45,7 +45,7 @@
com.google.cloud
google-cloud-bigquery
- 2.37.1
+ 2.37.2
From ea03dbabedf230db500ce8f6198dac40cc6dd94a Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 15 Feb 2024 19:05:18 +0100
Subject: [PATCH 215/393] test(deps): update dependency
com.google.cloud:google-cloud-storage to v2.34.0 (#3146)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 5ef5db673..b1c33425d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -154,7 +154,7 @@
com.google.cloud
google-cloud-storage
- 2.33.0
+ 2.34.0
test
From a0a7b0186ae47fcfcf75fe4f35cce50044c6926c Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 15 Feb 2024 19:06:14 +0100
Subject: [PATCH 216/393] deps: update github/codeql-action action to v2.24.3
(#3148)
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 6987a764b..d5706e48e 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@1a077f8f6c71a45340c26ca0b877e00459e5f443 # v2.24.1
+ uses: github/codeql-action/upload-sarif@4a8f20f6b9b5114f354129a1e2f391d75bfd640a # v2.24.3
with:
sarif_file: results.sarif
From 042fcf0aca46d349103211c3d04ae4b49868933c Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 15 Feb 2024 19:11:12 +0100
Subject: [PATCH 217/393] deps: update github/codeql-action action to v2.24.3
(#3150)
From 16eabce3e5bb561b7aa8b017be77631971b7170a Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 21 Feb 2024 17:34:25 +0100
Subject: [PATCH 218/393] test(deps): update dependency com.google.truth:truth
to v1.4.1 (#3151)
---
pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/native-image-sample/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/pom.xml b/pom.xml
index b1c33425d..8e55f006f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -136,7 +136,7 @@
com.google.truth
truth
- 1.4.0
+ 1.4.1
test
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 981ef0189..efd9e50c7 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -81,7 +81,7 @@
com.google.truth
truth
- 1.4.0
+ 1.4.1
test
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index a8872d9ce..054077ec3 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -62,7 +62,7 @@
com.google.truth
truth
- 1.4.0
+ 1.4.1
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 65a20714c..8a23b99ee 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -79,7 +79,7 @@
com.google.truth
truth
- 1.4.0
+ 1.4.1
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 722f3660a..d5510a7a2 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -97,7 +97,7 @@
com.google.truth
truth
- 1.4.0
+ 1.4.1
test
From c57748dedfeecabd33c32db06cad342dd5966380 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 21 Feb 2024 17:35:31 +0100
Subject: [PATCH 219/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquerystorage-bom to v3.2.0 (#3149)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 8e55f006f..ccfc85bba 100644
--- a/pom.xml
+++ b/pom.xml
@@ -72,7 +72,7 @@
com.google.cloud
google-cloud-bigquerystorage-bom
- 3.1.0
+ 3.2.0
pom
import
From e5d688872e4c125a68ed6f666bffd0a41efc3f30 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 21 Feb 2024 17:36:03 +0100
Subject: [PATCH 220/393] deps: update dependency
com.google.apis:google-api-services-bigquery to v2-rev20240211-2.0.0 (#3152)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index ccfc85bba..56e7303e8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,7 +54,7 @@
UTF-8
github
google-cloud-bigquery-parent
- v2-rev20240203-2.0.0
+ v2-rev20240211-2.0.0
15.0.0
From 69db2535ce0fff3048e8cb3a4767d0ee3900b29c Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 21 Feb 2024 17:36:40 +0100
Subject: [PATCH 221/393] build(deps): update dependency
org.apache.maven.plugins:maven-shade-plugin to v3.5.2 (#3155)
---
benchmark/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 8a8a2fecd..af42c7446 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -42,7 +42,7 @@
org.apache.maven.plugins
maven-shade-plugin
- 3.5.1
+ 3.5.2
package
From 68046440b8b921e79b44150972e4b316984bf296 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Wed, 21 Feb 2024 18:06:15 +0000
Subject: [PATCH 222/393] chore(main): release 2.37.3-SNAPSHOT (#3147)
:robot: I have created a release *beep* *boop*
---
### Updating meta-information for bleeding-edge SNAPSHOT release.
---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
---
benchmark/pom.xml | 2 +-
google-cloud-bigquery-bom/pom.xml | 4 ++--
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
6 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index af42c7446..3eca364f1 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.37.2
+ 2.37.3-SNAPSHOT
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index 6ccf7c912..8b1813426 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-bigquery-bom
- 2.37.0
+ 2.37.3-SNAPSHOT
pom
com.google.cloud
@@ -54,7 +54,7 @@
com.google.cloud
google-cloud-bigquery
- 2.37.2
+ 2.37.3-SNAPSHOT
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index f29852bd4..15be2ae8e 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.37.2
+ 2.37.3-SNAPSHOT
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.37.2
+ 2.37.3-SNAPSHOT
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 56e7303e8..88c5e1435 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.37.2
+ 2.37.3-SNAPSHOT
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -110,7 +110,7 @@
com.google.cloud
google-cloud-bigquery
- 2.37.2
+ 2.37.3-SNAPSHOT
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 8a23b99ee..f789501c9 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.37.2
+ 2.37.3-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index 6f4cd476e..f429a3ad8 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.37.2:2.37.2
\ No newline at end of file
+google-cloud-bigquery:2.37.2:2.37.3-SNAPSHOT
\ No newline at end of file
From 678b6ce9e3b770193817d7c053bac6d5468364f5 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 22 Feb 2024 15:55:16 +0100
Subject: [PATCH 223/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigqueryconnection to v2.38.0 (#3158)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigqueryconnection to v2.38.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 2 +-
pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index f32db6e66..977432d01 100644
--- a/README.md
+++ b/README.md
@@ -53,7 +53,7 @@ If you are using Maven without the BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:
```Groovy
-implementation platform('com.google.cloud:libraries-bom:26.32.0')
+implementation platform('com.google.cloud:libraries-bom:26.33.0')
implementation 'com.google.cloud:google-cloud-bigquery'
```
diff --git a/pom.xml b/pom.xml
index 88c5e1435..4fbdd82f6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -160,7 +160,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.37.0
+ 2.38.0
test
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index efd9e50c7..7352fd1a3 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -69,7 +69,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.37.0
+ 2.38.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index f789501c9..bbf8c5c4a 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -67,7 +67,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.37.0
+ 2.38.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index d5510a7a2..cb740eff4 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -85,7 +85,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.37.0
+ 2.38.0
test
From 253f6c90f3f2b8a75405e132bf41001a2fdcd97b Mon Sep 17 00:00:00 2001
From: Phong Chuong <147636638+PhongChuong@users.noreply.github.com>
Date: Thu, 22 Feb 2024 10:12:26 -0500
Subject: [PATCH 224/393] chore: Refactor TableResult using builder pattern
(#3130)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore: Refactor TableResult using builder pattern
This also removed the redundant EmptyTableResult. These changes are fine as TableResult and EmptyTableResult are internal API only.
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* Remove typo comment in TableResult
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.../clirr-ignored-differences.xml | 25 ++++
.../google/cloud/bigquery/BigQueryImpl.java | 51 ++++----
.../cloud/bigquery/EmptyTableResult.java | 32 -----
.../java/com/google/cloud/bigquery/Job.java | 14 +-
.../google/cloud/bigquery/TableResult.java | 120 ++++++++----------
.../com/google/cloud/bigquery/JobTest.java | 7 +-
.../cloud/bigquery/SerializationTest.java | 6 +-
.../cloud/bigquery/TableResultTest.java | 10 +-
.../com/google/cloud/bigquery/TableTest.java | 26 +++-
9 files changed, 159 insertions(+), 132 deletions(-)
delete mode 100644 google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/EmptyTableResult.java
diff --git a/google-cloud-bigquery/clirr-ignored-differences.xml b/google-cloud-bigquery/clirr-ignored-differences.xml
index 75441b537..abf827b48 100644
--- a/google-cloud-bigquery/clirr-ignored-differences.xml
+++ b/google-cloud-bigquery/clirr-ignored-differences.xml
@@ -2,6 +2,17 @@
+
+ 3005
+ com/google/cloud/bigquery/TableResult*
+ TableResult is an internal API and it should be fine to update
+
+
+ 7002
+ com/google/cloud/bigquery/TableResult*
+ *TableResult(*)
+ TableResult is an internal API and it should be fine to update
+
7004
com/google/cloud/bigquery/spi/v2/BigQueryRpc
@@ -47,6 +58,16 @@
com/google/cloud/bigquery/TableInfo*
*ResourceTags(*)
+
+ 7013
+ com/google/cloud/bigquery/TableResult*
+ *getPageNoSchema(*)
+
+
+ 7013
+ com/google/cloud/bigquery/TableResult*
+ *toBuilder(*)
+
7012
com/google/cloud/bigquery/Connection
@@ -142,4 +163,8 @@
com/google/cloud/bigquery/StandardTableDefinition*
*BigLakeConfiguration(*)
+
+ 8001
+ com/google/cloud/bigquery/EmptyTableResult*
+
\ No newline at end of file
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 30fd24f93..a0e61e23b 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
@@ -1156,7 +1156,11 @@ public TableResult listTableData(
public TableResult listTableData(TableId tableId, Schema schema, TableDataListOption... options) {
Tuple extends Page, Long> data =
listTableData(tableId, schema, getOptions(), optionMap(options));
- return new TableResult(schema, data.y(), data.x(), null);
+ return TableResult.newBuilder()
+ .setSchema(schema)
+ .setTotalRows(data.y())
+ .setPageNoSchema(data.x())
+ .build();
}
private static Tuple extends Page, Long> listTableData(
@@ -1400,30 +1404,33 @@ public com.google.api.services.bigquery.model.QueryResponse call() {
if (results.getPageToken() != null) {
JobId jobId = JobId.fromPb(results.getJobReference());
String cursor = results.getPageToken();
- return new TableResult(
- schema,
- numRows,
- new PageImpl<>(
- // fetch next pages of results
- new QueryPageFetcher(jobId, schema, getOptions(), cursor, optionMap(options)),
- cursor,
- // cache first page of result
- transformTableData(results.getRows(), schema)),
- // Return the JobID of the successful job
- jobId,
- results.getQueryId());
+ return TableResult.newBuilder()
+ .setSchema(schema)
+ .setTotalRows(numRows)
+ .setPageNoSchema(
+ new PageImpl<>(
+ // fetch next pages of results
+ new QueryPageFetcher(jobId, schema, getOptions(), cursor, optionMap(options)),
+ cursor,
+ transformTableData(results.getRows(), schema)))
+ .setJobId(jobId)
+ .setQueryId(results.getQueryId())
+ .build();
}
// only 1 page of result
- return new TableResult(
- schema,
- numRows,
- new PageImpl<>(
- new TableDataPageFetcher(null, schema, getOptions(), null, optionMap(options)),
- null,
- transformTableData(results.getRows(), schema)),
+ return TableResult.newBuilder()
+ .setSchema(schema)
+ .setTotalRows(numRows)
+ .setPageNoSchema(
+ new PageImpl<>(
+ new TableDataPageFetcher(null, schema, getOptions(), null, optionMap(options)),
+ null,
+ transformTableData(results.getRows(), schema)))
// Return the JobID of the successful job
- results.getJobReference() != null ? JobId.fromPb(results.getJobReference()) : null,
- results.getQueryId());
+ .setJobId(
+ results.getJobReference() != null ? JobId.fromPb(results.getJobReference()) : null)
+ .setQueryId(results.getQueryId())
+ .build();
}
@Override
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/EmptyTableResult.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/EmptyTableResult.java
deleted file mode 100644
index a5c6c4785..000000000
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/EmptyTableResult.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright 2018 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.google.cloud.bigquery;
-
-import com.google.api.core.InternalApi;
-import com.google.cloud.PageImpl;
-import javax.annotation.Nullable;
-
-public class EmptyTableResult extends TableResult {
-
- private static final long serialVersionUID = -4831062717210349819L;
-
- /** An empty {@code TableResult} to avoid making API requests to unlistable tables. */
- @InternalApi("Exposed for testing")
- public EmptyTableResult(@Nullable Schema schema) {
- super(schema, 0, new PageImpl(null, "", null), null);
- }
-}
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Job.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Job.java
index db9b4b173..d23e4ea52 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Job.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Job.java
@@ -21,6 +21,7 @@
import com.google.api.gax.retrying.BasicResultRetryAlgorithm;
import com.google.api.gax.retrying.RetrySettings;
import com.google.api.gax.retrying.TimedAttemptSettings;
+import com.google.cloud.PageImpl;
import com.google.cloud.RetryHelper;
import com.google.cloud.RetryOption;
import com.google.cloud.bigquery.BigQuery.JobOption;
@@ -311,8 +312,13 @@ public TableResult getQueryResults(QueryResultsOption... options)
// Listing table data might fail, such as with CREATE VIEW queries.
// Avoid a tabledata.list API request by returning an empty TableResult.
if (response.getTotalRows() == 0) {
- TableResult emptyTableResult = new EmptyTableResult(response.getSchema());
- emptyTableResult.setJobId(job.getJobId());
+ TableResult emptyTableResult =
+ TableResult.newBuilder()
+ .setSchema(response.getSchema())
+ .setJobId(job.getJobId())
+ .setTotalRows(0L)
+ .setPageNoSchema(new PageImpl(null, "", null))
+ .build();
return emptyTableResult;
}
@@ -323,8 +329,8 @@ public TableResult getQueryResults(QueryResultsOption... options)
TableResult tableResult =
bigquery.listTableData(
table, response.getSchema(), listOptions.toArray(new TableDataListOption[0]));
- tableResult.setJobId(job.getJobId());
- return tableResult;
+ TableResult tableResultWithJobId = tableResult.toBuilder().setJobId(job.getJobId()).build();
+ return tableResultWithJobId;
}
private QueryResponse waitForQueryResults(
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableResult.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableResult.java
index 1631d3bd5..203a91fab 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableResult.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableResult.java
@@ -16,10 +16,9 @@
package com.google.cloud.bigquery;
-import static com.google.common.base.Preconditions.checkNotNull;
-
import com.google.api.core.InternalApi;
import com.google.api.gax.paging.Page;
+import com.google.auto.value.AutoValue;
import com.google.common.base.Function;
import com.google.common.base.MoreObjects;
import com.google.common.collect.Iterables;
@@ -28,100 +27,87 @@
import java.util.Objects;
import javax.annotation.Nullable;
-public class TableResult implements Page, Serializable {
+@InternalApi
+@AutoValue
+public abstract class TableResult implements Page, Serializable {
- private static final long serialVersionUID = -4831062717210349819L;
+ private static final long serialVersionUID = 1L;
- @Nullable private final Schema schema;
- private final long totalRows;
- private final Page pageNoSchema;
- @Nullable private JobId jobId = null;
+ @AutoValue.Builder
+ public abstract static class Builder {
+ public abstract TableResult.Builder setSchema(Schema schema);
- @Nullable private final String queryId;
+ /**
+ * Sets the total number of rows in the complete result set, which can be more than the number
+ * of rows in the first page of results returned by {@link #getValues()}.
+ */
+ public abstract TableResult.Builder setTotalRows(Long totalRows);
- // package-private so job id is not set outside the package.
- void setJobId(@Nullable JobId jobId) {
- this.jobId = jobId;
- }
+ public abstract TableResult.Builder setJobId(JobId jobId);
- public JobId getJobId() {
- return jobId;
- }
+ public abstract TableResult.Builder setPageNoSchema(Page pageNoSchema);
- public String getQueryId() {
- return queryId;
- }
+ public abstract TableResult.Builder setQueryId(String queryId);
- /**
- * If {@code schema} is non-null, {@code TableResult} adds the schema to {@code FieldValueList}s
- * when iterating through them. {@code pageNoSchema} must not be null.
- */
- @InternalApi("Exposed for testing")
- public TableResult(
- Schema schema, long totalRows, Page pageNoSchema, String queryId) {
- this.schema = schema;
- this.totalRows = totalRows;
- this.pageNoSchema = checkNotNull(pageNoSchema);
- this.queryId = queryId;
+ /** Creates a @code TableResult} object. */
+ public abstract TableResult build();
}
- @InternalApi("Exposed for testing")
- public TableResult(
- Schema schema,
- long totalRows,
- Page pageNoSchema,
- JobId jobId,
- String queryId) {
- this.schema = schema;
- this.totalRows = totalRows;
- this.pageNoSchema = checkNotNull(pageNoSchema);
- this.jobId = jobId;
- this.queryId = queryId;
+ public abstract Builder toBuilder();
+
+ public static Builder newBuilder() {
+ return new AutoValue_TableResult.Builder();
}
/** Returns the schema of the results. Null if the schema is not supplied. */
- public Schema getSchema() {
- return schema;
- }
+ @Nullable
+ public abstract Schema getSchema();
- /**
- * Returns the total number of rows in the complete result set, which can be more than the number
- * of rows in the first page of results returned by {@link #getValues()}.
- */
- public long getTotalRows() {
- return totalRows;
- }
+ public abstract long getTotalRows();
+
+ public abstract Page getPageNoSchema();
+
+ @Nullable
+ public abstract JobId getJobId();
+
+ @Nullable
+ public abstract String getQueryId();
@Override
public boolean hasNextPage() {
- return pageNoSchema.hasNextPage();
+ return getPageNoSchema().hasNextPage();
}
@Override
public String getNextPageToken() {
- return pageNoSchema.getNextPageToken();
+ return getPageNoSchema().getNextPageToken();
}
@Override
public TableResult getNextPage() {
- if (pageNoSchema.hasNextPage()) {
- return new TableResult(schema, totalRows, pageNoSchema.getNextPage(), queryId);
+ if (getPageNoSchema().hasNextPage()) {
+ return TableResult.newBuilder()
+ .setSchema(getSchema())
+ .setTotalRows(getTotalRows())
+ .setPageNoSchema(getPageNoSchema().getNextPage())
+ .setQueryId(getQueryId())
+ .build();
}
return null;
}
@Override
public Iterable iterateAll() {
- return addSchema(pageNoSchema.iterateAll());
+ return addSchema(getPageNoSchema().iterateAll());
}
@Override
public Iterable getValues() {
- return addSchema(pageNoSchema.getValues());
+ return addSchema(getPageNoSchema().getValues());
}
private Iterable addSchema(Iterable iter) {
- if (schema == null) {
+ if (getSchema() == null) {
return iter;
}
return Iterables.transform(
@@ -129,7 +115,7 @@ private Iterable addSchema(Iterable iter) {
new Function() {
@Override
public FieldValueList apply(FieldValueList list) {
- return list.withSchema(schema.getFields());
+ return list.withSchema(getSchema().getFields());
}
});
}
@@ -138,15 +124,16 @@ public FieldValueList apply(FieldValueList list) {
public String toString() {
return MoreObjects.toStringHelper(this)
.add("rows", getValues())
- .add("schema", schema)
- .add("totalRows", totalRows)
+ .add("schema", getSchema())
+ .add("totalRows", getTotalRows())
.add("cursor", getNextPageToken())
+ .add("queryId", getQueryId())
.toString();
}
@Override
public final int hashCode() {
- return Objects.hash(pageNoSchema, schema, totalRows);
+ return Objects.hash(getPageNoSchema(), getSchema(), getTotalRows(), getQueryId());
}
@Override
@@ -154,13 +141,14 @@ public final boolean equals(Object obj) {
if (obj == this) {
return true;
}
- if (obj == null || !obj.getClass().equals(TableResult.class)) {
+ if (obj == null || !obj.getClass().equals(AutoValue_TableResult.class)) {
return false;
}
TableResult response = (TableResult) obj;
return Objects.equals(getNextPageToken(), response.getNextPageToken())
&& Iterators.elementsEqual(getValues().iterator(), response.getValues().iterator())
- && Objects.equals(schema, response.schema)
- && totalRows == response.totalRows;
+ && Objects.equals(getSchema(), response.getSchema())
+ && getTotalRows() == response.getTotalRows()
+ && getQueryId() == response.getQueryId();
}
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobTest.java
index 08c4137d6..d10203444 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobTest.java
@@ -309,7 +309,12 @@ public void testWaitForAndGetQueryResults() throws InterruptedException {
Job completedJob =
expectedJob.toBuilder().setStatus(new JobStatus(JobStatus.State.RUNNING)).build();
Page singlePage = Pages.empty();
- TableResult result = new TableResult(Schema.of(), 1, singlePage, null);
+ TableResult result =
+ TableResult.newBuilder()
+ .setSchema(Schema.of())
+ .setTotalRows(1L)
+ .setPageNoSchema(singlePage)
+ .build();
QueryResponse completedQuery =
QueryResponse.newBuilder()
.setCompleted(true)
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/SerializationTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/SerializationTest.java
index d31b282e7..e91a24394 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/SerializationTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/SerializationTest.java
@@ -206,7 +206,11 @@ public class SerializationTest extends BaseSerializationTest {
private static final FieldValue FIELD_VALUE =
FieldValue.of(FieldValue.Attribute.PRIMITIVE, "value");
private static final TableResult TABLE_RESULT =
- new TableResult(Schema.of(), 0L, new PageImpl(null, "", ImmutableList.of()), null);
+ TableResult.newBuilder()
+ .setSchema(Schema.of())
+ .setTotalRows(0L)
+ .setPageNoSchema(new PageImpl(null, "", ImmutableList.of()))
+ .build();
private static final BigQuery BIGQUERY =
BigQueryOptions.newBuilder().setProjectId("p1").build().getService();
private static final Dataset DATASET =
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableResultTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableResultTest.java
index 89b7d6837..71f9e35da 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableResultTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableResultTest.java
@@ -53,7 +53,8 @@ private static FieldValueList newFieldValueList(String s) {
@Test
public void testNullSchema() {
- TableResult result = new TableResult(null, 3, INNER_PAGE_0, null);
+ TableResult result =
+ TableResult.newBuilder().setTotalRows(3L).setPageNoSchema(INNER_PAGE_0).build();
assertThat(result.getSchema()).isNull();
assertThat(result.hasNextPage()).isTrue();
assertThat(result.getNextPageToken()).isNotNull();
@@ -75,7 +76,12 @@ public void testNullSchema() {
@Test
public void testSchema() {
- TableResult result = new TableResult(SCHEMA, 3, INNER_PAGE_0, null);
+ TableResult result =
+ TableResult.newBuilder()
+ .setSchema(SCHEMA)
+ .setTotalRows(3L)
+ .setPageNoSchema(INNER_PAGE_0)
+ .build();
assertThat(result.getSchema()).isEqualTo(SCHEMA);
assertThat(result.hasNextPage()).isTrue();
assertThat(result.getNextPageToken()).isNotNull();
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableTest.java
index 9aa195331..6e99b701c 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableTest.java
@@ -249,9 +249,18 @@ public void testInsertComplete() {
public void testList() {
Page page = new PageImpl<>(null, "c", ROWS);
when(bigquery.listTableData(TABLE_ID1))
- .thenReturn(new TableResult(null, ROWS.size(), page, null));
+ .thenReturn(
+ TableResult.newBuilder()
+ .setTotalRows((long) ROWS.size())
+ .setPageNoSchema(page)
+ .build());
when(bigquery.listTableData(TABLE_ID1, SCHEMA))
- .thenReturn(new TableResult(SCHEMA, ROWS.size(), page, null));
+ .thenReturn(
+ TableResult.newBuilder()
+ .setSchema(SCHEMA)
+ .setTotalRows((long) ROWS.size())
+ .setPageNoSchema(page)
+ .build());
Page dataPage = table.list();
assertThat(dataPage.getValues()).containsExactlyElementsIn(ROWS).inOrder();
dataPage = table.list(SCHEMA);
@@ -264,9 +273,18 @@ public void testList() {
public void testListWithOptions() {
Page page = new PageImpl<>(null, "c", ROWS);
when(bigquery.listTableData(TABLE_ID1, BigQuery.TableDataListOption.pageSize(10L)))
- .thenReturn(new TableResult(null, ROWS.size(), page, null));
+ .thenReturn(
+ TableResult.newBuilder()
+ .setTotalRows((long) ROWS.size())
+ .setPageNoSchema(page)
+ .build());
when(bigquery.listTableData(TABLE_ID1, SCHEMA, BigQuery.TableDataListOption.pageSize(10L)))
- .thenReturn(new TableResult(SCHEMA, ROWS.size(), page, null));
+ .thenReturn(
+ TableResult.newBuilder()
+ .setSchema(SCHEMA)
+ .setTotalRows((long) ROWS.size())
+ .setPageNoSchema(page)
+ .build());
Page dataPage = table.list(BigQuery.TableDataListOption.pageSize(10L));
assertThat(dataPage.getValues()).containsExactlyElementsIn(ROWS).inOrder();
From 531b1a0b93ee19a7479a006207c30f7399869773 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 22 Feb 2024 16:16:23 +0100
Subject: [PATCH 225/393] deps: update github/codeql-action action to v2.24.4
(#3161)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update github/codeql-action action to v2.24.4
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index d5706e48e..b16bfac23 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@4a8f20f6b9b5114f354129a1e2f391d75bfd640a # v2.24.3
+ uses: github/codeql-action/upload-sarif@80eb8d5395c1d8edac424890a2dc323568ba25fb # v2.24.4
with:
sarif_file: results.sarif
From 1da59ce0cecfd6582070f59077d90f8523783933 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Thu, 22 Feb 2024 10:44:47 -0500
Subject: [PATCH 226/393] chore(main): release 2.38.0 (#3156)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
CHANGELOG.md | 15 +++++++++++++++
benchmark/pom.xml | 2 +-
google-cloud-bigquery-bom/pom.xml | 4 ++--
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
7 files changed, 24 insertions(+), 9 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d543ab3d0..3eb475e7d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,20 @@
# Changelog
+## [2.38.0](https://github.com/googleapis/java-bigquery/compare/v2.37.2...v2.38.0) (2024-02-22)
+
+
+### Features
+
+* Add MetadataCacheStatistics to Job QueryStatistics ([#3133](https://github.com/googleapis/java-bigquery/issues/3133)) ([f3f387b](https://github.com/googleapis/java-bigquery/commit/f3f387b2265d527f3b5bf567c1eaf7ecdad6e096))
+
+
+### Dependencies
+
+* Update dependency com.google.apis:google-api-services-bigquery to v2-rev20240211-2.0.0 ([#3152](https://github.com/googleapis/java-bigquery/issues/3152)) ([e5d6888](https://github.com/googleapis/java-bigquery/commit/e5d688872e4c125a68ed6f666bffd0a41efc3f30))
+* Update github/codeql-action action to v2.24.3 ([#3148](https://github.com/googleapis/java-bigquery/issues/3148)) ([a0a7b01](https://github.com/googleapis/java-bigquery/commit/a0a7b0186ae47fcfcf75fe4f35cce50044c6926c))
+* Update github/codeql-action action to v2.24.3 ([#3150](https://github.com/googleapis/java-bigquery/issues/3150)) ([042fcf0](https://github.com/googleapis/java-bigquery/commit/042fcf0aca46d349103211c3d04ae4b49868933c))
+* Update github/codeql-action action to v2.24.4 ([#3161](https://github.com/googleapis/java-bigquery/issues/3161)) ([531b1a0](https://github.com/googleapis/java-bigquery/commit/531b1a0b93ee19a7479a006207c30f7399869773))
+
## [2.37.2](https://github.com/googleapis/java-bigquery/compare/v2.37.1...v2.37.2) (2024-02-14)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 3eca364f1..fccb9667f 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.37.3-SNAPSHOT
+ 2.38.0
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index 8b1813426..68a0051ed 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-bigquery-bom
- 2.37.3-SNAPSHOT
+ 2.38.0
pom
com.google.cloud
@@ -54,7 +54,7 @@
com.google.cloud
google-cloud-bigquery
- 2.37.3-SNAPSHOT
+ 2.38.0
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 15be2ae8e..de38f783f 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.37.3-SNAPSHOT
+ 2.38.0
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.37.3-SNAPSHOT
+ 2.38.0
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 4fbdd82f6..923b51cda 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.37.3-SNAPSHOT
+ 2.38.0
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -110,7 +110,7 @@
com.google.cloud
google-cloud-bigquery
- 2.37.3-SNAPSHOT
+ 2.38.0
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index bbf8c5c4a..37e581dfe 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.37.3-SNAPSHOT
+ 2.38.0
diff --git a/versions.txt b/versions.txt
index f429a3ad8..160dbac95 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.37.2:2.37.3-SNAPSHOT
\ No newline at end of file
+google-cloud-bigquery:2.38.0:2.38.0
\ No newline at end of file
From 8ac7722977e453d272710153180f458be6427aa4 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 23 Feb 2024 14:19:52 +0100
Subject: [PATCH 227/393] deps: update github/codeql-action action to v2.24.5
(#3165)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update github/codeql-action action to v2.24.5
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.github/workflows/scorecard.yml | 2 +-
README.md | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index b16bfac23..06a691499 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@80eb8d5395c1d8edac424890a2dc323568ba25fb # v2.24.4
+ uses: github/codeql-action/upload-sarif@a56a03b370b87b26fde6d680755f818cfda0372b # v2.24.5
with:
sarif_file: results.sarif
diff --git a/README.md b/README.md
index 977432d01..8b6b05d51 100644
--- a/README.md
+++ b/README.md
@@ -60,13 +60,13 @@ implementation 'com.google.cloud:google-cloud-bigquery'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigquery:2.37.2'
+implementation 'com.google.cloud:google-cloud-bigquery:2.38.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.37.2"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.38.0"
```
@@ -351,7 +351,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquery/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.37.2
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.38.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
From b68ab427b157a40c7e7d415b02a01f1988080e08 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 23 Feb 2024 14:22:25 +0100
Subject: [PATCH 228/393] deps: update dependency
org.graalvm.buildtools:native-maven-plugin to v0.10.1 (#3154)
---
samples/native-image-sample/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index 054077ec3..b9eff795d 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -121,7 +121,7 @@
org.graalvm.buildtools
native-maven-plugin
- 0.10.0
+ 0.10.1
true
com.example.bigquery.NativeImageBigquerySample
From b0fd2b9a6bf83a8631595412bf9046fe25f15003 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 23 Feb 2024 15:52:48 +0100
Subject: [PATCH 229/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigtable to v2.34.0 (#3157)
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 7352fd1a3..4a9d1c752 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -63,7 +63,7 @@
com.google.cloud
google-cloud-bigtable
- 2.33.0
+ 2.34.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 37e581dfe..1e2de9e89 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -61,7 +61,7 @@
com.google.cloud
google-cloud-bigtable
- 2.33.0
+ 2.34.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index cb740eff4..6c397a858 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -79,7 +79,7 @@
com.google.cloud
google-cloud-bigtable
- 2.33.0
+ 2.34.0
test
From b8b741828221001397ee335a000efff5e2dda8b1 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 23 Feb 2024 15:53:03 +0100
Subject: [PATCH 230/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquery to v2.38.0 (#3164)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigquery to v2.38.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 2 +-
samples/install-without-bom/pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 8b6b05d51..a0eb62053 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquery
- 2.37.2
+ 2.38.0
```
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 4a9d1c752..07d39ced4 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -45,7 +45,7 @@
com.google.cloud
google-cloud-bigquery
- 2.37.2
+ 2.38.0
From 436f58cbd33546f78ae082d4261ce106f9f77a66 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 23 Feb 2024 16:19:37 +0100
Subject: [PATCH 231/393] deps: update dependency
org.graalvm.buildtools:junit-platform-native to v0.10.1 (#3153)
---
samples/native-image-sample/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index b9eff795d..9dfe7de3b 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -99,7 +99,7 @@
org.graalvm.buildtools
junit-platform-native
- 0.10.0
+ 0.10.1
test
From e31b5b7ea4b91ab0096bf318377dfd66d1364b3c Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 23 Feb 2024 19:17:55 +0100
Subject: [PATCH 232/393] deps: update dependency
com.google.cloud:google-cloud-datacatalog-bom to v1.42.0 (#3160)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.42.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 923b51cda..82d260c25 100644
--- a/pom.xml
+++ b/pom.xml
@@ -96,7 +96,7 @@
com.google.cloud
google-cloud-datacatalog-bom
- 1.41.0
+ 1.42.0
pom
import
From acffb24030720ddf1f5358f50e22af366ba28f83 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Fri, 23 Feb 2024 20:24:15 +0000
Subject: [PATCH 233/393] chore(main): release 2.38.1-SNAPSHOT (#3162)
:robot: I have created a release *beep* *boop*
---
### Updating meta-information for bleeding-edge SNAPSHOT release.
---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
---
benchmark/pom.xml | 2 +-
google-cloud-bigquery-bom/pom.xml | 4 ++--
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
6 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index fccb9667f..95dc2e023 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.38.0
+ 2.38.1-SNAPSHOT
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index 68a0051ed..558334208 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-bigquery-bom
- 2.38.0
+ 2.38.1-SNAPSHOT
pom
com.google.cloud
@@ -54,7 +54,7 @@
com.google.cloud
google-cloud-bigquery
- 2.38.0
+ 2.38.1-SNAPSHOT
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index de38f783f..b191fd1b6 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.38.0
+ 2.38.1-SNAPSHOT
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.38.0
+ 2.38.1-SNAPSHOT
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 82d260c25..3b7047817 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.38.0
+ 2.38.1-SNAPSHOT
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -110,7 +110,7 @@
com.google.cloud
google-cloud-bigquery
- 2.38.0
+ 2.38.1-SNAPSHOT
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 1e2de9e89..3c9757d00 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.38.0
+ 2.38.1-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index 160dbac95..54415640e 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.38.0:2.38.0
\ No newline at end of file
+google-cloud-bigquery:2.38.0:2.38.1-SNAPSHOT
\ No newline at end of file
From d6c65abb844d1cca616907cd6aeb02f2a6042916 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 26 Feb 2024 20:28:34 +0100
Subject: [PATCH 234/393] deps: update dependency
com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.38.0
(#3159)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 3b7047817..8d99ab4ca 100644
--- a/pom.xml
+++ b/pom.xml
@@ -166,7 +166,7 @@
com.google.api.grpc
proto-google-cloud-bigqueryconnection-v1
- 2.37.0
+ 2.38.0
test
From a9df1ba8895d1656d2ffd9037de27f62c625215b Mon Sep 17 00:00:00 2001
From: Mridula <66699525+mpeddada1@users.noreply.github.com>
Date: Tue, 27 Feb 2024 14:57:35 -0500
Subject: [PATCH 235/393] chore: use sdk-platform-java-config instead of
java-shared-config (#3173)
chore: use sdk-platform-java-config instead of java-shared-config
---
google-cloud-bigquery-bom/pom.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index 558334208..2d55ae9ef 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -7,8 +7,8 @@
pom
com.google.cloud
- google-cloud-shared-config
- 1.7.1
+ sdk-platform-java-config
+ 3.25.0
From 45c5096c756a6599233935553708af4f53de5d58 Mon Sep 17 00:00:00 2001
From: Lawrence Qiu
Date: Thu, 29 Feb 2024 19:52:54 +0000
Subject: [PATCH 236/393] chore: next release from main branch is 2.36.0
(#3174)
---
.github/release-please.yml | 4 ++++
.github/sync-repo-settings.yaml | 15 +++++++++++++++
2 files changed, 19 insertions(+)
diff --git a/.github/release-please.yml b/.github/release-please.yml
index 7abf72a6e..ab97340a7 100644
--- a/.github/release-please.yml
+++ b/.github/release-please.yml
@@ -19,6 +19,10 @@ branches:
handleGHRelease: true
releaseType: java-backport
branch: 2.19.x
+ - bumpMinorPreMajor: true
+ handleGHRelease: true
+ releaseType: java-backport
+ branch: 2.35.x
bumpMinorPreMajor: true
handleGHRelease: true
releaseType: java-yoshi
diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml
index 9583d638c..418e8ab98 100644
--- a/.github/sync-repo-settings.yaml
+++ b/.github/sync-repo-settings.yaml
@@ -92,6 +92,21 @@ branchProtectionRules:
- 'Kokoro - Test: Integration'
- cla/google
- OwlBot Post Processor
+ - pattern: 2.35.x
+ isAdminEnforced: true
+ requiredApprovingReviewCount: 1
+ requiresCodeOwnerReviews: true
+ requiresStrictStatusChecks: false
+ requiredStatusCheckContexts:
+ - dependencies (17)
+ - lint
+ - clirr
+ - units (8)
+ - units (11)
+ - 'Kokoro - Test: Integration'
+ - cla/google
+ - OwlBot Post Processor
+ - javadoc
permissionRules:
- team: api-bigquery
permission: admin
From b93e62e30808d9df95fa4c268dcd37a5462056e1 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 4 Mar 2024 14:36:19 +0100
Subject: [PATCH 237/393] deps: update dependency
com.google.cloud:sdk-platform-java-config to v3.27.0 (#3176)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:sdk-platform-java-config](https://togithub.com/googleapis/java-shared-config) | `3.25.0` -> `3.27.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:sdk-platform-java-config/3.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:sdk-platform-java-config/3.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:sdk-platform-java-config/3.25.0/3.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:sdk-platform-java-config/3.25.0/3.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.
---
- [ ] If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-bigquery).
---
.kokoro/continuous/graalvm-native-17.cfg | 2 +-
.kokoro/continuous/graalvm-native.cfg | 2 +-
.kokoro/presubmit/graalvm-native-17.cfg | 2 +-
.kokoro/presubmit/graalvm-native.cfg | 2 +-
google-cloud-bigquery-bom/pom.xml | 2 +-
pom.xml | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/.kokoro/continuous/graalvm-native-17.cfg b/.kokoro/continuous/graalvm-native-17.cfg
index 28a65e0fe..179708616 100644
--- a/.kokoro/continuous/graalvm-native-17.cfg
+++ b/.kokoro/continuous/graalvm-native-17.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_b:3.25.0"
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.27.0"
}
env_vars: {
diff --git a/.kokoro/continuous/graalvm-native.cfg b/.kokoro/continuous/graalvm-native.cfg
index d9c57fee1..b44ea4a6e 100644
--- a/.kokoro/continuous/graalvm-native.cfg
+++ b/.kokoro/continuous/graalvm-native.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.25.0"
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.27.0"
}
env_vars: {
diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg
index 890878fef..3762600b8 100644
--- a/.kokoro/presubmit/graalvm-native-17.cfg
+++ b/.kokoro/presubmit/graalvm-native-17.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_b:3.25.0""
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.27.0""
}
env_vars: {
diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg
index 8e8cded78..628318477 100644
--- a/.kokoro/presubmit/graalvm-native.cfg
+++ b/.kokoro/presubmit/graalvm-native.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.25.0"
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.27.0"
}
env_vars: {
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index 2d55ae9ef..2a779cabf 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -8,7 +8,7 @@
com.google.cloud
sdk-platform-java-config
- 3.25.0
+ 3.27.0
diff --git a/pom.xml b/pom.xml
index 8d99ab4ca..06206ac85 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
com.google.cloud
sdk-platform-java-config
- 3.25.0
+ 3.27.0
From 8e2eccbab081e8e388e8613669cc8651e549d029 Mon Sep 17 00:00:00 2001
From: Tomo Suzuki
Date: Tue, 5 Mar 2024 16:17:10 -0500
Subject: [PATCH 238/393] ci: sample build in Cloud Build (#3171)
* ci: sample build in Cloud Build
b/322966824
---
.cloudbuild/samples_build.yaml | 45 +++++++++++++++++++
.../com/example/bigquery/CopyTableCmekIT.java | 2 +
.../example/bigquery/CreateDatasetAwsIT.java | 2 +
.../bigquery/CreateExternalTableAwsIT.java | 2 +
.../example/bigquery/CreateTableCmekIT.java | 2 +
.../bigquery/ExportQueryResultsToS3IT.java | 2 +
.../com/example/bigquery/ExtractModelIT.java | 2 +
.../bigquery/ExtractTableCompressedIT.java | 2 +
.../example/bigquery/ExtractTableToCsvIT.java | 2 +
.../bigquery/ExtractTableToJsonIT.java | 2 +
.../bigquery/LoadJsonFromGcsCmekIT.java | 2 +
.../bigquery/QueryClusteredTableIT.java | 2 +
.../bigquery/QueryDestinationTableCmekIT.java | 2 +
.../bigquery/QueryExternalBigtablePermIT.java | 2 +
.../bigquery/QueryExternalBigtableTempIT.java | 2 +
.../bigquery/QueryExternalSheetsPermIT.java | 2 +
.../bigquery/QueryExternalSheetsTempIT.java | 2 +
.../bigquery/QueryExternalTableAwsIT.java | 2 +
.../bigquery/UpdateDatasetAccessIT.java | 2 +
.../example/bigquery/UpdateTableCmekIT.java | 2 +
20 files changed, 83 insertions(+)
create mode 100644 .cloudbuild/samples_build.yaml
diff --git a/.cloudbuild/samples_build.yaml b/.cloudbuild/samples_build.yaml
new file mode 100644
index 000000000..354adf972
--- /dev/null
+++ b/.cloudbuild/samples_build.yaml
@@ -0,0 +1,45 @@
+steps:
+- name: gcr.io/cloud-devrel-public-resources/java8
+ entrypoint: ls
+ args: [
+ '-alt',
+ ]
+- name: gcr.io/cloud-devrel-public-resources/java8
+ entrypoint: curl
+ args: [
+ '--header',
+ 'Metadata-Flavor: Google',
+ 'http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/email'
+ ]
+- name: gcr.io/cloud-devrel-public-resources/java8
+ entrypoint: pwd
+- name: gcr.io/cloud-devrel-public-resources/java8
+ entrypoint: bash
+ args: [
+ '.kokoro/build.sh'
+ ]
+ env:
+ - 'JOB_TYPE=samples'
+ - 'BIGQUERY_PROJECT_ID=cloud-java-ci-sample'
+ - 'GOOGLE_CLOUD_PROJECT=cloud-java-ci-sample'
+ - 'GCS_BUCKET=java-samples-bigquery'
+ - 'BIGQUERY_TEST_TABLE=test_table'
+ - 'BIGQUERY_MODEL_NAME=natality_model'
+ - 'BIGQUERY_MODEL_TEST_PROJECT_ID=bigquery-public-data'
+ - 'OMNI_PROJECT_ID=sunlit-ace-276222'
+ - 'OMNI_EXTERNAL_TABLE_NAME=devrel_test_table'
+ - 'BIGQUERY_TABLE2=table2'
+ - 'BIGQUERY_TABLE1=table1'
+ - 'BIGTABLE_TESTING_INSTANCE=bigquery-samples-instance'
+ - 'BIGQUERY_DATASET_NAME=bigquery_test_dataset'
+ - 'KOKORO_GFILE_DIR=/workspace'
+ # This key is not available yet
+ - 'BIGQUERY_KMS_KEY_NAME=projects/cloud-java-ci-sample/locations/us/keyRings/bq-kms-key/cryptoKeys/bq-kms-key'
+- name: gcr.io/cloud-devrel-public-resources/java8
+ entrypoint: echo
+ args: [
+ 'Sample job succeeded',
+ ]
+timeout: 3600s
+options:
+ defaultLogsBucketBehavior: REGIONAL_USER_OWNED_BUCKET
diff --git a/samples/snippets/src/test/java/com/example/bigquery/CopyTableCmekIT.java b/samples/snippets/src/test/java/com/example/bigquery/CopyTableCmekIT.java
index d5b12a0e2..7a601cf95 100644
--- a/samples/snippets/src/test/java/com/example/bigquery/CopyTableCmekIT.java
+++ b/samples/snippets/src/test/java/com/example/bigquery/CopyTableCmekIT.java
@@ -31,8 +31,10 @@
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
+import org.junit.Ignore;
import org.junit.Test;
+@Ignore
public class CopyTableCmekIT {
private final Logger log = Logger.getLogger(this.getClass().getName());
diff --git a/samples/snippets/src/test/java/com/example/bigquery/CreateDatasetAwsIT.java b/samples/snippets/src/test/java/com/example/bigquery/CreateDatasetAwsIT.java
index f4b5cf0f6..6f59f0c49 100644
--- a/samples/snippets/src/test/java/com/example/bigquery/CreateDatasetAwsIT.java
+++ b/samples/snippets/src/test/java/com/example/bigquery/CreateDatasetAwsIT.java
@@ -27,8 +27,10 @@
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
+import org.junit.Ignore;
import org.junit.Test;
+@Ignore
public class CreateDatasetAwsIT {
private static final String ID = UUID.randomUUID().toString().substring(0, 8);
diff --git a/samples/snippets/src/test/java/com/example/bigquery/CreateExternalTableAwsIT.java b/samples/snippets/src/test/java/com/example/bigquery/CreateExternalTableAwsIT.java
index 8aac2716e..80be0bb26 100644
--- a/samples/snippets/src/test/java/com/example/bigquery/CreateExternalTableAwsIT.java
+++ b/samples/snippets/src/test/java/com/example/bigquery/CreateExternalTableAwsIT.java
@@ -32,8 +32,10 @@
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
+import org.junit.Ignore;
import org.junit.Test;
+@Ignore
public class CreateExternalTableAwsIT {
private static final String ID = UUID.randomUUID().toString().substring(0, 8);
diff --git a/samples/snippets/src/test/java/com/example/bigquery/CreateTableCmekIT.java b/samples/snippets/src/test/java/com/example/bigquery/CreateTableCmekIT.java
index fd35c390e..7169a8fce 100644
--- a/samples/snippets/src/test/java/com/example/bigquery/CreateTableCmekIT.java
+++ b/samples/snippets/src/test/java/com/example/bigquery/CreateTableCmekIT.java
@@ -31,8 +31,10 @@
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
+import org.junit.Ignore;
import org.junit.Test;
+@Ignore
public class CreateTableCmekIT {
private final Logger log = Logger.getLogger(this.getClass().getName());
diff --git a/samples/snippets/src/test/java/com/example/bigquery/ExportQueryResultsToS3IT.java b/samples/snippets/src/test/java/com/example/bigquery/ExportQueryResultsToS3IT.java
index 61a543812..b014bde60 100644
--- a/samples/snippets/src/test/java/com/example/bigquery/ExportQueryResultsToS3IT.java
+++ b/samples/snippets/src/test/java/com/example/bigquery/ExportQueryResultsToS3IT.java
@@ -26,8 +26,10 @@
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
+import org.junit.Ignore;
import org.junit.Test;
+@Ignore
public class ExportQueryResultsToS3IT {
private final Logger log = Logger.getLogger(this.getClass().getName());
private ByteArrayOutputStream bout;
diff --git a/samples/snippets/src/test/java/com/example/bigquery/ExtractModelIT.java b/samples/snippets/src/test/java/com/example/bigquery/ExtractModelIT.java
index 3e13e7816..ac0d13111 100644
--- a/samples/snippets/src/test/java/com/example/bigquery/ExtractModelIT.java
+++ b/samples/snippets/src/test/java/com/example/bigquery/ExtractModelIT.java
@@ -26,8 +26,10 @@
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
+import org.junit.Ignore;
import org.junit.Test;
+@Ignore
public class ExtractModelIT {
private final Logger log = Logger.getLogger(this.getClass().getName());
diff --git a/samples/snippets/src/test/java/com/example/bigquery/ExtractTableCompressedIT.java b/samples/snippets/src/test/java/com/example/bigquery/ExtractTableCompressedIT.java
index 8fc5eed6e..4e551ed81 100644
--- a/samples/snippets/src/test/java/com/example/bigquery/ExtractTableCompressedIT.java
+++ b/samples/snippets/src/test/java/com/example/bigquery/ExtractTableCompressedIT.java
@@ -26,8 +26,10 @@
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
+import org.junit.Ignore;
import org.junit.Test;
+@Ignore
public class ExtractTableCompressedIT {
private final Logger log = Logger.getLogger(this.getClass().getName());
diff --git a/samples/snippets/src/test/java/com/example/bigquery/ExtractTableToCsvIT.java b/samples/snippets/src/test/java/com/example/bigquery/ExtractTableToCsvIT.java
index c3b6550bf..838a989b6 100644
--- a/samples/snippets/src/test/java/com/example/bigquery/ExtractTableToCsvIT.java
+++ b/samples/snippets/src/test/java/com/example/bigquery/ExtractTableToCsvIT.java
@@ -26,8 +26,10 @@
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
+import org.junit.Ignore;
import org.junit.Test;
+@Ignore
public class ExtractTableToCsvIT {
private final Logger log = Logger.getLogger(this.getClass().getName());
diff --git a/samples/snippets/src/test/java/com/example/bigquery/ExtractTableToJsonIT.java b/samples/snippets/src/test/java/com/example/bigquery/ExtractTableToJsonIT.java
index 68f790383..393188c7e 100644
--- a/samples/snippets/src/test/java/com/example/bigquery/ExtractTableToJsonIT.java
+++ b/samples/snippets/src/test/java/com/example/bigquery/ExtractTableToJsonIT.java
@@ -27,8 +27,10 @@
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
+import org.junit.Ignore;
import org.junit.Test;
+@Ignore
public class ExtractTableToJsonIT {
private final Logger log = Logger.getLogger(this.getClass().getName());
diff --git a/samples/snippets/src/test/java/com/example/bigquery/LoadJsonFromGcsCmekIT.java b/samples/snippets/src/test/java/com/example/bigquery/LoadJsonFromGcsCmekIT.java
index fb7ea8e52..c4507f11d 100644
--- a/samples/snippets/src/test/java/com/example/bigquery/LoadJsonFromGcsCmekIT.java
+++ b/samples/snippets/src/test/java/com/example/bigquery/LoadJsonFromGcsCmekIT.java
@@ -28,8 +28,10 @@
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
+import org.junit.Ignore;
import org.junit.Test;
+@Ignore
public class LoadJsonFromGcsCmekIT {
private final Logger log = Logger.getLogger(this.getClass().getName());
diff --git a/samples/snippets/src/test/java/com/example/bigquery/QueryClusteredTableIT.java b/samples/snippets/src/test/java/com/example/bigquery/QueryClusteredTableIT.java
index 7b861be5f..abdaed05f 100644
--- a/samples/snippets/src/test/java/com/example/bigquery/QueryClusteredTableIT.java
+++ b/samples/snippets/src/test/java/com/example/bigquery/QueryClusteredTableIT.java
@@ -24,8 +24,10 @@
import java.util.logging.Logger;
import org.junit.After;
import org.junit.Before;
+import org.junit.Ignore;
import org.junit.Test;
+@Ignore
public class QueryClusteredTableIT {
private final Logger log = Logger.getLogger(this.getClass().getName());
diff --git a/samples/snippets/src/test/java/com/example/bigquery/QueryDestinationTableCmekIT.java b/samples/snippets/src/test/java/com/example/bigquery/QueryDestinationTableCmekIT.java
index df7d3ec74..e4f21760d 100644
--- a/samples/snippets/src/test/java/com/example/bigquery/QueryDestinationTableCmekIT.java
+++ b/samples/snippets/src/test/java/com/example/bigquery/QueryDestinationTableCmekIT.java
@@ -31,8 +31,10 @@
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
+import org.junit.Ignore;
import org.junit.Test;
+@Ignore
public class QueryDestinationTableCmekIT {
private final Logger log = Logger.getLogger(this.getClass().getName());
diff --git a/samples/snippets/src/test/java/com/example/bigquery/QueryExternalBigtablePermIT.java b/samples/snippets/src/test/java/com/example/bigquery/QueryExternalBigtablePermIT.java
index 5e0fd3cab..7f14a2871 100644
--- a/samples/snippets/src/test/java/com/example/bigquery/QueryExternalBigtablePermIT.java
+++ b/samples/snippets/src/test/java/com/example/bigquery/QueryExternalBigtablePermIT.java
@@ -34,8 +34,10 @@
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
+import org.junit.Ignore;
import org.junit.Test;
+@Ignore
public class QueryExternalBigtablePermIT {
private final Logger log = Logger.getLogger(this.getClass().getName());
diff --git a/samples/snippets/src/test/java/com/example/bigquery/QueryExternalBigtableTempIT.java b/samples/snippets/src/test/java/com/example/bigquery/QueryExternalBigtableTempIT.java
index 27208b196..dce81d637 100644
--- a/samples/snippets/src/test/java/com/example/bigquery/QueryExternalBigtableTempIT.java
+++ b/samples/snippets/src/test/java/com/example/bigquery/QueryExternalBigtableTempIT.java
@@ -34,8 +34,10 @@
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
+import org.junit.Ignore;
import org.junit.Test;
+@Ignore
public class QueryExternalBigtableTempIT {
private final Logger log = Logger.getLogger(this.getClass().getName());
diff --git a/samples/snippets/src/test/java/com/example/bigquery/QueryExternalSheetsPermIT.java b/samples/snippets/src/test/java/com/example/bigquery/QueryExternalSheetsPermIT.java
index 1eb72c4d9..fc16a4f8e 100644
--- a/samples/snippets/src/test/java/com/example/bigquery/QueryExternalSheetsPermIT.java
+++ b/samples/snippets/src/test/java/com/example/bigquery/QueryExternalSheetsPermIT.java
@@ -30,8 +30,10 @@
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
+import org.junit.Ignore;
import org.junit.Test;
+@Ignore
public class QueryExternalSheetsPermIT {
private final Logger log = Logger.getLogger(this.getClass().getName());
diff --git a/samples/snippets/src/test/java/com/example/bigquery/QueryExternalSheetsTempIT.java b/samples/snippets/src/test/java/com/example/bigquery/QueryExternalSheetsTempIT.java
index 6a167d47a..2098cce6e 100644
--- a/samples/snippets/src/test/java/com/example/bigquery/QueryExternalSheetsTempIT.java
+++ b/samples/snippets/src/test/java/com/example/bigquery/QueryExternalSheetsTempIT.java
@@ -28,8 +28,10 @@
import java.util.logging.Logger;
import org.junit.After;
import org.junit.Before;
+import org.junit.Ignore;
import org.junit.Test;
+@Ignore
public class QueryExternalSheetsTempIT {
private final Logger log = Logger.getLogger(this.getClass().getName());
diff --git a/samples/snippets/src/test/java/com/example/bigquery/QueryExternalTableAwsIT.java b/samples/snippets/src/test/java/com/example/bigquery/QueryExternalTableAwsIT.java
index 4759a4eb6..504a72f45 100644
--- a/samples/snippets/src/test/java/com/example/bigquery/QueryExternalTableAwsIT.java
+++ b/samples/snippets/src/test/java/com/example/bigquery/QueryExternalTableAwsIT.java
@@ -26,8 +26,10 @@
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
+import org.junit.Ignore;
import org.junit.Test;
+@Ignore
public class QueryExternalTableAwsIT {
private final Logger log = Logger.getLogger(this.getClass().getName());
diff --git a/samples/snippets/src/test/java/com/example/bigquery/UpdateDatasetAccessIT.java b/samples/snippets/src/test/java/com/example/bigquery/UpdateDatasetAccessIT.java
index d4ec62df2..2a1ed26f9 100644
--- a/samples/snippets/src/test/java/com/example/bigquery/UpdateDatasetAccessIT.java
+++ b/samples/snippets/src/test/java/com/example/bigquery/UpdateDatasetAccessIT.java
@@ -30,8 +30,10 @@
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
+import org.junit.Ignore;
import org.junit.Test;
+@Ignore
public class UpdateDatasetAccessIT {
private final Logger log = Logger.getLogger(this.getClass().getName());
diff --git a/samples/snippets/src/test/java/com/example/bigquery/UpdateTableCmekIT.java b/samples/snippets/src/test/java/com/example/bigquery/UpdateTableCmekIT.java
index 3c6417f44..ddeb7a022 100644
--- a/samples/snippets/src/test/java/com/example/bigquery/UpdateTableCmekIT.java
+++ b/samples/snippets/src/test/java/com/example/bigquery/UpdateTableCmekIT.java
@@ -31,8 +31,10 @@
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
+import org.junit.Ignore;
import org.junit.Test;
+@Ignore
public class UpdateTableCmekIT {
private final Logger log = Logger.getLogger(this.getClass().getName());
From 5c636b4e75360cfa443ed3fd4a3118cf292e9ab5 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 7 Mar 2024 03:02:21 +0100
Subject: [PATCH 239/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquerystorage-bom to v3.3.1 (#3181)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-bigquerystorage-bom](https://togithub.com/googleapis/java-bigquerystorage) | `3.2.0` -> `3.3.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-bigquerystorage-bom/3.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-bigquerystorage-bom/3.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-bigquerystorage-bom/3.2.0/3.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-bigquerystorage-bom/3.2.0/3.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
googleapis/java-bigquerystorage (com.google.cloud:google-cloud-bigquerystorage-bom)
### [`v3.3.1`](https://togithub.com/googleapis/java-bigquerystorage/blob/HEAD/CHANGELOG.md#331-2024-03-06)
[Compare Source](https://togithub.com/googleapis/java-bigquerystorage/compare/v3.3.0...v3.3.1)
##### Dependencies
- Update dependency com.google.cloud:sdk-platform-java-config to v3.27.0 ([#2425](https://togithub.com/googleapis/java-bigquerystorage/issues/2425)) ([488d282](https://togithub.com/googleapis/java-bigquerystorage/commit/488d28287fdaefff02e7ad9f9f7c8da6ac873671))
### [`v3.3.0`](https://togithub.com/googleapis/java-bigquerystorage/blob/HEAD/CHANGELOG.md#330-2024-03-04)
[Compare Source](https://togithub.com/googleapis/java-bigquerystorage/compare/v3.2.0...v3.3.0)
##### Features
- Add RetrySettings use to Write API samples. ([#2419](https://togithub.com/googleapis/java-bigquerystorage/issues/2419)) ([5b000d0](https://togithub.com/googleapis/java-bigquerystorage/commit/5b000d0a4e953649ca4e44bffd3ba25c288e70e4))
- Add the RANGE type to the google.cloud.bigquery.storage.v1.TableFieldSchema ([#2413](https://togithub.com/googleapis/java-bigquerystorage/issues/2413)) ([6aa92b5](https://togithub.com/googleapis/java-bigquerystorage/commit/6aa92b5d03eed548de9e89b0731707f92c373ce3))
- Next release from main branch is 2.48.0 ([#2420](https://togithub.com/googleapis/java-bigquerystorage/issues/2420)) ([2dd8efc](https://togithub.com/googleapis/java-bigquerystorage/commit/2dd8efc4a21f186c20e86304092d22fd574e822e))
##### Bug Fixes
- Fix issue where Universe Domain is not correctly set. ([#2423](https://togithub.com/googleapis/java-bigquerystorage/issues/2423)) ([b7ebd73](https://togithub.com/googleapis/java-bigquerystorage/commit/b7ebd73754fe51a4835f676e429b95b80f8114a5))
##### Dependencies
- Update dependency com.google.cloud:google-cloud-bigquery to v2.38.0 ([#2417](https://togithub.com/googleapis/java-bigquerystorage/issues/2417)) ([8184a0f](https://togithub.com/googleapis/java-bigquerystorage/commit/8184a0f74e98340fe62621957f3ac78ad70c9edb))
- Update dependency com.google.cloud:google-cloud-bigquery to v2.38.0 ([#2418](https://togithub.com/googleapis/java-bigquerystorage/issues/2418)) ([4d5eb73](https://togithub.com/googleapis/java-bigquerystorage/commit/4d5eb7343cdf5fd617a2da120642bfd678d58f94))
- Update dependency com.google.truth:truth to v1.4.1 ([#2412](https://togithub.com/googleapis/java-bigquerystorage/issues/2412)) ([c2dcb73](https://togithub.com/googleapis/java-bigquerystorage/commit/c2dcb73c54ad5dcb68ce18741efaf479298373e1))
- Update dependency com.google.truth:truth to v1.4.2 ([#2424](https://togithub.com/googleapis/java-bigquerystorage/issues/2424)) ([7a12de0](https://togithub.com/googleapis/java-bigquerystorage/commit/7a12de0ebc6a0a0f4bb438e3dcb36ee0759c0b94))
- Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.1 ([#2414](https://togithub.com/googleapis/java-bigquerystorage/issues/2414)) ([dfa8d53](https://togithub.com/googleapis/java-bigquerystorage/commit/dfa8d532e5e1a28d644fefed6650ca1a2481a3a3))
- Update dependency org.json:json to v20240303 ([#2426](https://togithub.com/googleapis/java-bigquerystorage/issues/2426)) ([2accca7](https://togithub.com/googleapis/java-bigquerystorage/commit/2accca72f2bd26c9a1cf1bd918961889b9ee3ace))
##### Documentation
- Mark BigQueryWrite v1beta2 as deprecated ([#2421](https://togithub.com/googleapis/java-bigquerystorage/issues/2421)) ([07d98ab](https://togithub.com/googleapis/java-bigquerystorage/commit/07d98ab417ae9fd2f90aca4d6a1a3ff62ef0bc1d))
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-bigquery).
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 06206ac85..29fedf197 100644
--- a/pom.xml
+++ b/pom.xml
@@ -72,7 +72,7 @@
com.google.cloud
google-cloud-bigquerystorage-bom
- 3.2.0
+ 3.3.1
pom
import
From 041d83cd509375c13b4ef6c6c306e56d7d4331a7 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Wed, 6 Mar 2024 22:20:28 -0500
Subject: [PATCH 240/393] chore(main): release 2.38.1 (#3167)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
CHANGELOG.md | 12 ++++++++++++
benchmark/pom.xml | 2 +-
google-cloud-bigquery-bom/pom.xml | 4 ++--
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
7 files changed, 21 insertions(+), 9 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3eb475e7d..418a208b9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,17 @@
# Changelog
+## [2.38.1](https://github.com/googleapis/java-bigquery/compare/v2.38.0...v2.38.1) (2024-03-07)
+
+
+### Dependencies
+
+* Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.38.0 ([#3159](https://github.com/googleapis/java-bigquery/issues/3159)) ([d6c65ab](https://github.com/googleapis/java-bigquery/commit/d6c65abb844d1cca616907cd6aeb02f2a6042916))
+* Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.42.0 ([#3160](https://github.com/googleapis/java-bigquery/issues/3160)) ([e31b5b7](https://github.com/googleapis/java-bigquery/commit/e31b5b7ea4b91ab0096bf318377dfd66d1364b3c))
+* Update dependency com.google.cloud:sdk-platform-java-config to v3.27.0 ([#3176](https://github.com/googleapis/java-bigquery/issues/3176)) ([b93e62e](https://github.com/googleapis/java-bigquery/commit/b93e62e30808d9df95fa4c268dcd37a5462056e1))
+* Update dependency org.graalvm.buildtools:junit-platform-native to v0.10.1 ([#3153](https://github.com/googleapis/java-bigquery/issues/3153)) ([436f58c](https://github.com/googleapis/java-bigquery/commit/436f58cbd33546f78ae082d4261ce106f9f77a66))
+* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.1 ([#3154](https://github.com/googleapis/java-bigquery/issues/3154)) ([b68ab42](https://github.com/googleapis/java-bigquery/commit/b68ab427b157a40c7e7d415b02a01f1988080e08))
+* Update github/codeql-action action to v2.24.5 ([#3165](https://github.com/googleapis/java-bigquery/issues/3165)) ([8ac7722](https://github.com/googleapis/java-bigquery/commit/8ac7722977e453d272710153180f458be6427aa4))
+
## [2.38.0](https://github.com/googleapis/java-bigquery/compare/v2.37.2...v2.38.0) (2024-02-22)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 95dc2e023..9be5bc351 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.38.1-SNAPSHOT
+ 2.38.1
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index 2a779cabf..e2a8299b4 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-bigquery-bom
- 2.38.1-SNAPSHOT
+ 2.38.1
pom
com.google.cloud
@@ -54,7 +54,7 @@
com.google.cloud
google-cloud-bigquery
- 2.38.1-SNAPSHOT
+ 2.38.1
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index b191fd1b6..551db63ce 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.38.1-SNAPSHOT
+ 2.38.1
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.38.1-SNAPSHOT
+ 2.38.1
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 29fedf197..0d5813ca4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.38.1-SNAPSHOT
+ 2.38.1
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -110,7 +110,7 @@
com.google.cloud
google-cloud-bigquery
- 2.38.1-SNAPSHOT
+ 2.38.1
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 3c9757d00..64ebf51be 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.38.1-SNAPSHOT
+ 2.38.1
diff --git a/versions.txt b/versions.txt
index 54415640e..3e8ba920b 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.38.0:2.38.1-SNAPSHOT
\ No newline at end of file
+google-cloud-bigquery:2.38.1:2.38.1
\ No newline at end of file
From 39b5f27cf019ec86c01d4ea2512402d462710a1e Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 7 Mar 2024 15:06:58 +0100
Subject: [PATCH 241/393] test(deps): update dependency com.google.truth:truth
to v1.4.2 (#3175)
---
pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/native-image-sample/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/pom.xml b/pom.xml
index 0d5813ca4..40d759c09 100644
--- a/pom.xml
+++ b/pom.xml
@@ -136,7 +136,7 @@
com.google.truth
truth
- 1.4.1
+ 1.4.2
test
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 07d39ced4..3ff0852c2 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -81,7 +81,7 @@
com.google.truth
truth
- 1.4.1
+ 1.4.2
test
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index 9dfe7de3b..ba90812eb 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -62,7 +62,7 @@
com.google.truth
truth
- 1.4.1
+ 1.4.2
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 64ebf51be..e2ef0c5b8 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -79,7 +79,7 @@
com.google.truth
truth
- 1.4.1
+ 1.4.2
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 6c397a858..2d8435138 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -97,7 +97,7 @@
com.google.truth
truth
- 1.4.1
+ 1.4.2
test
From db05223ada34947ba26b6e97376c079a8483187b Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Thu, 7 Mar 2024 15:16:16 +0000
Subject: [PATCH 242/393] chore(main): release 2.38.2-SNAPSHOT (#3183)
:robot: I have created a release *beep* *boop*
---
### Updating meta-information for bleeding-edge SNAPSHOT release.
---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
---
README.md | 6 +++---
benchmark/pom.xml | 2 +-
google-cloud-bigquery-bom/pom.xml | 4 ++--
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
7 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/README.md b/README.md
index a0eb62053..b00344b76 100644
--- a/README.md
+++ b/README.md
@@ -60,13 +60,13 @@ implementation 'com.google.cloud:google-cloud-bigquery'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigquery:2.38.0'
+implementation 'com.google.cloud:google-cloud-bigquery:2.38.1'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.38.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.38.1"
```
@@ -351,7 +351,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquery/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.38.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.38.1
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 9be5bc351..655f1b7dd 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.38.1
+ 2.38.2-SNAPSHOT
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index e2a8299b4..4e37ae91e 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-bigquery-bom
- 2.38.1
+ 2.38.2-SNAPSHOT
pom
com.google.cloud
@@ -54,7 +54,7 @@
com.google.cloud
google-cloud-bigquery
- 2.38.1
+ 2.38.2-SNAPSHOT
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 551db63ce..33d11820b 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.38.1
+ 2.38.2-SNAPSHOT
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.38.1
+ 2.38.2-SNAPSHOT
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 40d759c09..80eeb5542 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.38.1
+ 2.38.2-SNAPSHOT
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -110,7 +110,7 @@
com.google.cloud
google-cloud-bigquery
- 2.38.1
+ 2.38.2-SNAPSHOT
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index e2ef0c5b8..e76416086 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.38.1
+ 2.38.2-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index 3e8ba920b..e1d5c8b1c 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.38.1:2.38.1
\ No newline at end of file
+google-cloud-bigquery:2.38.1:2.38.2-SNAPSHOT
\ No newline at end of file
From a72262a136c659cbdc52352a8064b94d21cd43e4 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 11 Mar 2024 14:44:07 +0100
Subject: [PATCH 243/393] test(deps): update dependency
com.google.cloud:google-cloud-storage to v2.35.0 (#3180)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 80eeb5542..8685cbdb0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -154,7 +154,7 @@
com.google.cloud
google-cloud-storage
- 2.34.0
+ 2.35.0
test
From 18a7c8ee96eb90b5a87589df5017c52be2839bb8 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 11 Mar 2024 14:46:06 +0100
Subject: [PATCH 244/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigtable to v2.35.1 (#3182)
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 3ff0852c2..ae553725a 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -63,7 +63,7 @@
com.google.cloud
google-cloud-bigtable
- 2.34.0
+ 2.35.1
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index e76416086..9b4c211de 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -61,7 +61,7 @@
com.google.cloud
google-cloud-bigtable
- 2.34.0
+ 2.35.1
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 2d8435138..b21638a35 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -79,7 +79,7 @@
com.google.cloud
google-cloud-bigtable
- 2.34.0
+ 2.35.1
test
From 0ac910f6203821334f0d16083eb6337e908c7c55 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 11 Mar 2024 14:46:34 +0100
Subject: [PATCH 245/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquery to v2.38.1 (#3184)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigquery to v2.38.1
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 2 +-
samples/install-without-bom/pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index b00344b76..5f9648f20 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquery
- 2.38.0
+ 2.38.1
```
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index ae553725a..b30ac06d4 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -45,7 +45,7 @@
com.google.cloud
google-cloud-bigquery
- 2.38.0
+ 2.38.1
From 31f00d284868725ac7894ddaa8aa1d4251866fb1 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 11 Mar 2024 14:47:10 +0100
Subject: [PATCH 246/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigqueryconnection to v2.39.0 (#3185)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigqueryconnection to v2.39.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 8685cbdb0..632635ced 100644
--- a/pom.xml
+++ b/pom.xml
@@ -160,7 +160,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.38.0
+ 2.39.0
test
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index b30ac06d4..0aa8cd301 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -69,7 +69,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.38.0
+ 2.39.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 9b4c211de..57b51bc42 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -67,7 +67,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.38.0
+ 2.39.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index b21638a35..00a661804 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -85,7 +85,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.38.0
+ 2.39.0
test
From 9e705a140ac6fc1d1d64674dc985c35955911667 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 12 Mar 2024 13:52:33 +0100
Subject: [PATCH 247/393] deps: update dependency
com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.39.0
(#3186)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.39.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 632635ced..f59fe902f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -166,7 +166,7 @@
com.google.api.grpc
proto-google-cloud-bigqueryconnection-v1
- 2.38.0
+ 2.39.0
test
From 497ff298d84e536161b112c6b1aa176d4d962a49 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 12 Mar 2024 13:53:09 +0100
Subject: [PATCH 248/393] deps: update dependency
com.google.cloud:google-cloud-datacatalog-bom to v1.43.0 (#3187)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.43.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index f59fe902f..c1de6fa60 100644
--- a/pom.xml
+++ b/pom.xml
@@ -96,7 +96,7 @@
com.google.cloud
google-cloud-datacatalog-bom
- 1.42.0
+ 1.43.0
pom
import
From a018424ccbf3c2c554d829c97e442f4813b2c764 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 12 Mar 2024 13:53:46 +0100
Subject: [PATCH 249/393] deps: update dependency
com.google.apis:google-api-services-bigquery to v2-rev20240229-2.0.0 (#3188)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update dependency com.google.apis:google-api-services-bigquery to v2-rev20240229-2.0.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 2 +-
pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 5f9648f20..2ce7af409 100644
--- a/README.md
+++ b/README.md
@@ -53,7 +53,7 @@ If you are using Maven without the BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:
```Groovy
-implementation platform('com.google.cloud:libraries-bom:26.33.0')
+implementation platform('com.google.cloud:libraries-bom:26.34.0')
implementation 'com.google.cloud:google-cloud-bigquery'
```
diff --git a/pom.xml b/pom.xml
index c1de6fa60..fa9fcb5b4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,7 +54,7 @@
UTF-8
github
google-cloud-bigquery-parent
- v2-rev20240211-2.0.0
+ v2-rev20240229-2.0.0
15.0.0
From 940e4f6c656a2e0f1d2e4d6e08d42214d14fe125 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 12 Mar 2024 13:56:11 +0100
Subject: [PATCH 250/393] deps: update actions/checkout action (#3190)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update actions/checkout action
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 06a691499..d53763598 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -32,7 +32,7 @@ jobs:
steps:
- name: "Checkout code"
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
+ uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
with:
persist-credentials: false
From fb6284e94d4744bb4c8f9501751bf79e04a2429b Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 12 Mar 2024 14:55:27 +0100
Subject: [PATCH 251/393] deps: update arrow.version to v15.0.1 (#3189)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index fa9fcb5b4..a9da3bb4f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,7 +55,7 @@
github
google-cloud-bigquery-parent
v2-rev20240229-2.0.0
- 15.0.0
+ 15.0.1
From 8843cae621e1eede6b072b1347f2a68a36304bca Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 12 Mar 2024 17:29:29 +0100
Subject: [PATCH 252/393] deps: update github/codeql-action action to v2.24.6
(#3178)
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index d53763598..810b6be6a 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@a56a03b370b87b26fde6d680755f818cfda0372b # v2.24.5
+ uses: github/codeql-action/upload-sarif@928ff8c822d966a999092a6a35e32177899afb7c # v2.24.6
with:
sarif_file: results.sarif
From 4be8071c42bb646441100d43410663724307ff88 Mon Sep 17 00:00:00 2001
From: Tomo Suzuki
Date: Wed, 13 Mar 2024 09:20:23 -0400
Subject: [PATCH 253/393] chore: stop declaring Apache Arrow deps in
dependencyManagement (#3193)
---
pom.xml | 19 +------------------
1 file changed, 1 insertion(+), 18 deletions(-)
diff --git a/pom.xml b/pom.xml
index a9da3bb4f..852a1e951 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,7 +55,6 @@
github
google-cloud-bigquery-parent
v2-rev20240229-2.0.0
- 15.0.1
@@ -76,23 +75,7 @@
pom
import
-
- org.apache.arrow
- arrow-vector
- ${arrow.version}
-
-
- org.apache.arrow
- arrow-memory-core
- ${arrow.version}
-
-
- org.apache.arrow
- arrow-memory-netty
- ${arrow.version}
- runtime
-
-
+
com.google.cloud
google-cloud-datacatalog-bom
From 2e2d730de9e4e49f25c20de2cfe1ae38babef830 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 14 Mar 2024 15:45:07 +0100
Subject: [PATCH 254/393] deps: update github/codeql-action action to v2.24.7
(#3194)
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 810b6be6a..ff9985a87 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@928ff8c822d966a999092a6a35e32177899afb7c # v2.24.6
+ uses: github/codeql-action/upload-sarif@e56cfd0877b4826be144d11aa31e6c64a55828e9 # v2.24.7
with:
sarif_file: results.sarif
From 20e8e4f184592ef7e61130150cd88e4efe09e626 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 18 Mar 2024 17:30:25 +0100
Subject: [PATCH 255/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigtable to v2.36.0 (#3195)
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 0aa8cd301..68968cd4f 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -63,7 +63,7 @@
com.google.cloud
google-cloud-bigtable
- 2.35.1
+ 2.36.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 57b51bc42..1039b499b 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -61,7 +61,7 @@
com.google.cloud
google-cloud-bigtable
- 2.35.1
+ 2.36.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 00a661804..41482f64d 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -79,7 +79,7 @@
com.google.cloud
google-cloud-bigtable
- 2.35.1
+ 2.36.0
test
From 61f23a35d2b5cbbd66ddf35b93709a5669b5b102 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 18 Mar 2024 17:31:18 +0100
Subject: [PATCH 256/393] deps: update dependency
com.google.cloud:sdk-platform-java-config to v3.28.1 (#3196)
---
.kokoro/continuous/graalvm-native-17.cfg | 2 +-
.kokoro/continuous/graalvm-native.cfg | 2 +-
.kokoro/presubmit/graalvm-native-17.cfg | 2 +-
.kokoro/presubmit/graalvm-native.cfg | 2 +-
google-cloud-bigquery-bom/pom.xml | 2 +-
pom.xml | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/.kokoro/continuous/graalvm-native-17.cfg b/.kokoro/continuous/graalvm-native-17.cfg
index 179708616..fba53ee54 100644
--- a/.kokoro/continuous/graalvm-native-17.cfg
+++ b/.kokoro/continuous/graalvm-native-17.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_b:3.27.0"
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.28.1"
}
env_vars: {
diff --git a/.kokoro/continuous/graalvm-native.cfg b/.kokoro/continuous/graalvm-native.cfg
index b44ea4a6e..853a0d20b 100644
--- a/.kokoro/continuous/graalvm-native.cfg
+++ b/.kokoro/continuous/graalvm-native.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.27.0"
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.28.1"
}
env_vars: {
diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg
index 3762600b8..227409d0c 100644
--- a/.kokoro/presubmit/graalvm-native-17.cfg
+++ b/.kokoro/presubmit/graalvm-native-17.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_b:3.27.0""
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.28.1""
}
env_vars: {
diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg
index 628318477..94e00cbaa 100644
--- a/.kokoro/presubmit/graalvm-native.cfg
+++ b/.kokoro/presubmit/graalvm-native.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.27.0"
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.28.1"
}
env_vars: {
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index 4e37ae91e..ab041e263 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -8,7 +8,7 @@
com.google.cloud
sdk-platform-java-config
- 3.27.0
+ 3.28.1
diff --git a/pom.xml b/pom.xml
index 852a1e951..2893fd09a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
com.google.cloud
sdk-platform-java-config
- 3.27.0
+ 3.28.1
From 525ceb24fa88d10590cfed25784e48e096213463 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 18 Mar 2024 17:34:02 +0100
Subject: [PATCH 257/393] test(deps): update dependency
com.google.cloud:google-cloud-storage to v2.36.0 (#3197)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 2893fd09a..4cf444f65 100644
--- a/pom.xml
+++ b/pom.xml
@@ -137,7 +137,7 @@
com.google.cloud
google-cloud-storage
- 2.35.0
+ 2.36.0
test
From bd81a56a07c836abb05c1de0d42e9cd397920e99 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 19 Mar 2024 16:55:13 +0100
Subject: [PATCH 258/393] deps: update github/codeql-action action to v2.24.8
(#3198)
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index ff9985a87..c8c5af370 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@e56cfd0877b4826be144d11aa31e6c64a55828e9 # v2.24.7
+ uses: github/codeql-action/upload-sarif@c2dc67199a2e650d535d7de586a07597aea4d9c7 # v2.24.8
with:
sarif_file: results.sarif
From 4563ffa68f931dc89226e23dc102770a7378a2ce Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 19 Mar 2024 16:55:43 +0100
Subject: [PATCH 259/393] build(deps): update dependency
org.apache.maven.plugins:maven-compiler-plugin to v3.13.0 (#3199)
---
benchmark/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 655f1b7dd..f0d06fee1 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -37,7 +37,7 @@
org.apache.maven.plugins
maven-compiler-plugin
- 3.12.0
+ 3.13.0
org.apache.maven.plugins
From 18f21b0a2d76a4eea6ac385da2180b67ba586eaa Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 21 Mar 2024 01:49:37 +0100
Subject: [PATCH 260/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquerystorage-bom to v3.4.0 (#3200)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 4cf444f65..d9de25028 100644
--- a/pom.xml
+++ b/pom.xml
@@ -71,7 +71,7 @@
com.google.cloud
google-cloud-bigquerystorage-bom
- 3.3.1
+ 3.4.0
pom
import
From b12139cd8712468b09ed4e6ce21a6cd2e1c47a48 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Thu, 21 Mar 2024 01:34:22 +0000
Subject: [PATCH 261/393] chore(main): release 2.38.2 (#3191)
:robot: I have created a release *beep* *boop*
---
## [2.38.2](https://togithub.com/googleapis/java-bigquery/compare/v2.38.1...v2.38.2) (2024-03-21)
### Dependencies
* Update actions/checkout action ([#3190](https://togithub.com/googleapis/java-bigquery/issues/3190)) ([940e4f6](https://togithub.com/googleapis/java-bigquery/commit/940e4f6c656a2e0f1d2e4d6e08d42214d14fe125))
* Update arrow.version to v15.0.1 ([#3189](https://togithub.com/googleapis/java-bigquery/issues/3189)) ([fb6284e](https://togithub.com/googleapis/java-bigquery/commit/fb6284e94d4744bb4c8f9501751bf79e04a2429b))
* Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.39.0 ([#3186](https://togithub.com/googleapis/java-bigquery/issues/3186)) ([9e705a1](https://togithub.com/googleapis/java-bigquery/commit/9e705a140ac6fc1d1d64674dc985c35955911667))
* Update dependency com.google.apis:google-api-services-bigquery to v2-rev20240229-2.0.0 ([#3188](https://togithub.com/googleapis/java-bigquery/issues/3188)) ([a018424](https://togithub.com/googleapis/java-bigquery/commit/a018424ccbf3c2c554d829c97e442f4813b2c764))
* Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.43.0 ([#3187](https://togithub.com/googleapis/java-bigquery/issues/3187)) ([497ff29](https://togithub.com/googleapis/java-bigquery/commit/497ff298d84e536161b112c6b1aa176d4d962a49))
* Update dependency com.google.cloud:sdk-platform-java-config to v3.28.1 ([#3196](https://togithub.com/googleapis/java-bigquery/issues/3196)) ([61f23a3](https://togithub.com/googleapis/java-bigquery/commit/61f23a35d2b5cbbd66ddf35b93709a5669b5b102))
* Update github/codeql-action action to v2.24.6 ([#3178](https://togithub.com/googleapis/java-bigquery/issues/3178)) ([8843cae](https://togithub.com/googleapis/java-bigquery/commit/8843cae621e1eede6b072b1347f2a68a36304bca))
* Update github/codeql-action action to v2.24.7 ([#3194](https://togithub.com/googleapis/java-bigquery/issues/3194)) ([2e2d730](https://togithub.com/googleapis/java-bigquery/commit/2e2d730de9e4e49f25c20de2cfe1ae38babef830))
* Update github/codeql-action action to v2.24.8 ([#3198](https://togithub.com/googleapis/java-bigquery/issues/3198)) ([bd81a56](https://togithub.com/googleapis/java-bigquery/commit/bd81a56a07c836abb05c1de0d42e9cd397920e99))
---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
---
CHANGELOG.md | 15 +++++++++++++++
benchmark/pom.xml | 2 +-
google-cloud-bigquery-bom/pom.xml | 4 ++--
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
7 files changed, 24 insertions(+), 9 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 418a208b9..547ec4ce2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,20 @@
# Changelog
+## [2.38.2](https://github.com/googleapis/java-bigquery/compare/v2.38.1...v2.38.2) (2024-03-21)
+
+
+### Dependencies
+
+* Update actions/checkout action ([#3190](https://github.com/googleapis/java-bigquery/issues/3190)) ([940e4f6](https://github.com/googleapis/java-bigquery/commit/940e4f6c656a2e0f1d2e4d6e08d42214d14fe125))
+* Update arrow.version to v15.0.1 ([#3189](https://github.com/googleapis/java-bigquery/issues/3189)) ([fb6284e](https://github.com/googleapis/java-bigquery/commit/fb6284e94d4744bb4c8f9501751bf79e04a2429b))
+* Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.39.0 ([#3186](https://github.com/googleapis/java-bigquery/issues/3186)) ([9e705a1](https://github.com/googleapis/java-bigquery/commit/9e705a140ac6fc1d1d64674dc985c35955911667))
+* Update dependency com.google.apis:google-api-services-bigquery to v2-rev20240229-2.0.0 ([#3188](https://github.com/googleapis/java-bigquery/issues/3188)) ([a018424](https://github.com/googleapis/java-bigquery/commit/a018424ccbf3c2c554d829c97e442f4813b2c764))
+* Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.43.0 ([#3187](https://github.com/googleapis/java-bigquery/issues/3187)) ([497ff29](https://github.com/googleapis/java-bigquery/commit/497ff298d84e536161b112c6b1aa176d4d962a49))
+* Update dependency com.google.cloud:sdk-platform-java-config to v3.28.1 ([#3196](https://github.com/googleapis/java-bigquery/issues/3196)) ([61f23a3](https://github.com/googleapis/java-bigquery/commit/61f23a35d2b5cbbd66ddf35b93709a5669b5b102))
+* Update github/codeql-action action to v2.24.6 ([#3178](https://github.com/googleapis/java-bigquery/issues/3178)) ([8843cae](https://github.com/googleapis/java-bigquery/commit/8843cae621e1eede6b072b1347f2a68a36304bca))
+* Update github/codeql-action action to v2.24.7 ([#3194](https://github.com/googleapis/java-bigquery/issues/3194)) ([2e2d730](https://github.com/googleapis/java-bigquery/commit/2e2d730de9e4e49f25c20de2cfe1ae38babef830))
+* Update github/codeql-action action to v2.24.8 ([#3198](https://github.com/googleapis/java-bigquery/issues/3198)) ([bd81a56](https://github.com/googleapis/java-bigquery/commit/bd81a56a07c836abb05c1de0d42e9cd397920e99))
+
## [2.38.1](https://github.com/googleapis/java-bigquery/compare/v2.38.0...v2.38.1) (2024-03-07)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index f0d06fee1..ef726795c 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.38.2-SNAPSHOT
+ 2.38.2
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index ab041e263..a37ce9c8d 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-bigquery-bom
- 2.38.2-SNAPSHOT
+ 2.38.2
pom
com.google.cloud
@@ -54,7 +54,7 @@
com.google.cloud
google-cloud-bigquery
- 2.38.2-SNAPSHOT
+ 2.38.2
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 33d11820b..f307ff247 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.38.2-SNAPSHOT
+ 2.38.2
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.38.2-SNAPSHOT
+ 2.38.2
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index d9de25028..6a9b27e6b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.38.2-SNAPSHOT
+ 2.38.2
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -93,7 +93,7 @@
com.google.cloud
google-cloud-bigquery
- 2.38.2-SNAPSHOT
+ 2.38.2
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 1039b499b..c8b8fcf24 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.38.2-SNAPSHOT
+ 2.38.2
diff --git a/versions.txt b/versions.txt
index e1d5c8b1c..4540e1564 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.38.1:2.38.2-SNAPSHOT
\ No newline at end of file
+google-cloud-bigquery:2.38.2:2.38.2
\ No newline at end of file
From 90cfa007938c1a96c70feba308070e500542a592 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 21 Mar 2024 15:02:05 +0100
Subject: [PATCH 262/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquery to v2.38.2 (#3202)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigquery to v2.38.2
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 8 ++++----
samples/install-without-bom/pom.xml | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 2ce7af409..f824e6199 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquery
- 2.38.1
+ 2.38.2
```
@@ -60,13 +60,13 @@ implementation 'com.google.cloud:google-cloud-bigquery'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigquery:2.38.1'
+implementation 'com.google.cloud:google-cloud-bigquery:2.38.2'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.38.1"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.38.2"
```
@@ -351,7 +351,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquery/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.38.1
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.38.2
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 68968cd4f..e5674d6b0 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -45,7 +45,7 @@
com.google.cloud
google-cloud-bigquery
- 2.38.1
+ 2.38.2
From 9438f2c934984ff7e6d066fe7593fcd967c79f4a Mon Sep 17 00:00:00 2001
From: Tomo Suzuki
Date: Fri, 22 Mar 2024 19:22:24 -0400
Subject: [PATCH 263/393] ci: unmanaged dependency check (#3145)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* ci: unmanaged dependency check
b/320677879
* now bom is available
* Ignoring failing sample tests
* update renovate config
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Joe Wang
Co-authored-by: Owl Bot
---
.../workflows/unmanaged_dependency_check.yaml | 25 +++++++++++++++++++
renovate.json | 9 +++++++
.../bigquery/NativeImageBigquerySampleIT.java | 2 ++
.../bigquery/LoadCsvFromGcsTruncateTest.java | 2 ++
4 files changed, 38 insertions(+)
create mode 100644 .github/workflows/unmanaged_dependency_check.yaml
diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml
new file mode 100644
index 000000000..3313f9941
--- /dev/null
+++ b/.github/workflows/unmanaged_dependency_check.yaml
@@ -0,0 +1,25 @@
+on:
+ pull_request:
+name: Unmanaged dependency check
+jobs:
+ unmanaged_dependency_check:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - uses: actions/setup-java@v3
+ with:
+ distribution: temurin
+ java-version: 11
+ - name: Install modules
+ shell: bash
+ run: |
+ # No argument to build.sh installs the modules in local Maven
+ # repository
+ .kokoro/build.sh
+ - name: Unmanaged dependency check
+ uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.27.0
+ with:
+ # java-bigquery does not produce a BOM. Fortunately the root pom.xml
+ # defines google-cloud-bigquery in dependencyManagement section. So
+ # we can treat this as the BOM to run with the check.
+ bom-path: ./google-cloud-bigquery-bom/pom.xml
diff --git a/renovate.json b/renovate.json
index 0b609db9a..8034b0379 100644
--- a/renovate.json
+++ b/renovate.json
@@ -21,6 +21,15 @@
"matchStrings": ["value: \"gcr.io/cloud-devrel-public-resources/graalvm.*:(?.*?)\""],
"depNameTemplate": "com.google.cloud:sdk-platform-java-config",
"datasourceTemplate": "maven"
+ },
+ {
+ "customType": "regex",
+ "fileMatch": [
+ "^.github/workflows/unmanaged_dependency_check.yaml$"
+ ],
+ "matchStrings": ["uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v(?.+?)\\n"],
+ "depNameTemplate": "com.google.cloud:sdk-platform-java-config",
+ "datasourceTemplate": "maven"
}
],
"packageRules": [
diff --git a/samples/native-image-sample/src/test/java/com/example/bigquery/NativeImageBigquerySampleIT.java b/samples/native-image-sample/src/test/java/com/example/bigquery/NativeImageBigquerySampleIT.java
index a65bc5aa8..8cdb01ab9 100644
--- a/samples/native-image-sample/src/test/java/com/example/bigquery/NativeImageBigquerySampleIT.java
+++ b/samples/native-image-sample/src/test/java/com/example/bigquery/NativeImageBigquerySampleIT.java
@@ -25,9 +25,11 @@
import com.google.cloud.bigquery.StandardSQLTypeName;
import java.util.UUID;
import org.junit.Before;
+import org.junit.Ignore;
import org.junit.Test;
/** Tests for {@link NativeImageBigquerySample} */
+@Ignore
public class NativeImageBigquerySampleIT {
private static final String DATASET_ID = "nativeimage_it_dataset";
diff --git a/samples/snippets/src/test/java/com/example/bigquery/LoadCsvFromGcsTruncateTest.java b/samples/snippets/src/test/java/com/example/bigquery/LoadCsvFromGcsTruncateTest.java
index 09e8d9c50..620367649 100644
--- a/samples/snippets/src/test/java/com/example/bigquery/LoadCsvFromGcsTruncateTest.java
+++ b/samples/snippets/src/test/java/com/example/bigquery/LoadCsvFromGcsTruncateTest.java
@@ -30,8 +30,10 @@
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
+import org.junit.Ignore;
import org.junit.Test;
+@Ignore
public class LoadCsvFromGcsTruncateTest {
private final Logger log = Logger.getLogger(this.getClass().getName());
From d05ccf39f9a6db78713cb0d2ce3ad4b4e061c4ad Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 25 Mar 2024 15:59:50 +0100
Subject: [PATCH 264/393] test(deps): update dependency
com.google.cloud:google-cloud-storage to v2.36.1 (#3203)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 6a9b27e6b..853e22f5d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -137,7 +137,7 @@
com.google.cloud
google-cloud-storage
- 2.36.0
+ 2.36.1
test
From 434b72710373cdd6c07829c44cc97608cc28ef17 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 25 Mar 2024 16:02:32 +0100
Subject: [PATCH 265/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigqueryconnection to v2.40.0 (#3209)
---
pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 853e22f5d..d454b9d73 100644
--- a/pom.xml
+++ b/pom.xml
@@ -143,7 +143,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.39.0
+ 2.40.0
test
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index e5674d6b0..1e424351a 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -69,7 +69,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.39.0
+ 2.40.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index c8b8fcf24..fea7df554 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -67,7 +67,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.39.0
+ 2.40.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 41482f64d..9a0220be4 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -85,7 +85,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.39.0
+ 2.40.0
test
From bf7e97e1c936a419a34529a316c4f538872dd20b Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 25 Mar 2024 16:02:58 +0100
Subject: [PATCH 266/393] deps: update dependency
com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.40.0
(#3210)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index d454b9d73..ed829250b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -149,7 +149,7 @@
com.google.api.grpc
proto-google-cloud-bigqueryconnection-v1
- 2.39.0
+ 2.40.0
test
From 6204331953b3922f5ecb1ac0c1868cb6579dd73b Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 25 Mar 2024 16:03:49 +0100
Subject: [PATCH 267/393] deps: update dependency
com.google.cloud:sdk-platform-java-config to v3.28.1 (#3207)
---
.github/workflows/unmanaged_dependency_check.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml
index 3313f9941..ebf073c1b 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.27.0
+ uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.28.1
with:
# java-bigquery does not produce a BOM. Fortunately the root pom.xml
# defines google-cloud-bigquery in dependencyManagement section. So
From 6993b51f8722466b846a7dd3912acbd81e04126c Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 25 Mar 2024 16:04:16 +0100
Subject: [PATCH 268/393] deps: update dependency
com.google.cloud:google-cloud-datacatalog-bom to v1.44.0 (#3211)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index ed829250b..100b6ce94 100644
--- a/pom.xml
+++ b/pom.xml
@@ -79,7 +79,7 @@
com.google.cloud
google-cloud-datacatalog-bom
- 1.43.0
+ 1.44.0
pom
import
From 7a24d3e29f32db58475c1e02ab1c13ee8941c27d Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 25 Mar 2024 18:59:53 +0100
Subject: [PATCH 269/393] deps: update github/codeql-action action to v2.24.9
(#3204)
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index c8c5af370..e29083aab 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@c2dc67199a2e650d535d7de586a07597aea4d9c7 # v2.24.8
+ uses: github/codeql-action/upload-sarif@a82bad71823183e5b120ab52d521460ecb0585fe # v2.24.9
with:
sarif_file: results.sarif
From 64bdda84fe06726042a41f2a89ac5c067f9bc949 Mon Sep 17 00:00:00 2001
From: Phong Chuong <147636638+PhongChuong@users.noreply.github.com>
Date: Mon, 25 Mar 2024 15:48:31 -0400
Subject: [PATCH 270/393] feat: Add new fields to copy job statistics (#3205)
* feat: Add new fields to copy job statistics
Specifically, [copiedRows, copiedLogicalBytes] are added to CopyStatistics.
* Fix issue where IT verified copied rows twice instead of copied logical bytes.
* Add additional test to verified non-zero copy statistic case.
---
.../google/cloud/bigquery/JobStatistics.java | 54 ++++++++++++++++++-
.../cloud/bigquery/JobStatisticsTest.java | 18 +++++++
.../cloud/bigquery/it/ITBigQueryTest.java | 39 ++++++++++++++
3 files changed, 109 insertions(+), 2 deletions(-)
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 5979afbca..c600f6a19 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
@@ -21,6 +21,7 @@
import com.google.api.services.bigquery.model.JobStatistics2;
import com.google.api.services.bigquery.model.JobStatistics3;
import com.google.api.services.bigquery.model.JobStatistics4;
+import com.google.api.services.bigquery.model.JobStatistics5;
import com.google.api.services.bigquery.model.QueryParameter;
import com.google.cloud.StringEnumType;
import com.google.cloud.StringEnumValue;
@@ -51,14 +52,36 @@ public abstract class JobStatistics implements Serializable {
/** A Google BigQuery Copy Job statistics. */
public static class CopyStatistics extends JobStatistics {
- private static final long serialVersionUID = 8218325588441660938L;
+ private static final long serialVersionUID = 8218325588441660939L;
+
+ private final Long copiedLogicalBytes;
+
+ private final Long copiedRows;
static final class Builder extends JobStatistics.Builder {
+ private Long copiedLogicalBytes;
+
+ private Long copiedRows;
+
private Builder() {}
private Builder(com.google.api.services.bigquery.model.JobStatistics statisticsPb) {
super(statisticsPb);
+ if (statisticsPb.getCopy() != null) {
+ this.copiedLogicalBytes = statisticsPb.getCopy().getCopiedLogicalBytes();
+ this.copiedRows = statisticsPb.getCopy().getCopiedRows();
+ }
+ }
+
+ Builder setCopiedLogicalBytes(long copiedLogicalBytes) {
+ this.copiedLogicalBytes = copiedLogicalBytes;
+ return self();
+ }
+
+ Builder setCopiedRows(long copiedRows) {
+ this.copiedRows = copiedRows;
+ return self();
}
@Override
@@ -69,6 +92,25 @@ CopyStatistics build() {
private CopyStatistics(Builder builder) {
super(builder);
+ this.copiedLogicalBytes = builder.copiedLogicalBytes;
+ this.copiedRows = builder.copiedRows;
+ }
+
+ /** Returns number of logical bytes copied to the destination table. */
+ public Long getCopiedLogicalBytes() {
+ return copiedLogicalBytes;
+ }
+
+ /** Returns number of rows copied to the destination table. */
+ public Long getCopiedRows() {
+ return copiedRows;
+ }
+
+ @Override
+ ToStringHelper toStringHelper() {
+ return super.toStringHelper()
+ .add("copiedLogicalBytes", copiedLogicalBytes)
+ .add("copiedRows", copiedRows);
}
@Override
@@ -81,7 +123,15 @@ public final boolean equals(Object obj) {
@Override
public final int hashCode() {
- return baseHashCode();
+ return Objects.hash(baseHashCode(), copiedLogicalBytes, copiedRows);
+ }
+
+ @Override
+ com.google.api.services.bigquery.model.JobStatistics toPb() {
+ JobStatistics5 copyStatisticsPb = new JobStatistics5();
+ copyStatisticsPb.setCopiedLogicalBytes(copiedLogicalBytes);
+ copyStatisticsPb.setCopiedRows(copiedRows);
+ return super.toPb().setCopy(copyStatisticsPb);
}
static Builder newBuilder() {
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobStatisticsTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobStatisticsTest.java
index 5502b8472..24344514e 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobStatisticsTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobStatisticsTest.java
@@ -85,11 +85,15 @@ public class JobStatisticsTest {
private static final Long SLOTMS = 12545L;
private static final String TRANSACTION_ID = UUID.randomUUID().toString().substring(0, 8);
private static final String SESSION_ID = UUID.randomUUID().toString().substring(0, 8);
+ private static final Long COPIED_ROW = 1L;
+ private static final Long COPIED_LOGICAL_BYTES = 2L;
private static final CopyStatistics COPY_STATISTICS =
CopyStatistics.newBuilder()
.setCreationTimestamp(CREATION_TIME)
.setEndTime(END_TIME)
.setStartTime(START_TIME)
+ .setCopiedRows(COPIED_ROW)
+ .setCopiedLogicalBytes(COPIED_LOGICAL_BYTES)
.build();
private static final ExtractStatistics EXTRACT_STATISTICS =
ExtractStatistics.newBuilder()
@@ -262,6 +266,12 @@ public void testBuilder() {
assertEquals(FILE_COUNT, EXTRACT_STATISTICS.getDestinationUriFileCounts());
assertEquals(INPUT_BYTES, EXTRACT_STATISTICS.getInputBytes());
+ assertEquals(CREATION_TIME, COPY_STATISTICS.getCreationTime());
+ assertEquals(START_TIME, COPY_STATISTICS.getStartTime());
+ assertEquals(END_TIME, COPY_STATISTICS.getEndTime());
+ assertEquals(COPIED_LOGICAL_BYTES, COPY_STATISTICS.getCopiedLogicalBytes());
+ assertEquals(COPIED_ROW, COPY_STATISTICS.getCopiedRows());
+
assertEquals(CREATION_TIME, LOAD_STATISTICS.getCreationTime());
assertEquals(START_TIME, LOAD_STATISTICS.getStartTime());
assertEquals(END_TIME, LOAD_STATISTICS.getEndTime());
@@ -334,6 +344,7 @@ public void testBuilder() {
public void testToPbAndFromPb() {
compareExtractStatistics(
EXTRACT_STATISTICS, ExtractStatistics.fromPb(EXTRACT_STATISTICS.toPb()));
+ compareCopyStatistics(COPY_STATISTICS, CopyStatistics.fromPb(COPY_STATISTICS.toPb()));
compareLoadStatistics(LOAD_STATISTICS, LoadStatistics.fromPb(LOAD_STATISTICS.toPb()));
compareQueryStatistics(QUERY_STATISTICS, QueryStatistics.fromPb(QUERY_STATISTICS.toPb()));
compareStatistics(COPY_STATISTICS, CopyStatistics.fromPb(COPY_STATISTICS.toPb()));
@@ -400,6 +411,13 @@ private void compareExtractStatistics(ExtractStatistics expected, ExtractStatist
assertEquals(expected.getInputBytes(), value.getInputBytes());
}
+ private void compareCopyStatistics(CopyStatistics expected, CopyStatistics value) {
+ assertEquals(expected, value);
+ compareStatistics(expected, value);
+ assertEquals(expected.getCopiedLogicalBytes(), value.getCopiedLogicalBytes());
+ assertEquals(expected.getCopiedRows(), value.getCopiedRows());
+ }
+
private void compareLoadStatistics(LoadStatistics expected, LoadStatistics value) {
assertEquals(expected, value);
compareStatistics(expected, value);
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
index 3fd084a63..0a589e9ed 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
@@ -90,6 +90,7 @@
import com.google.cloud.bigquery.JobId;
import com.google.cloud.bigquery.JobInfo;
import com.google.cloud.bigquery.JobStatistics;
+import com.google.cloud.bigquery.JobStatistics.CopyStatistics;
import com.google.cloud.bigquery.JobStatistics.ExtractStatistics;
import com.google.cloud.bigquery.JobStatistics.LoadStatistics;
import com.google.cloud.bigquery.JobStatistics.QueryStatistics;
@@ -5042,11 +5043,18 @@ public void testCopyJob() throws InterruptedException, TimeoutException {
assertNotNull(createdTable);
assertEquals(DATASET, createdTable.getTableId().getDataset());
assertEquals(sourceTableName, createdTable.getTableId().getTable());
+
TableId destinationTable = TableId.of(DATASET, destinationTableName);
CopyJobConfiguration configuration = CopyJobConfiguration.of(destinationTable, sourceTable);
Job remoteJob = bigquery.create(JobInfo.of(configuration));
remoteJob = remoteJob.waitFor();
assertNull(remoteJob.getStatus().getError());
+
+ CopyStatistics copyStatistics = remoteJob.getStatistics();
+ assertNotNull(copyStatistics);
+ assertEquals(0, copyStatistics.getCopiedRows().longValue());
+ assertEquals(0, copyStatistics.getCopiedLogicalBytes().longValue());
+
Table remoteTable = bigquery.getTable(DATASET, destinationTableName);
assertNotNull(remoteTable);
assertEquals(destinationTable.getDataset(), remoteTable.getTableId().getDataset());
@@ -5056,6 +5064,37 @@ public void testCopyJob() throws InterruptedException, TimeoutException {
assertTrue(remoteTable.delete());
}
+ @Test
+ public void testCopyJobStatistics() throws InterruptedException, TimeoutException {
+ String sourceTableName = "test_copy_job_statistics_source_table";
+ String destinationTableName = "test_copy_job_statistics_destination_table";
+
+ QueryJobConfiguration createTable =
+ QueryJobConfiguration.newBuilder(
+ String.format(
+ "CREATE TABLE %s AS SELECT num FROM UNNEST(GENERATE_ARRAY(0,5)) as num",
+ sourceTableName))
+ .setDefaultDataset(DatasetId.of(DATASET))
+ .setUseLegacySql(false)
+ .build();
+ bigquery.query(createTable);
+
+ // Copy the created table.
+ TableId sourceTable = TableId.of(DATASET, sourceTableName);
+ TableId destinationTable = TableId.of(DATASET, destinationTableName);
+ CopyJobConfiguration configuration = CopyJobConfiguration.of(destinationTable, sourceTable);
+ Job remoteJob = bigquery.create(JobInfo.of(configuration));
+ remoteJob = remoteJob.waitFor();
+ assertNull(remoteJob.getStatus().getError());
+
+ CopyStatistics copyStatistics = remoteJob.getStatistics();
+ assertNotNull(copyStatistics);
+ assertEquals(6, copyStatistics.getCopiedRows().longValue());
+ // Assert != 0 since copied logical bytes is may return non-deterministic value due to how the
+ // data is represented.
+ assertNotEquals(0, copyStatistics.getCopiedLogicalBytes().longValue());
+ }
+
@Test
public void testSnapshotTableCopyJob() throws InterruptedException {
String sourceTableName = "test_copy_job_base_table";
From 14d1d875c6fe599b32e23358f1c5bcd4f0fffac7 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Mon, 25 Mar 2024 21:21:44 -0400
Subject: [PATCH 271/393] chore(main): release 2.38.3-SNAPSHOT (#3201)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
benchmark/pom.xml | 2 +-
google-cloud-bigquery-bom/pom.xml | 4 ++--
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
6 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index ef726795c..a931b0dd7 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.38.2
+ 2.38.3-SNAPSHOT
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index a37ce9c8d..37799ec4e 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-bigquery-bom
- 2.38.2
+ 2.38.3-SNAPSHOT
pom
com.google.cloud
@@ -54,7 +54,7 @@
com.google.cloud
google-cloud-bigquery
- 2.38.2
+ 2.38.3-SNAPSHOT
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index f307ff247..c26518548 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.38.2
+ 2.38.3-SNAPSHOT
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.38.2
+ 2.38.3-SNAPSHOT
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 100b6ce94..9ed52f877 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.38.2
+ 2.38.3-SNAPSHOT
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -93,7 +93,7 @@
com.google.cloud
google-cloud-bigquery
- 2.38.2
+ 2.38.3-SNAPSHOT
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index fea7df554..df5e529f3 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.38.2
+ 2.38.3-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index 4540e1564..3d8630e02 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.38.2:2.38.2
\ No newline at end of file
+google-cloud-bigquery:2.38.2:2.38.3-SNAPSHOT
\ No newline at end of file
From a6402b16ffa8ab473c415cf87a6b2e0d8068e3dc Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 28 Mar 2024 15:02:52 +0100
Subject: [PATCH 272/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigtable to v2.37.0 (#3214)
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 1e424351a..ef2191a67 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -63,7 +63,7 @@
com.google.cloud
google-cloud-bigtable
- 2.36.0
+ 2.37.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index df5e529f3..a62cf6b6b 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -61,7 +61,7 @@
com.google.cloud
google-cloud-bigtable
- 2.36.0
+ 2.37.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 9a0220be4..0d5be7528 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -79,7 +79,7 @@
com.google.cloud
google-cloud-bigtable
- 2.36.0
+ 2.37.0
test
From d40ddfa4887bab63dba6404208cfd9b3047cb350 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 2 Apr 2024 16:41:15 +0200
Subject: [PATCH 273/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigqueryconnection to v2.41.0 (#3218)
---
pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 9ed52f877..d461cb4cb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -143,7 +143,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.40.0
+ 2.41.0
test
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index ef2191a67..753d392d2 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -69,7 +69,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.40.0
+ 2.41.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index a62cf6b6b..c2e77488a 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -67,7 +67,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.40.0
+ 2.41.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 0d5be7528..83087dd88 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -85,7 +85,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.40.0
+ 2.41.0
test
From 9d71b8b9a9231ea5d7cfa93c7bcbb533d6a3a900 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 2 Apr 2024 16:41:42 +0200
Subject: [PATCH 274/393] deps: update dependency
com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.41.0
(#3219)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index d461cb4cb..575022c2f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -149,7 +149,7 @@
com.google.api.grpc
proto-google-cloud-bigqueryconnection-v1
- 2.40.0
+ 2.41.0
test
From 21ae09ce2c63f790ca77cc5c4c0df16dcb123b59 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 2 Apr 2024 16:42:09 +0200
Subject: [PATCH 275/393] deps: update dependency
com.google.cloud:google-cloud-datacatalog-bom to v1.45.0 (#3220)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.45.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 2 +-
pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index f824e6199..a78760c89 100644
--- a/README.md
+++ b/README.md
@@ -53,7 +53,7 @@ If you are using Maven without the BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:
```Groovy
-implementation platform('com.google.cloud:libraries-bom:26.34.0')
+implementation platform('com.google.cloud:libraries-bom:26.35.0')
implementation 'com.google.cloud:google-cloud-bigquery'
```
diff --git a/pom.xml b/pom.xml
index 575022c2f..f45ba8b7b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -79,7 +79,7 @@
com.google.cloud
google-cloud-datacatalog-bom
- 1.44.0
+ 1.45.0
pom
import
From 2740076f072b0ccc65aa51d534ea33d188bf85e0 Mon Sep 17 00:00:00 2001
From: shollyman
Date: Mon, 8 Apr 2024 11:46:19 -0700
Subject: [PATCH 276/393] testing: reorder test to avoid racing (#3232)
Test involves working with a source table and a job that uses the table as an input. Reorders the cleanup until after the job is complete to avoid possible racing with deletion before completion.
Fixes: https://togithub.com/googleapis/java-bigquery/issues/3212
---
README.md | 2 +-
.../test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index a78760c89..cc0001a9c 100644
--- a/README.md
+++ b/README.md
@@ -53,7 +53,7 @@ If you are using Maven without the BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:
```Groovy
-implementation platform('com.google.cloud:libraries-bom:26.35.0')
+implementation platform('com.google.cloud:libraries-bom:26.37.0')
implementation 'com.google.cloud:google-cloud-bigquery'
```
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
index 0a589e9ed..7e6da2b27 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
@@ -5021,13 +5021,12 @@ public void testCreateAndGetJobWithSelectedFields()
assertNull(remoteJob.getStatus());
assertNull(remoteJob.getSelfLink());
assertNull(remoteJob.getUserEmail());
- assertTrue(createdTable.delete());
-
Job completedJob =
remoteJob.waitFor(
RetryOption.initialRetryDelay(Duration.ofSeconds(1)),
RetryOption.totalTimeout(Duration.ofMinutes(1)));
assertNotNull(completedJob);
+ assertTrue(createdTable.delete());
assertNull(completedJob.getStatus().getError());
assertTrue(bigquery.delete(destinationTable));
}
From 43409c9fa879de27087763e2a2b04c4d0582429b Mon Sep 17 00:00:00 2001
From: shollyman
Date: Tue, 9 Apr 2024 10:32:16 -0700
Subject: [PATCH 277/393] testing: address another possible test flake (#3234)
Another case of deleting resource before job may be done using it.
Fixes: https://togithub.com/googleapis/java-bigquery/issues/3208
---
.../test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
index 7e6da2b27..9980e69f8 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
@@ -4973,12 +4973,11 @@ public void testCreateAndGetJob() throws InterruptedException, TimeoutException
assertNotNull(remoteJob.getStatus());
assertEquals(createdJob.getSelfLink(), remoteJob.getSelfLink());
assertEquals(createdJob.getUserEmail(), remoteJob.getUserEmail());
- assertTrue(createdTable.delete());
Job completedJob = remoteJob.waitFor(RetryOption.totalTimeout(Duration.ofMinutes(1)));
-
assertNotNull(completedJob);
assertNull(completedJob.getStatus().getError());
+ assertTrue(createdTable.delete());
assertTrue(bigquery.delete(destinationTable));
}
From 7d4fc61fcd546ef664b23550b173abf11437a087 Mon Sep 17 00:00:00 2001
From: Alice <65933803+alicejli@users.noreply.github.com>
Date: Wed, 17 Apr 2024 10:02:08 -0400
Subject: [PATCH 278/393] chore: include recommended_package in
repo-metadata.json (#3241)
---
.repo-metadata.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.repo-metadata.json b/.repo-metadata.json
index d795a9ea6..278b4ea8e 100644
--- a/.repo-metadata.json
+++ b/.repo-metadata.json
@@ -13,5 +13,6 @@
"codeowner_team": "@googleapis/api-bigquery",
"api_id": "bigquery.googleapis.com",
"library_type": "GAPIC_MANUAL",
- "requires_billing": true
+ "requires_billing": true,
+ "recommended_package": "com.google.cloud.bigquery"
}
From 4e65fcfb91775b04d8db3162f549770f1d4d4777 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 17 Apr 2024 16:18:40 +0200
Subject: [PATCH 279/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigqueryconnection to v2.43.0 (#3224)
---
pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index f45ba8b7b..32ca292a7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -143,7 +143,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.41.0
+ 2.43.0
test
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 753d392d2..508e4432a 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -69,7 +69,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.41.0
+ 2.43.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index c2e77488a..6a2093ab5 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -67,7 +67,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.41.0
+ 2.43.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 83087dd88..5e636d072 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -85,7 +85,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.41.0
+ 2.43.0
test
From a8973067348fa09acd91c5b01f048c43fac93894 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 17 Apr 2024 18:01:12 +0200
Subject: [PATCH 280/393] deps: update dependency
com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.43.0
(#3225)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 32ca292a7..6c84b203d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -149,7 +149,7 @@
com.google.api.grpc
proto-google-cloud-bigqueryconnection-v1
- 2.41.0
+ 2.43.0
test
From d45d168bf53a8648e2254c8c4305a5d9a390276d Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 17 Apr 2024 18:48:38 +0200
Subject: [PATCH 281/393] deps: update dependency
com.google.cloud:google-cloud-datacatalog-bom to v1.47.0 (#3226)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 6c84b203d..d79a4ed09 100644
--- a/pom.xml
+++ b/pom.xml
@@ -79,7 +79,7 @@
com.google.cloud
google-cloud-datacatalog-bom
- 1.45.0
+ 1.47.0
pom
import
From 975df05b95b714c5574155d5e09860885c4b58f2 Mon Sep 17 00:00:00 2001
From: Anoop Johnson
Date: Wed, 17 Apr 2024 10:03:55 -0700
Subject: [PATCH 282/393] feat: Add support for ObjectMetadata (#3217)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* feat: Add support for ObjectMetadata
Fixes #3216
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.../bigquery/ExternalTableDefinition.java | 50 +++++++++++++++++++
.../bigquery/ExternalTableDefinitionTest.java | 3 ++
.../cloud/bigquery/it/ITBigQueryTest.java | 43 ++++++++++++++++
3 files changed, 96 insertions(+)
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 d307b8232..9f8aa4012 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
@@ -180,6 +180,12 @@ public Builder setHivePartitioningOptions(HivePartitioningOptions hivePartitioni
abstract Builder setHivePartitioningOptionsInner(
HivePartitioningOptions hivePartitioningOptions);
+ public Builder setObjectMetadata(String objectMetadata) {
+ return setObjectMetadataInner(objectMetadata);
+ }
+
+ abstract Builder setObjectMetadataInner(String objectMetadata);
+
/** Creates an {@code ExternalTableDefinition} object. */
@Override
public abstract ExternalTableDefinition build();
@@ -255,6 +261,21 @@ public String getFileSetSpecType() {
@Nullable
public abstract ImmutableList getSourceUrisImmut();
+ /**
+ * Returns the object metadata.
+ *
+ * @see
+ * ObjectMetadata
+ */
+ @Nullable
+ public String getObjectMetadata() {
+ return getObjectMetadataInner();
+ }
+
+ @Nullable
+ abstract String getObjectMetadataInner();
+
/**
* Returns the source format, and possibly some parsing options, of the external data. Supported
* formats are {@code CSV} and {@code NEWLINE_DELIMITED_JSON}.
@@ -362,6 +383,10 @@ com.google.api.services.bigquery.model.ExternalDataConfiguration toExternalDataC
externalConfigurationPb.setFileSetSpecType(getFileSetSpecType());
}
+ if (getObjectMetadata() != null) {
+ externalConfigurationPb.setObjectMetadata(getObjectMetadata());
+ }
+
return externalConfigurationPb;
}
@@ -426,6 +451,24 @@ public static Builder newBuilder(String sourceUri, FormatOptions format) {
return newBuilder().setSourceUris(ImmutableList.of(sourceUri)).setFormatOptions(format);
}
+ /**
+ * Creates a builder for an ExternalTableDefinition object.
+ *
+ * @param sourceUri the fully-qualified URIs that point to your data in Google Cloud. For Google
+ * Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and
+ * valid HTTPS URL for a Google Cloud Bigtable table. Size limits related to load jobs apply
+ * to external data sources, plus an additional limit of 10 GB maximum size across all URIs.
+ * @return a builder for an ExternalTableDefinition object given source URIs and format
+ * @see Quota
+ * @see
+ * Source Format
+ */
+ public static Builder newBuilder(String sourceUri) {
+ checkArgument(!isNullOrEmpty(sourceUri), "Provided sourceUri is null or empty");
+ return newBuilder().setSourceUris(ImmutableList.of(sourceUri));
+ }
+
/**
* Creates an ExternalTableDefinition object.
*
@@ -534,6 +577,9 @@ static ExternalTableDefinition fromPb(Table tablePb) {
if (externalDataConfiguration.getFileSetSpecType() != null) {
builder.setFileSetSpecType(externalDataConfiguration.getFileSetSpecType());
}
+ if (externalDataConfiguration.getObjectMetadata() != null) {
+ builder.setObjectMetadata(externalDataConfiguration.getObjectMetadata());
+ }
}
return builder.build();
}
@@ -597,6 +643,10 @@ static ExternalTableDefinition fromExternalDataConfiguration(
builder.setFileSetSpecType(externalDataConfiguration.getFileSetSpecType());
}
+ if (externalDataConfiguration.getObjectMetadata() != null) {
+ builder.setObjectMetadata(externalDataConfiguration.getObjectMetadata());
+ }
+
return builder.build();
}
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/ExternalTableDefinitionTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/ExternalTableDefinitionTest.java
index 3e67ad959..ed5659891 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/ExternalTableDefinitionTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/ExternalTableDefinitionTest.java
@@ -58,6 +58,7 @@ public class ExternalTableDefinitionTest {
.setMode("AUTO")
.setSourceUriPrefix(SOURCE_URIS.get(0))
.build();
+ private static final String OBJECT_METADATA = "SIMPLE";
private static final ExternalTableDefinition EXTERNAL_TABLE_DEFINITION =
ExternalTableDefinition.newBuilder(SOURCE_URIS, TABLE_SCHEMA, CSV_OPTIONS)
.setFileSetSpecType("FILE_SET_SPEC_TYPE_FILE_SYSTEM_MATCH")
@@ -68,6 +69,7 @@ public class ExternalTableDefinitionTest {
.setMaxBadRecords(MAX_BAD_RECORDS)
.setAutodetect(AUTODETECT)
.setHivePartitioningOptions(HIVE_PARTITIONING_OPTIONS)
+ .setObjectMetadata(OBJECT_METADATA)
.build();
private static final ExternalTableDefinition EXTERNAL_TABLE_DEFINITION_AVRO =
@@ -167,5 +169,6 @@ private void compareExternalTableDefinition(
assertEquals(expected.hashCode(), value.hashCode());
assertEquals(expected.getAutodetect(), value.getAutodetect());
assertEquals(expected.getHivePartitioningOptions(), value.getHivePartitioningOptions());
+ assertEquals(expected.getObjectMetadata(), value.getObjectMetadata());
}
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
index 9980e69f8..9f5c6edd8 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
@@ -6579,6 +6579,49 @@ public void testExternalTableMetadataCachingNotEnable() throws InterruptedExcept
assertTrue(remoteTable.delete());
}
+ @Test
+ public void testObjectTable() throws InterruptedException {
+ String tableName = "test_object_table";
+ TableId tableId = TableId.of(DATASET, tableName);
+
+ String sourceUri = "gs://" + BUCKET + "/" + JSON_LOAD_FILE;
+ ExternalTableDefinition externalTableDefinition =
+ ExternalTableDefinition.newBuilder(sourceUri)
+ .setConnectionId(
+ "projects/java-docs-samples-testing/locations/us/connections/DEVREL_TEST_CONNECTION")
+ .setObjectMetadata("SIMPLE")
+ .build();
+ TableInfo tableInfo = TableInfo.of(tableId, externalTableDefinition);
+ Table createdTable = bigquery.create(tableInfo);
+ assertNotNull(createdTable);
+ assertEquals(DATASET, createdTable.getTableId().getDataset());
+ assertEquals(tableName, createdTable.getTableId().getTable());
+ Table remoteTable = bigquery.getTable(DATASET, tableName);
+ assertNotNull(remoteTable);
+
+ try {
+ assertTrue(remoteTable.getDefinition() instanceof ExternalTableDefinition);
+ assertEquals(createdTable.getTableId(), remoteTable.getTableId());
+ assertEquals(
+ "SIMPLE", ((ExternalTableDefinition) remoteTable.getDefinition()).getObjectMetadata());
+ assertNotNull(remoteTable.getDefinition().getSchema().getFields().get("uri"));
+
+ String query = String.format("SELECT * FROM %s.%s", DATASET, tableName);
+ QueryJobConfiguration config = QueryJobConfiguration.newBuilder(query).build();
+
+ Job remoteJob = bigquery.create(JobInfo.of(config));
+ remoteJob = remoteJob.waitFor();
+ assertNull(remoteJob.getStatus().getError());
+
+ Job queryJob = bigquery.getJob(remoteJob.getJobId());
+ JobStatistics.QueryStatistics statistics = queryJob.getStatistics();
+ assertNotNull(statistics);
+ assertThat(statistics.getTotalBytesProcessed()).isGreaterThan(0);
+ } finally {
+ assertTrue(remoteTable.delete());
+ }
+ }
+
static GoogleCredentials loadCredentials(String credentialFile) {
try {
InputStream keyStream = new ByteArrayInputStream(credentialFile.getBytes());
From 2c3399dd10fecc01237158a3cdeee966b38746f2 Mon Sep 17 00:00:00 2001
From: Phong Chuong <147636638+PhongChuong@users.noreply.github.com>
Date: Wed, 17 Apr 2024 16:02:07 -0400
Subject: [PATCH 283/393] feat: Add Range object to allow reading range value
(#3236)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* feat: Add Range object to allow reading range value
This PR also adds the ability to use Range query parameter
* fix: lint error
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* Add IT test for listTableData with Range value
* Change Range get[Start, End] to return FieldValue
* Fix QueryParameterValueTest
* Update FieldValue to include type for Range values
---------
Co-authored-by: Owl Bot
---
.../cloud/bigquery/FieldElementType.java | 11 ++
.../com/google/cloud/bigquery/FieldValue.java | 28 ++++-
.../cloud/bigquery/QueryParameterValue.java | 65 ++++++++++
.../java/com/google/cloud/bigquery/Range.java | 114 +++++++++++++++++
.../cloud/bigquery/FieldElementTypeTest.java | 6 +
.../google/cloud/bigquery/FieldValueTest.java | 10 ++
.../bigquery/QueryParameterValueTest.java | 65 ++++++++++
.../com/google/cloud/bigquery/RangeTest.java | 100 +++++++++++++++
.../cloud/bigquery/it/ITBigQueryTest.java | 117 ++++++++++++++++--
9 files changed, 508 insertions(+), 8 deletions(-)
create mode 100644 google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Range.java
create mode 100644 google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/RangeTest.java
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/FieldElementType.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/FieldElementType.java
index 43446e1d0..de601151e 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/FieldElementType.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/FieldElementType.java
@@ -15,6 +15,7 @@
*/
package com.google.cloud.bigquery;
+import com.google.api.services.bigquery.model.QueryParameterType;
import com.google.api.services.bigquery.model.TableFieldSchema;
import com.google.auto.value.AutoValue;
import java.io.Serializable;
@@ -60,4 +61,14 @@ static FieldElementType fromPb(TableFieldSchema.RangeElementType rangeElementTyp
}
return null;
}
+
+ /** Creates an instance of FieldElementType from QueryParameterType with RangeElementType. */
+ static FieldElementType fromPb(QueryParameterType queryParameterTypePb) {
+ // Treat a FieldElementType message without a Type subfield as invalid.
+ if ((queryParameterTypePb.getRangeElementType() != null)
+ && (queryParameterTypePb.getRangeElementType().getType() != null)) {
+ return newBuilder().setType(queryParameterTypePb.getRangeElementType().getType()).build();
+ }
+ return null;
+ }
}
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/FieldValue.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/FieldValue.java
index ea68075f7..a28f2ed61 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/FieldValue.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/FieldValue.java
@@ -67,7 +67,10 @@ public enum Attribute {
REPEATED,
/** A {@code FieldValue} for a field of type {@link LegacySQLTypeName#RECORD}. */
- RECORD
+ RECORD,
+
+ /** A {@code FieldValue} for a field of type {@link LegacySQLTypeName#RANGE}. */
+ RANGE
}
private FieldValue(Attribute attribute, Object value) {
@@ -229,6 +232,23 @@ public BigDecimal getNumericValue() {
return new BigDecimal(getStringValue());
}
+ /**
+ * Returns this field's value as a {@link Range}. This method should only be used * if the
+ * corresponding field has {@link LegacySQLTypeName#RANGE} type.
+ *
+ * @throws ClassCastException if the field is not a primitive type
+ * @throws IllegalArgumentException if the field's value could not be converted to {@link Range}
+ * @throws NullPointerException if {@link #isNull()} returns {@code true}
+ */
+ @SuppressWarnings("unchecked")
+ public Range getRangeValue() {
+ if (attribute == Attribute.RANGE) {
+ return (Range) value;
+ }
+ // Provide best effort to convert value to Range object.
+ return Range.of(getStringValue());
+ }
+
/**
* Returns this field's value as a list of {@link FieldValue}. This method should only be used if
* the corresponding field has {@link Field.Mode#REPEATED} mode (i.e. {@link #getAttribute()} is
@@ -332,6 +352,12 @@ static FieldValue fromPb(Object cellPb, Field recordSchema) {
return FieldValue.of(Attribute.PRIMITIVE, null);
}
if (cellPb instanceof String) {
+ if ((recordSchema != null)
+ && (recordSchema.getType() == LegacySQLTypeName.RANGE)
+ && (recordSchema.getRangeElementType() != null)) {
+ return FieldValue.of(
+ Attribute.RANGE, Range.of((String) cellPb, recordSchema.getRangeElementType()));
+ }
return FieldValue.of(Attribute.PRIMITIVE, cellPb);
}
if (cellPb instanceof List) {
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryParameterValue.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryParameterValue.java
index 85ebd2957..a7469a3a6 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryParameterValue.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryParameterValue.java
@@ -22,6 +22,7 @@
import static org.threeten.bp.temporal.ChronoField.SECOND_OF_MINUTE;
import com.google.api.services.bigquery.model.QueryParameterType;
+import com.google.api.services.bigquery.model.RangeValue;
import com.google.auto.value.AutoValue;
import com.google.cloud.Timestamp;
import com.google.common.base.Function;
@@ -141,6 +142,13 @@ public Builder setStructValues(Map structValues) {
abstract Builder setStructValuesInner(Map structValues);
+ /** Sets range values. The type must set to RANGE. */
+ public Builder setRangeValues(Range range) {
+ return setRangeValuesInner(range);
+ }
+
+ abstract Builder setRangeValuesInner(Range range);
+
/** Sets the parameter data type. */
public abstract Builder setType(StandardSQLTypeName type);
@@ -184,6 +192,15 @@ public Map getStructValues() {
@Nullable
abstract Map getStructValuesInner();
+ /** Returns the struct values of this parameter. The returned map, if not null, is immutable. */
+ @Nullable
+ public Range getRangeValues() {
+ return getRangeValuesInner();
+ }
+
+ @Nullable
+ abstract Range getRangeValuesInner();
+
/** Returns the data type of this parameter. */
public abstract StandardSQLTypeName getType();
@@ -333,6 +350,14 @@ public static QueryParameterValue interval(PeriodDuration value) {
return of(value, StandardSQLTypeName.INTERVAL);
}
+ /** Creates a {@code QueryParameterValue} object with a type of RANGE. */
+ public static QueryParameterValue range(Range value) {
+ return QueryParameterValue.newBuilder()
+ .setRangeValues(value)
+ .setType(StandardSQLTypeName.RANGE)
+ .build();
+ }
+
/**
* Creates a {@code QueryParameterValue} object with a type of ARRAY, and an array element type
* based on the given class.
@@ -442,6 +467,8 @@ private static String valueToStringOrNull(T value, StandardSQLTypeName type)
throw new IllegalArgumentException("Cannot convert STRUCT to String value");
case ARRAY:
throw new IllegalArgumentException("Cannot convert ARRAY to String value");
+ case RANGE:
+ throw new IllegalArgumentException("Cannot convert RANGE to String value");
case TIMESTAMP:
if (value instanceof Long) {
Timestamp timestamp = Timestamp.ofTimeMicroseconds((Long) value);
@@ -517,6 +544,22 @@ com.google.api.services.bigquery.model.QueryParameterValue toValuePb() {
}
valuePb.setStructValues(structValues);
}
+ if (getType() == StandardSQLTypeName.RANGE) {
+ RangeValue rangeValue = new RangeValue();
+ if (!getRangeValues().getStart().isNull()) {
+ com.google.api.services.bigquery.model.QueryParameterValue startValue =
+ new com.google.api.services.bigquery.model.QueryParameterValue();
+ startValue.setValue(getRangeValues().getStart().getStringValue());
+ rangeValue.setStart(startValue);
+ }
+ if (!getRangeValues().getEnd().isNull()) {
+ com.google.api.services.bigquery.model.QueryParameterValue endValue =
+ new com.google.api.services.bigquery.model.QueryParameterValue();
+ endValue.setValue(getRangeValues().getEnd().getStringValue());
+ rangeValue.setEnd(endValue);
+ }
+ valuePb.setRangeValue(rangeValue);
+ }
return valuePb;
}
@@ -544,6 +587,13 @@ QueryParameterType toTypePb() {
}
typePb.setStructTypes(structTypes);
}
+ if (getType() == StandardSQLTypeName.RANGE
+ && getRangeValues() != null
+ && getRangeValues().getType() != null) {
+ QueryParameterType rangeTypePb = new QueryParameterType();
+ rangeTypePb.setType(getRangeValues().getType().getType());
+ typePb.setRangeElementType(rangeTypePb);
+ }
return typePb;
}
@@ -592,6 +642,21 @@ static QueryParameterValue fromPb(
}
valueBuilder.setStructValues(structValues);
}
+ } else if (type == StandardSQLTypeName.RANGE) {
+ Range.Builder range = Range.newBuilder();
+ if (valuePb.getRangeValue() != null) {
+ com.google.api.services.bigquery.model.RangeValue rangeValuePb = valuePb.getRangeValue();
+ if (rangeValuePb.getStart() != null && rangeValuePb.getStart().getValue() != null) {
+ range.setStart(valuePb.getRangeValue().getStart().getValue());
+ }
+ if (rangeValuePb.getEnd() != null && rangeValuePb.getEnd().getValue() != null) {
+ range.setEnd(valuePb.getRangeValue().getEnd().getValue());
+ }
+ }
+ if (typePb.getRangeElementType() != null && typePb.getRangeElementType().getType() != null) {
+ range.setType(FieldElementType.fromPb(typePb));
+ }
+ valueBuilder.setRangeValues(range.build());
} else {
valueBuilder.setValue(valuePb == null ? "" : valuePb.getValue());
}
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Range.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Range.java
new file mode 100644
index 000000000..198bd28fa
--- /dev/null
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Range.java
@@ -0,0 +1,114 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.cloud.bigquery;
+
+import static com.google.common.base.Preconditions.checkNotNull;
+
+import com.google.auto.value.AutoValue;
+import com.google.cloud.bigquery.FieldValue.Attribute;
+import java.io.Serializable;
+import javax.annotation.Nullable;
+
+@AutoValue
+public abstract class Range implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ /** Returns the start value of the range. A null value represents an unbounded start. */
+ public FieldValue getStart() {
+ // The supported Range types [DATE, TIME, TIMESTAMP] are all Attribute.PRIMITIVE.
+ return FieldValue.of(Attribute.PRIMITIVE, getStartInner());
+ }
+
+ @Nullable
+ abstract String getStartInner();
+
+ /** Returns the end value of the range. A null value represents an unbounded end. */
+ public FieldValue getEnd() {
+ // The supported Range types [DATE, TIME, TIMESTAMP] are all Attribute.PRIMITIVE.
+ return FieldValue.of(Attribute.PRIMITIVE, getEndInner());
+ }
+
+ @Nullable
+ abstract String getEndInner();
+
+ /** Returns the type of the range. */
+ @Nullable
+ public abstract FieldElementType getType();
+
+ public abstract Range.Builder toBuilder();
+
+ @AutoValue.Builder
+ public abstract static class Builder {
+
+ public Range.Builder setStart(String start) {
+ return setStartInner(start);
+ }
+
+ abstract Range.Builder setStartInner(String start);
+
+ public Range.Builder setEnd(String end) {
+ return setEndInner(end);
+ }
+
+ abstract Range.Builder setEndInner(String end);
+
+ public abstract Range.Builder setType(FieldElementType type);
+
+ public abstract Range build();
+ }
+
+ /** Creates a range builder. Supported StandardSQLTypeName are [DATE, DATETIME, TIMESTAMP] */
+ public static Builder newBuilder() {
+ return new AutoValue_Range.Builder();
+ }
+
+ public static Range of(String value) throws IllegalArgumentException {
+ return of(value, null);
+ }
+
+ /**
+ * Creates an instance of {@code Range} from a string representation.
+ *
+ * The expected string format is: "[start, end)", where start and end are string format of
+ * [DATE, TIME, TIMESTAMP].
+ */
+ public static Range of(String value, FieldElementType type) throws IllegalArgumentException {
+ checkNotNull(value);
+ Range.Builder builder = newBuilder();
+ if (type != null) {
+ builder.setType(type);
+ }
+ String[] startEnd = value.split(", ", 2); // Expect an extra space after ','.
+ if (startEnd.length != 2) {
+ throw new IllegalArgumentException(
+ String.format("Expected Range value string to be [start, end) and got %s", value));
+ }
+
+ String start = startEnd[0].substring(1); // Ignore the [
+ String end = startEnd[1].substring(0, startEnd[1].length() - 1); // Ignore the )
+ if (start.equalsIgnoreCase("UNBOUNDED") || (start.equalsIgnoreCase("NULL"))) {
+ builder.setStart(null);
+ } else {
+ builder.setStart(start);
+ }
+ if (end.equalsIgnoreCase("UNBOUNDED") || (end.equalsIgnoreCase("NULL"))) {
+ builder.setEnd(null);
+ } else {
+ builder.setEnd(end);
+ }
+ return builder.build();
+ }
+}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldElementTypeTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldElementTypeTest.java
index 9b4590892..cf217b25c 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldElementTypeTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldElementTypeTest.java
@@ -17,6 +17,7 @@
import static org.junit.Assert.assertEquals;
+import com.google.api.services.bigquery.model.QueryParameterType;
import org.junit.Test;
public class FieldElementTypeTest {
@@ -36,6 +37,11 @@ public void testBuilder() {
@Test
public void testFromAndPb() {
assertEquals(FIELD_ELEMENT_TYPE, FieldElementType.fromPb(FIELD_ELEMENT_TYPE.toPb()));
+ assertEquals(
+ FIELD_ELEMENT_TYPE,
+ FieldElementType.fromPb(
+ new QueryParameterType()
+ .setRangeElementType(new QueryParameterType().setType("DATE"))));
}
private void compareFieldElementType(FieldElementType expected, FieldElementType value) {
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldValueTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldValueTest.java
index 90cb69061..eaebe3567 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldValueTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldValueTest.java
@@ -55,6 +55,9 @@ public class FieldValueTest {
private static final Map BYTES_FIELD = ImmutableMap.of("v", BYTES_BASE64);
private static final Map NULL_FIELD =
ImmutableMap.of("v", Data.nullOf(String.class));
+
+ private static final Map RANGE_FIELD = ImmutableMap.of("v", "[start, end)");
+
private static final Map REPEATED_FIELD =
ImmutableMap.of("v", ImmutableList.of(INTEGER_FIELD, INTEGER_FIELD));
private static final Map RECORD_FIELD =
@@ -99,6 +102,9 @@ public void testFromPb() {
assertArrayEquals(BYTES, value.getBytesValue());
value = FieldValue.fromPb(NULL_FIELD);
assertNull(value.getValue());
+ value = FieldValue.fromPb(RANGE_FIELD);
+ assertEquals(FieldValue.Attribute.PRIMITIVE, value.getAttribute());
+ assertEquals(Range.of(RANGE_FIELD.get("v")), value.getRangeValue());
value = FieldValue.fromPb(REPEATED_FIELD);
assertEquals(FieldValue.Attribute.REPEATED, value.getAttribute());
assertEquals(FieldValue.fromPb(INTEGER_FIELD), value.getRepeatedValue().get(0));
@@ -156,6 +162,10 @@ public void testEquals() {
assertEquals(nullValue, FieldValue.fromPb(NULL_FIELD));
assertEquals(nullValue.hashCode(), FieldValue.fromPb(NULL_FIELD).hashCode());
+ FieldValue rangeValue = FieldValue.of(FieldValue.Attribute.PRIMITIVE, "[start, end)");
+ assertEquals(rangeValue, FieldValue.fromPb(RANGE_FIELD));
+ assertEquals(rangeValue.hashCode(), FieldValue.fromPb(RANGE_FIELD).hashCode());
+
FieldValue repeatedValue =
FieldValue.of(FieldValue.Attribute.REPEATED, ImmutableList.of(integerValue, integerValue));
assertEquals(repeatedValue, FieldValue.fromPb(REPEATED_FIELD));
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/QueryParameterValueTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/QueryParameterValueTest.java
index 0534865b2..e0ea9d68d 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/QueryParameterValueTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/QueryParameterValueTest.java
@@ -619,4 +619,69 @@ private static void assertArrayDataEquals(
assertThat(value.getArrayValues()).isNull();
}
}
+
+ @Test
+ public void testRange() {
+ testRangeDataEquals(null, null, FieldElementType.newBuilder().setType("DATE").build());
+ testRangeDataEquals(null, "1971-02-03", FieldElementType.newBuilder().setType("DATE").build());
+ testRangeDataEquals("1970-01-02", null, FieldElementType.newBuilder().setType("DATE").build());
+ testRangeDataEquals(
+ "1970-01-02", "1971-02-03", FieldElementType.newBuilder().setType("DATE").build());
+
+ testRangeDataEquals(null, null, FieldElementType.newBuilder().setType("DATETIME").build());
+ testRangeDataEquals(
+ null,
+ "2015-09-20 06:41:35.220000",
+ FieldElementType.newBuilder().setType("DATETIME").build());
+ testRangeDataEquals(
+ "2014-08-19 05:41:35.220000",
+ null,
+ FieldElementType.newBuilder().setType("DATETIME").build());
+ testRangeDataEquals(
+ "2014-08-19 05:41:35.220000",
+ "2015-09-20 06:41:35.220000",
+ FieldElementType.newBuilder().setType("DATETIME").build());
+
+ testRangeDataEquals(null, null, FieldElementType.newBuilder().setType("TIMESTAMP").build());
+ testRangeDataEquals(
+ null,
+ "2015-09-20 13:41:35.220000+01:00",
+ FieldElementType.newBuilder().setType("TIMESTAMP").build());
+ testRangeDataEquals(
+ "2014-08-19 12:41:35.220000+00:00",
+ null,
+ FieldElementType.newBuilder().setType("TIMESTAMP").build());
+ testRangeDataEquals(
+ "2014-08-19 12:41:35.220000+00:00",
+ "2015-09-20 13:41:35.220000+01:00",
+ FieldElementType.newBuilder().setType("TIMESTAMP").build());
+ }
+
+ /** Helper method to test range QueryParameterValue and its permutations. */
+ private static void testRangeDataEquals(String start, String end, FieldElementType type) {
+ QueryParameterValue rangeField =
+ QueryParameterValue.range(
+ Range.newBuilder().setType(type).setStart(start).setEnd(end).build());
+ QueryParameterType parameterType = rangeField.toTypePb();
+ com.google.api.services.bigquery.model.QueryParameterValue parameterValue =
+ rangeField.toValuePb();
+ QueryParameterValue queryParameterValue =
+ QueryParameterValue.fromPb(parameterValue, parameterType);
+
+ assertThat(queryParameterValue.getType()).isEqualTo(StandardSQLTypeName.RANGE);
+ if (start == null) {
+ assertThat(queryParameterValue.getRangeValues().getStart().isNull()).isTrue();
+ } else {
+ assertThat(queryParameterValue.getRangeValues().getStart().getStringValue()).isEqualTo(start);
+ }
+ if (end == null) {
+ assertThat(queryParameterValue.getRangeValues().getEnd().isNull()).isTrue();
+ } else {
+ assertThat(queryParameterValue.getRangeValues().getEnd().getStringValue()).isEqualTo(end);
+ }
+ assertThat(queryParameterValue.getRangeValues().getType()).isEqualTo(type);
+ assertThat(queryParameterValue.getArrayValues()).isNull();
+ assertThat(queryParameterValue.getStructValues()).isNull();
+ assertThat(queryParameterValue.getValue()).isNull();
+ }
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/RangeTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/RangeTest.java
new file mode 100644
index 000000000..45bb83259
--- /dev/null
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/RangeTest.java
@@ -0,0 +1,100 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.cloud.bigquery;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+
+import org.junit.Test;
+
+public class RangeTest {
+ private static final Range RANGE_DATE =
+ Range.newBuilder()
+ .setType(FieldElementType.newBuilder().setType("DATE").build())
+ .setStart("1970-01-02")
+ .setEnd("1970-03-04")
+ .build();
+
+ private static final Range RANGE_DATETIME =
+ Range.newBuilder()
+ .setType(FieldElementType.newBuilder().setType("DATETIME").build())
+ .setStart("2014-08-19 05:41:35.220000")
+ .setEnd("2015-09-20 06:41:35.220000")
+ .build();
+
+ private static final Range RANGE_TIMESTAMP =
+ Range.newBuilder()
+ .setType(FieldElementType.newBuilder().setType("TIMESTAMP").build())
+ .setStart("2014-08-19 12:41:35.220000+00:00")
+ .setEnd("2015-09-20 13:41:35.220000+01:00")
+ .build();
+
+ @Test
+ public void testOf() {
+ compareRange(null, null, Range.of("[null, NULL)"));
+ compareRange(null, null, Range.of("[unbounded, UNBOUNDED)"));
+ compareRange(null, null, Range.of("[nUlL, uNbOuNdEd)"));
+
+ compareRange(null, "2020-12-31", Range.of("[null, 2020-12-31)"));
+ compareRange("2020-01-01", null, Range.of("[2020-01-01, null)"));
+ compareRange("2020-01-01", "2020-12-31", Range.of("[2020-01-01, 2020-12-31)"));
+ }
+
+ @Test
+ public void testBuilder() {
+ assertEquals("1970-01-02", RANGE_DATE.getStart().getStringValue());
+ assertEquals("1970-03-04", RANGE_DATE.getEnd().getStringValue());
+ assertEquals(FieldElementType.newBuilder().setType("DATE").build(), RANGE_DATE.getType());
+
+ assertEquals("2014-08-19 05:41:35.220000", RANGE_DATETIME.getStart().getStringValue());
+ assertEquals("2015-09-20 06:41:35.220000", RANGE_DATETIME.getEnd().getStringValue());
+ assertEquals(
+ FieldElementType.newBuilder().setType("DATETIME").build(), RANGE_DATETIME.getType());
+
+ assertEquals("2014-08-19 12:41:35.220000+00:00", RANGE_TIMESTAMP.getStart().getStringValue());
+ assertEquals("2015-09-20 13:41:35.220000+01:00", RANGE_TIMESTAMP.getEnd().getStringValue());
+ assertEquals(
+ FieldElementType.newBuilder().setType("TIMESTAMP").build(), RANGE_TIMESTAMP.getType());
+ }
+
+ @Test
+ public void testToBuilder() {
+ compareRange(RANGE_DATE, RANGE_DATE.toBuilder().build());
+ compareRange(RANGE_DATETIME, RANGE_DATETIME.toBuilder().build());
+ compareRange(RANGE_TIMESTAMP, RANGE_TIMESTAMP.toBuilder().build());
+ }
+
+ private static void compareRange(Range expected, Range value) {
+ assertEquals(expected.getStart(), value.getStart());
+ assertEquals(expected.getEnd(), value.getEnd());
+ assertEquals(expected.getType(), value.getType());
+ assertEquals(expected.hashCode(), value.hashCode());
+ assertEquals(expected.toString(), value.toString());
+ }
+
+ private static void compareRange(String expectedStart, String expectedEnd, Range range) {
+ if (expectedStart == null) {
+ assertTrue(range.getStart().isNull());
+ } else {
+ assertEquals(expectedStart, range.getStart().getStringValue());
+ }
+ if (expectedEnd == null) {
+ assertTrue(range.getEnd().isNull());
+ } else {
+ assertEquals(expectedEnd, range.getEnd().getStringValue());
+ }
+ }
+}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
index 9f5c6edd8..b385fe47b 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
@@ -109,6 +109,7 @@
import com.google.cloud.bigquery.PrimaryKey;
import com.google.cloud.bigquery.QueryJobConfiguration;
import com.google.cloud.bigquery.QueryParameterValue;
+import com.google.cloud.bigquery.Range;
import com.google.cloud.bigquery.RangePartitioning;
import com.google.cloud.bigquery.Routine;
import com.google.cloud.bigquery.RoutineArgument;
@@ -1312,14 +1313,31 @@ public void testIntervalType() throws InterruptedException {
}
@Test
- public void testRangeType() throws InterruptedException {
- String tableName = "test_create_table_rangetype";
+ public void testRangeCreateTable() throws InterruptedException {
+ String tableName = "test_range_create_table";
TableId tableId = TableId.of(DATASET, tableName);
- Schema schema =
- Schema.of(
- Field.newBuilder("rangeField", StandardSQLTypeName.RANGE)
- .setRangeElementType(FieldElementType.newBuilder().setType("DATETIME").build())
- .build());
+ Field rangeFieldWithDate =
+ Field.newBuilder("rangeFieldDate", StandardSQLTypeName.RANGE)
+ .setMode(Field.Mode.NULLABLE)
+ .setDescription("Range field with DATE")
+ .setRangeElementType(FieldElementType.newBuilder().setType("DATE").build())
+ .build();
+
+ Field rangeFieldWithDatetime =
+ Field.newBuilder("rangeFieldDatetime", StandardSQLTypeName.RANGE)
+ .setMode(Field.Mode.NULLABLE)
+ .setDescription("Range field with DATETIME")
+ .setRangeElementType(FieldElementType.newBuilder().setType("DATETIME").build())
+ .build();
+
+ Field rangeFieldWithTimestamp =
+ Field.newBuilder("rangeFieldTimestamp", StandardSQLTypeName.RANGE)
+ .setMode(Field.Mode.NULLABLE)
+ .setDescription("Range field with TIMESTAMP")
+ .setRangeElementType(FieldElementType.newBuilder().setType("TIMESTAMP").build())
+ .build();
+
+ Schema schema = Schema.of(rangeFieldWithDate, rangeFieldWithDatetime, rangeFieldWithTimestamp);
StandardTableDefinition standardTableDefinition = StandardTableDefinition.of(schema);
try {
// Create a table with a RANGE column.
@@ -1330,6 +1348,91 @@ public void testRangeType() throws InterruptedException {
}
}
+ @Test
+ public void testRangeType() throws InterruptedException {
+ // TODO: Combine testRangeType test with testRangeCreateTable test.
+ String tableName = "test_range_type_table";
+ QueryJobConfiguration createTable =
+ QueryJobConfiguration.newBuilder(
+ String.format(
+ "CREATE TABLE %s AS SELECT RANGE(DATE '2020-01-01', DATE '2020-12-31') as date, \n"
+ + "RANGE(DATETIME '2020-01-01T12:00:00', DATETIME '2020-12-31T12:00:00') as datetime, \n"
+ + "RANGE(TIMESTAMP '2014-01-01 07:00:00.000000+00:00', TIMESTAMP '2015-01-01 07:00:00.000000+00:00') as timestamp",
+ tableName))
+ .setDefaultDataset(DatasetId.of(DATASET))
+ .setUseLegacySql(false)
+ .build();
+ bigquery.query(createTable);
+
+ String query =
+ String.format(
+ "SELECT date, datetime, timestamp\n"
+ + "FROM %s.%s\n"
+ + "WHERE date = @dateParam\n"
+ + "AND datetime = @datetimeParam\n"
+ + "AND timestamp = @timestampParam",
+ DATASET, tableName);
+
+ Range dateRange =
+ Range.newBuilder()
+ .setType(FieldElementType.newBuilder().setType("DATE").build())
+ .setStart("2020-01-01")
+ .setEnd("2020-12-31")
+ .build();
+ Range datetimeRange =
+ Range.newBuilder()
+ .setType(FieldElementType.newBuilder().setType("DATETIME").build())
+ .setStart("2020-01-01T12:00:00")
+ .setEnd("2020-12-31T12:00:00")
+ .build();
+ Range timestampRange =
+ Range.newBuilder()
+ .setType(FieldElementType.newBuilder().setType("TIMESTAMP").build())
+ .setStart("2014-01-01 07:00:00.000000+00:00")
+ .setEnd("2015-01-01 07:00:00.000000+00:00")
+ .build();
+
+ // Test Query Parameter.
+ QueryJobConfiguration config =
+ QueryJobConfiguration.newBuilder(query)
+ .setDefaultDataset(DatasetId.of(DATASET))
+ .addNamedParameter("dateParam", QueryParameterValue.range(dateRange))
+ .addNamedParameter("datetimeParam", QueryParameterValue.range(datetimeRange))
+ .addNamedParameter("timestampParam", QueryParameterValue.range(timestampRange))
+ .build();
+ TableResult result = bigquery.query(config);
+ assertEquals(1, Iterables.size(result.getValues()));
+ for (FieldValueList values : result.iterateAll()) {
+ assertEquals(dateRange.getStart(), values.get("date").getRangeValue().getStart());
+ assertEquals(dateRange.getEnd(), values.get("date").getRangeValue().getEnd());
+ assertEquals(datetimeRange.getStart(), values.get("datetime").getRangeValue().getStart());
+ assertEquals(datetimeRange.getEnd(), values.get("datetime").getRangeValue().getEnd());
+ // timestamps are returned as seconds since epoch
+ assertEquals(
+ 1388559600000000L,
+ values.get("timestamp").getRangeValue().getStart().getTimestampValue());
+ assertEquals(
+ 1420095600000000L, values.get("timestamp").getRangeValue().getEnd().getTimestampValue());
+ }
+
+ // Test listTableData.
+ Schema schema = result.getSchema();
+ result = bigquery.listTableData(DATASET, tableName, schema);
+ assertEquals(1, Iterables.size(result.getValues()));
+ for (FieldValueList values : result.iterateAll()) {
+ assertEquals(dateRange.getStart(), values.get("date").getRangeValue().getStart());
+ assertEquals(dateRange.getEnd(), values.get("date").getRangeValue().getEnd());
+ assertEquals(datetimeRange.getStart(), values.get("datetime").getRangeValue().getStart());
+ assertEquals(datetimeRange.getEnd(), values.get("datetime").getRangeValue().getEnd());
+ // timestamps are returned as seconds since epoch
+ assertEquals(
+ 1388559600000000L,
+ values.get("timestamp").getRangeValue().getStart().getTimestampValue());
+ assertEquals(
+ 1420095600000000L, values.get("timestamp").getRangeValue().getEnd().getTimestampValue());
+ }
+ }
+
@Test
public void testCreateTableWithConstraints() {
String tableName = "test_create_table_with_constraints";
From e91be80ebdd39c2448914ff9aa1742f3079d0bb8 Mon Sep 17 00:00:00 2001
From: Phong Chuong <147636638+PhongChuong@users.noreply.github.com>
Date: Wed, 17 Apr 2024 16:04:35 -0400
Subject: [PATCH 284/393] feat: Add ExportDataStats to QueryStatistics (#3244)
---
.../google/cloud/bigquery/JobStatistics.java | 97 +++++++++++++++++++
.../cloud/bigquery/JobStatisticsTest.java | 12 +++
.../cloud/bigquery/it/ITBigQueryTest.java | 24 +++++
3 files changed, 133 insertions(+)
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 c600f6a19..0200711d6 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
@@ -17,12 +17,14 @@
package com.google.cloud.bigquery;
import com.google.api.core.ApiFunction;
+import com.google.api.services.bigquery.model.ExportDataStatistics;
import com.google.api.services.bigquery.model.JobConfiguration;
import com.google.api.services.bigquery.model.JobStatistics2;
import com.google.api.services.bigquery.model.JobStatistics3;
import com.google.api.services.bigquery.model.JobStatistics4;
import com.google.api.services.bigquery.model.JobStatistics5;
import com.google.api.services.bigquery.model.QueryParameter;
+import com.google.auto.value.AutoValue;
import com.google.cloud.StringEnumType;
import com.google.cloud.StringEnumValue;
import com.google.common.base.Function;
@@ -32,6 +34,7 @@
import java.io.Serializable;
import java.util.List;
import java.util.Objects;
+import javax.annotation.Nullable;
import org.checkerframework.checker.nullness.compatqual.NullableDecl;
/** A Google BigQuery Job statistics. */
@@ -398,6 +401,7 @@ public static class QueryStatistics extends JobStatistics {
private final Long estimatedBytesProcessed;
private final Long numDmlAffectedRows;
private final DmlStats dmlStats;
+ private final ExportDataStats exportDataStats;
private final List referencedTables;
private final StatementType statementType;
private final Long totalBytesBilled;
@@ -472,6 +476,80 @@ public static StatementType[] values() {
}
}
+ /**
+ * Statistics for the EXPORT DATA statement as part of Query Job. EXTRACT JOB statistics are
+ * populated in ExtractStatistics.
+ */
+ @AutoValue
+ public abstract static class ExportDataStats implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * Returns number of destination files generated in case of EXPORT DATA statement only.
+ *
+ * @return value or {@code null} for none
+ */
+ @Nullable
+ public abstract Long getFileCount();
+
+ /**
+ * Returns number of destination rows generated in case of EXPORT DATA statement only.
+ *
+ * @return value or {@code null} for none
+ */
+ @Nullable
+ public abstract Long getRowCount();
+
+ public abstract Builder toBuilder();
+
+ public static Builder newBuilder() {
+ return new AutoValue_JobStatistics_QueryStatistics_ExportDataStats.Builder();
+ }
+
+ static ExportDataStats fromPb(ExportDataStatistics exportDataStatisticsPb) {
+ Builder builder = newBuilder();
+ if (exportDataStatisticsPb.getFileCount() != null) {
+ builder.setFileCount(exportDataStatisticsPb.getFileCount());
+ }
+ if (exportDataStatisticsPb.getRowCount() != null) {
+ builder.setRowCount(exportDataStatisticsPb.getRowCount());
+ }
+ return builder.build();
+ }
+
+ ExportDataStatistics toPb() {
+ ExportDataStatistics exportDataStatisticsPb = new ExportDataStatistics();
+ if (getFileCount() != null) {
+ exportDataStatisticsPb.setFileCount(getFileCount());
+ }
+ if (getRowCount() != null) {
+ exportDataStatisticsPb.setRowCount(getRowCount());
+ }
+ return exportDataStatisticsPb;
+ }
+
+ @AutoValue.Builder
+ public abstract static class Builder {
+
+ /**
+ * Number of destination files generated in case of EXPORT DATA statement only.
+ *
+ * @param fileCount fileCount or {@code null} for none
+ */
+ public abstract Builder setFileCount(Long fileCount);
+
+ /**
+ * Number of destination rows generated in case of EXPORT DATA statement only.
+ *
+ * @param rowCount rowCount or {@code null} for none
+ */
+ public abstract Builder setRowCount(Long rowCount);
+
+ /** Creates a {@code ExportDataStats} object. */
+ public abstract ExportDataStats build();
+ }
+ }
+
static final class Builder extends JobStatistics.Builder {
private BiEngineStats biEngineStats;
@@ -483,6 +561,7 @@ static final class Builder extends JobStatistics.Builder referencedTables;
private StatementType statementType;
private Long totalBytesBilled;
@@ -553,6 +632,10 @@ private Builder(com.google.api.services.bigquery.model.JobStatistics statisticsP
if (statisticsPb.getQuery().getDmlStats() != null) {
this.dmlStats = DmlStats.fromPb(statisticsPb.getQuery().getDmlStats());
}
+ if (statisticsPb.getQuery().getExportDataStatistics() != null) {
+ this.exportDataStats =
+ ExportDataStats.fromPb(statisticsPb.getQuery().getExportDataStatistics());
+ }
}
}
@@ -601,6 +684,11 @@ Builder setDmlStats(DmlStats dmlStats) {
return self();
}
+ Builder setExportDataStats(ExportDataStats exportDataStats) {
+ this.exportDataStats = exportDataStats;
+ return self();
+ }
+
Builder setReferenceTables(List referencedTables) {
this.referencedTables = referencedTables;
return self();
@@ -683,6 +771,7 @@ private QueryStatistics(Builder builder) {
this.estimatedBytesProcessed = builder.estimatedBytesProcessed;
this.numDmlAffectedRows = builder.numDmlAffectedRows;
this.dmlStats = builder.dmlStats;
+ this.exportDataStats = builder.exportDataStats;
this.referencedTables = builder.referencedTables;
this.statementType = builder.statementType;
this.totalBytesBilled = builder.totalBytesBilled;
@@ -749,6 +838,11 @@ public DmlStats getDmlStats() {
return dmlStats;
}
+ /** Detailed statistics for EXPORT DATA statement. */
+ public ExportDataStats getExportDataStats() {
+ return exportDataStats;
+ }
+
/**
* Referenced tables for the job. Queries that reference more than 50 tables will not have a
* complete list.
@@ -900,6 +994,9 @@ com.google.api.services.bigquery.model.JobStatistics toPb() {
if (dmlStats != null) {
queryStatisticsPb.setDmlStats(dmlStats.toPb());
}
+ if (exportDataStats != null) {
+ queryStatisticsPb.setExportDataStatistics(exportDataStats.toPb());
+ }
if (referencedTables != null) {
queryStatisticsPb.setReferencedTables(
Lists.transform(referencedTables, TableId.TO_PB_FUNCTION));
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobStatisticsTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobStatisticsTest.java
index 24344514e..aaf4aa2b1 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobStatisticsTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobStatisticsTest.java
@@ -23,6 +23,7 @@
import com.google.cloud.bigquery.JobStatistics.ExtractStatistics;
import com.google.cloud.bigquery.JobStatistics.LoadStatistics;
import com.google.cloud.bigquery.JobStatistics.QueryStatistics;
+import com.google.cloud.bigquery.JobStatistics.QueryStatistics.ExportDataStats;
import com.google.cloud.bigquery.JobStatistics.ReservationUsage;
import com.google.cloud.bigquery.JobStatistics.ScriptStatistics;
import com.google.cloud.bigquery.JobStatistics.ScriptStatistics.ScriptStackFrame;
@@ -64,6 +65,13 @@ public class JobStatisticsTest {
.setInsertedRowCount(INSERTED_ROW_COUNT)
.setUpdatedRowCount(UPDATED_ROW_COUNT)
.build();
+ private static final Long EXPORT_DATA_STATS_ROW_COUNT = 3L;
+ private static final Long EXPORT_DATA_STATS_FILE_COUNT = 2L;
+ private static final ExportDataStats EXPORT_DATA_STATS =
+ ExportDataStats.newBuilder()
+ .setRowCount(EXPORT_DATA_STATS_ROW_COUNT)
+ .setFileCount(EXPORT_DATA_STATS_FILE_COUNT)
+ .build();
private static final QueryStatistics.StatementType STATEMENT_TYPE =
QueryStatistics.StatementType.SELECT;
private static final Long TOTAL_BYTES_BILLED = 24L;
@@ -189,6 +197,7 @@ public class JobStatisticsTest {
.setEstimatedBytesProcessed(ESTIMATE_BYTES_PROCESSED)
.setNumDmlAffectedRows(NUM_DML_AFFECTED_ROWS)
.setDmlStats(DML_STATS)
+ .setExportDataStats(EXPORT_DATA_STATS)
.setReferenceTables(REFERENCED_TABLES)
.setStatementType(STATEMENT_TYPE)
.setTotalBytesBilled(TOTAL_BYTES_BILLED)
@@ -293,6 +302,7 @@ public void testBuilder() {
assertEquals(ESTIMATE_BYTES_PROCESSED, QUERY_STATISTICS.getEstimatedBytesProcessed());
assertEquals(NUM_DML_AFFECTED_ROWS, QUERY_STATISTICS.getNumDmlAffectedRows());
assertEquals(DML_STATS, QUERY_STATISTICS.getDmlStats());
+ assertEquals(EXPORT_DATA_STATS, QUERY_STATISTICS.getExportDataStats());
assertEquals(REFERENCED_TABLES, QUERY_STATISTICS.getReferencedTables());
assertEquals(STATEMENT_TYPE, QUERY_STATISTICS.getStatementType());
assertEquals(TOTAL_BYTES_BILLED, QUERY_STATISTICS.getTotalBytesBilled());
@@ -448,6 +458,8 @@ private void compareQueryStatistics(QueryStatistics expected, QueryStatistics va
assertEquals(expected.getMetadataCacheStats(), value.getMetadataCacheStats());
assertEquals(expected.getStatementType(), value.getStatementType());
assertEquals(expected.getTimeline(), value.getTimeline());
+ assertEquals(expected.getDmlStats(), value.getDmlStats());
+ assertEquals(expected.getExportDataStats(), value.getExportDataStats());
}
private void compareStatistics(JobStatistics expected, JobStatistics value) {
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
index b385fe47b..430235fba 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
@@ -6734,4 +6734,28 @@ static GoogleCredentials loadCredentials(String credentialFile) {
}
return null;
}
+
+ @Test
+ public void testQueryExportStatistics() throws InterruptedException {
+ String query =
+ String.format(
+ "EXPORT DATA OPTIONS(\n"
+ + " uri='gs://%s/*.csv',\n"
+ + " format='CSV',\n"
+ + " overwrite=true,\n"
+ + " header=true,\n"
+ + " field_delimiter=';') AS\n"
+ + "SELECT num FROM UNNEST([1,2,3]) AS num",
+ BUCKET);
+ QueryJobConfiguration config =
+ QueryJobConfiguration.newBuilder(query).setDefaultDataset(DatasetId.of(DATASET)).build();
+ Job job = bigquery.create(JobInfo.of(JobId.of(), config));
+ job = job.waitFor();
+
+ QueryStatistics queryStatistics = job.getStatistics();
+ assertNotNull(queryStatistics);
+ assertNotNull(queryStatistics.getExportDataStats());
+ assertEquals(1L, queryStatistics.getExportDataStats().getFileCount().longValue());
+ assertEquals(3L, queryStatistics.getExportDataStats().getRowCount().longValue());
+ }
}
From 1bb51ede58d4dc5c12f8c85f3641f989f2f1eb88 Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Thu, 18 Apr 2024 13:07:39 -0400
Subject: [PATCH 285/393] chore: adding 'infrastructure-public-image-' tags for
owlbot-java (#1947) (#3227)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore: adding 'infrastructure-public-image-' tags for owlbot-java (#1947)
Source-Link: https://github.com/googleapis/synthtool/commit/349943b54f15f9f9655a3d1c35d58acb68165678
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:033161f610016d155d58f96769ad5a821d203824684e8a13fc50be8c25a5f9cf
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.github/.OwlBot.lock.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index bf48c82da..d47d3d76b 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,5 +13,5 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
- digest: sha256:0d1bb26a1a99ae0456176bf891b8490e9aab424a5cb4e4d301d9703c4dc43b58
-# created: 2024-01-30T19:46:55.029238294Z
+ digest: sha256:033161f610016d155d58f96769ad5a821d203824684e8a13fc50be8c25a5f9cf
+# created: 2024-04-04T20:03:23.876897177Z
From aeedf2960700f1742e38469fd26ea70000967cfa Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 18 Apr 2024 20:26:37 +0200
Subject: [PATCH 286/393] deps: update github/codeql-action action to v2.25.1
(#3229)
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index e29083aab..e229d5ff7 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@a82bad71823183e5b120ab52d521460ecb0585fe # v2.24.9
+ uses: github/codeql-action/upload-sarif@e949a1676c32f4c215780f7429eb9f00ff18b225 # v2.25.1
with:
sarif_file: results.sarif
From ee94a6ea22628a758135ef8a0e08ff31f00f20f2 Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Thu, 18 Apr 2024 14:50:58 -0400
Subject: [PATCH 287/393] chore: owlbot-java adding the Docker tag in images
section (#1949) (#3230)
Source-Link: https://github.com/googleapis/synthtool/commit/4b49307944160a308513a34f73dbd6b00b6617d2
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:25b384ee1674eda3984ec41c15b514a63bbeb5eda4d57c73c7e6f5adef2fd2f1
Co-authored-by: Owl Bot
Co-authored-by: Phong Chuong <147636638+PhongChuong@users.noreply.github.com>
---
.github/.OwlBot.lock.yaml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index d47d3d76b..5762b6966 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,5 +13,6 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
- digest: sha256:033161f610016d155d58f96769ad5a821d203824684e8a13fc50be8c25a5f9cf
-# created: 2024-04-04T20:03:23.876897177Z
+ digest: sha256:25b384ee1674eda3984ec41c15b514a63bbeb5eda4d57c73c7e6f5adef2fd2f1
+# created: 2024-04-05T19:12:34.133475268Z
+
From ff1ebc66e458519deca37275ba91650133188683 Mon Sep 17 00:00:00 2001
From: Phong Chuong <147636638+PhongChuong@users.noreply.github.com>
Date: Fri, 19 Apr 2024 10:13:45 -0400
Subject: [PATCH 288/393] feat: Add support for inserting Range values (#3246)
* feat: Add support for inserting Range values
* fix: IT assert to use size instead of const
---
.../java/com/google/cloud/bigquery/Range.java | 13 +
.../com/google/cloud/bigquery/RangeTest.java | 18 +
.../cloud/bigquery/it/ITBigQueryTest.java | 323 ++++++++++++------
3 files changed, 246 insertions(+), 108 deletions(-)
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Range.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Range.java
index 198bd28fa..8d244fbeb 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Range.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Range.java
@@ -19,6 +19,7 @@
import com.google.auto.value.AutoValue;
import com.google.cloud.bigquery.FieldValue.Attribute;
+import com.google.common.collect.ImmutableMap;
import java.io.Serializable;
import javax.annotation.Nullable;
@@ -44,6 +45,18 @@ public FieldValue getEnd() {
@Nullable
abstract String getEndInner();
+ /** Returns the start and end values of this range. */
+ public ImmutableMap getValues() {
+ ImmutableMap.Builder result = ImmutableMap.builder();
+ if (!getStart().isNull()) {
+ result.put("start", getStart().getStringValue());
+ }
+ if (!getEnd().isNull()) {
+ result.put("end", getEnd().getStringValue());
+ }
+ return result.build();
+ }
+
/** Returns the type of the range. */
@Nullable
public abstract FieldElementType getType();
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/RangeTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/RangeTest.java
index 45bb83259..2d98376b3 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/RangeTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/RangeTest.java
@@ -18,6 +18,7 @@
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
+import com.google.common.collect.ImmutableMap;
import org.junit.Test;
public class RangeTest {
@@ -77,6 +78,17 @@ public void testToBuilder() {
compareRange(RANGE_TIMESTAMP, RANGE_TIMESTAMP.toBuilder().build());
}
+ @Test
+ public void testGetValues() {
+ compareRange(null, null, Range.of("[null, NULL)").getValues());
+ compareRange(null, null, Range.of("[unbounded, UNBOUNDED)").getValues());
+ compareRange(null, null, Range.of("[nUlL, uNbOuNdEd)").getValues());
+
+ compareRange(null, "2020-12-31", Range.of("[null, 2020-12-31)").getValues());
+ compareRange("2020-01-01", null, Range.of("[2020-01-01, null)").getValues());
+ compareRange("2020-01-01", "2020-12-31", Range.of("[2020-01-01, 2020-12-31)").getValues());
+ }
+
private static void compareRange(Range expected, Range value) {
assertEquals(expected.getStart(), value.getStart());
assertEquals(expected.getEnd(), value.getEnd());
@@ -97,4 +109,10 @@ private static void compareRange(String expectedStart, String expectedEnd, Range
assertEquals(expectedEnd, range.getEnd().getStringValue());
}
}
+
+ private static void compareRange(
+ String expectedStart, String expectedEnd, ImmutableMap values) {
+ assertEquals(expectedStart, values.get("start"));
+ assertEquals(expectedEnd, values.get("end"));
+ }
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
index 430235fba..d78549f6e 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
@@ -838,6 +838,157 @@ public class ITBigQueryTest {
+ " \"universe_domain\": \"fake.domain\"\n"
+ "}";
+ private static final Schema RANGE_SCHEMA =
+ Schema.of(
+ Field.newBuilder("name", StandardSQLTypeName.STRING)
+ .setMode(Field.Mode.NULLABLE)
+ .setDescription("Name of the row")
+ .build(),
+ Field.newBuilder("date", StandardSQLTypeName.RANGE)
+ .setMode(Field.Mode.NULLABLE)
+ .setDescription("Range field with DATE")
+ .setRangeElementType(FieldElementType.newBuilder().setType("DATE").build())
+ .build(),
+ Field.newBuilder("datetime", StandardSQLTypeName.RANGE)
+ .setMode(Field.Mode.NULLABLE)
+ .setDescription("Range field with DATETIME")
+ .setRangeElementType(FieldElementType.newBuilder().setType("DATETIME").build())
+ .build(),
+ Field.newBuilder("timestamp", StandardSQLTypeName.RANGE)
+ .setMode(Field.Mode.NULLABLE)
+ .setDescription("Range field with TIMESTAMP")
+ .setRangeElementType(FieldElementType.newBuilder().setType("TIMESTAMP").build())
+ .build());
+
+ private static final ImmutableMap RANGE_TEST_VALUES_DATES =
+ new ImmutableMap.Builder()
+ .put(
+ "bounded",
+ Range.newBuilder()
+ .setStart("2020-01-01")
+ .setEnd("2020-12-31")
+ .setType(FieldElementType.newBuilder().setType("DATE").build())
+ .build())
+ .put(
+ "unboundedStart",
+ Range.newBuilder()
+ .setStart(null)
+ .setEnd("2020-12-31")
+ .setType(FieldElementType.newBuilder().setType("DATE").build())
+ .build())
+ .put(
+ "unboundedEnd",
+ Range.newBuilder()
+ .setStart("2020-01-01")
+ .setEnd(null)
+ .setType(FieldElementType.newBuilder().setType("DATE").build())
+ .build())
+ .put(
+ "unbounded",
+ Range.newBuilder()
+ .setStart(null)
+ .setEnd(null)
+ .setType(FieldElementType.newBuilder().setType("DATE").build())
+ .build())
+ .build();
+
+ private static final ImmutableMap RANGE_TEST_VALUES_DATETIME =
+ new ImmutableMap.Builder()
+ .put(
+ "bounded",
+ Range.newBuilder()
+ .setStart("2014-08-19T05:41:35.220000")
+ .setEnd("2015-09-20T06:41:35.220000")
+ .setType(FieldElementType.newBuilder().setType("DATETIME").build())
+ .build())
+ .put(
+ "unboundedStart",
+ Range.newBuilder()
+ .setStart(null)
+ .setEnd("2015-09-20T06:41:35.220000")
+ .setType(FieldElementType.newBuilder().setType("DATETIME").build())
+ .build())
+ .put(
+ "unboundedEnd",
+ Range.newBuilder()
+ .setStart("2014-08-19T05:41:35.220000")
+ .setEnd(null)
+ .setType(FieldElementType.newBuilder().setType("DATETIME").build())
+ .build())
+ .put(
+ "unbounded",
+ Range.newBuilder()
+ .setStart(null)
+ .setEnd(null)
+ .setType(FieldElementType.newBuilder().setType("DATETIME").build())
+ .build())
+ .build();
+
+ private static final ImmutableMap RANGE_TEST_VALUES_TIMESTAMP =
+ new ImmutableMap.Builder()
+ .put(
+ "bounded",
+ Range.newBuilder()
+ .setStart("2014-08-19 12:41:35.220000+00:00")
+ .setEnd("2015-09-20 13:41:35.220000+01:00")
+ .setType(FieldElementType.newBuilder().setType("TIMESTAMP").build())
+ .build())
+ .put(
+ "unboundedStart",
+ Range.newBuilder()
+ .setStart(null)
+ .setEnd("2015-09-20 13:41:35.220000+01:00")
+ .setType(FieldElementType.newBuilder().setType("TIMESTAMP").build())
+ .build())
+ .put(
+ "unboundedEnd",
+ Range.newBuilder()
+ .setStart("2014-08-19 12:41:35.220000+00:00")
+ .setEnd(null)
+ .setType(FieldElementType.newBuilder().setType("TIMESTAMP").build())
+ .build())
+ .put(
+ "unbounded",
+ Range.newBuilder()
+ .setStart(null)
+ .setEnd(null)
+ .setType(FieldElementType.newBuilder().setType("TIMESTAMP").build())
+ .build())
+ .build();
+
+ // timestamps are returned as seconds since epoch
+ private static final ImmutableMap RANGE_TEST_VALUES_EXPECTED_TIMESTAMP =
+ new ImmutableMap.Builder()
+ .put(
+ "bounded",
+ Range.newBuilder()
+ .setStart("1408452095.220000")
+ .setEnd("1442752895.220000")
+ .setType(FieldElementType.newBuilder().setType("TIMESTAMP").build())
+ .build())
+ .put(
+ "unboundedStart",
+ Range.newBuilder()
+ .setStart(null)
+ .setEnd("1442752895.220000")
+ .setType(FieldElementType.newBuilder().setType("TIMESTAMP").build())
+ .build())
+ .put(
+ "unboundedEnd",
+ Range.newBuilder()
+ .setStart("1408452095.220000")
+ .setEnd(null)
+ .setType(FieldElementType.newBuilder().setType("TIMESTAMP").build())
+ .build())
+ .put(
+ "unbounded",
+ Range.newBuilder()
+ .setStart(null)
+ .setEnd(null)
+ .setType(FieldElementType.newBuilder().setType("TIMESTAMP").build())
+ .build())
+ .build();
+
private static BigQuery bigquery;
private static Storage storage;
@@ -1313,123 +1464,79 @@ public void testIntervalType() throws InterruptedException {
}
@Test
- public void testRangeCreateTable() throws InterruptedException {
- String tableName = "test_range_create_table";
+ public void testRangeType() throws InterruptedException {
+ String tableName = "test_range_type_table";
TableId tableId = TableId.of(DATASET, tableName);
- Field rangeFieldWithDate =
- Field.newBuilder("rangeFieldDate", StandardSQLTypeName.RANGE)
- .setMode(Field.Mode.NULLABLE)
- .setDescription("Range field with DATE")
- .setRangeElementType(FieldElementType.newBuilder().setType("DATE").build())
- .build();
-
- Field rangeFieldWithDatetime =
- Field.newBuilder("rangeFieldDatetime", StandardSQLTypeName.RANGE)
- .setMode(Field.Mode.NULLABLE)
- .setDescription("Range field with DATETIME")
- .setRangeElementType(FieldElementType.newBuilder().setType("DATETIME").build())
- .build();
-
- Field rangeFieldWithTimestamp =
- Field.newBuilder("rangeFieldTimestamp", StandardSQLTypeName.RANGE)
- .setMode(Field.Mode.NULLABLE)
- .setDescription("Range field with TIMESTAMP")
- .setRangeElementType(FieldElementType.newBuilder().setType("TIMESTAMP").build())
- .build();
- Schema schema = Schema.of(rangeFieldWithDate, rangeFieldWithDatetime, rangeFieldWithTimestamp);
- StandardTableDefinition standardTableDefinition = StandardTableDefinition.of(schema);
+ StandardTableDefinition standardTableDefinition = StandardTableDefinition.of(RANGE_SCHEMA);
try {
- // Create a table with a RANGE column.
+ // Create a table with a RANGE columns and verify the result.
Table createdTable = bigquery.create(TableInfo.of(tableId, standardTableDefinition));
assertNotNull(createdTable);
- } finally {
- assertTrue(bigquery.delete(tableId));
- }
- }
-
- @Test
- public void testRangeType() throws InterruptedException {
- // TODO: Combine testRangeType test with testRangeCreateTable test.
- String tableName = "test_range_type_table";
- QueryJobConfiguration createTable =
- QueryJobConfiguration.newBuilder(
- String.format(
- "CREATE TABLE %s AS SELECT RANGE(DATE '2020-01-01', DATE '2020-12-31') as date, \n"
- + "RANGE(DATETIME '2020-01-01T12:00:00', DATETIME '2020-12-31T12:00:00') as datetime, \n"
- + "RANGE(TIMESTAMP '2014-01-01 07:00:00.000000+00:00', TIMESTAMP '2015-01-01 07:00:00.000000+00:00') as timestamp",
- tableName))
- .setDefaultDataset(DatasetId.of(DATASET))
- .setUseLegacySql(false)
- .build();
- bigquery.query(createTable);
- String query =
- String.format(
- "SELECT date, datetime, timestamp\n"
- + "FROM %s.%s\n"
- + "WHERE date = @dateParam\n"
- + "AND datetime = @datetimeParam\n"
- + "AND timestamp = @timestampParam",
- DATASET, tableName);
+ Table remoteTable = bigquery.getTable(DATASET, tableName);
+ Schema remoteSchema = remoteTable.getDefinition().getSchema();
+ assertEquals(RANGE_SCHEMA, remoteSchema);
+
+ // Insert range values to the table.
+ InsertAllRequest.Builder request = InsertAllRequest.newBuilder(tableId);
+ for (String name : RANGE_TEST_VALUES_DATES.keySet()) {
+ ImmutableMap.Builder builder = ImmutableMap.builder();
+ builder.put("name", name);
+ builder.put("date", RANGE_TEST_VALUES_DATES.get(name).getValues());
+ builder.put("datetime", RANGE_TEST_VALUES_DATETIME.get(name).getValues());
+ builder.put("timestamp", RANGE_TEST_VALUES_TIMESTAMP.get(name).getValues());
+ request.addRow(builder.build());
+ }
+ bigquery.insertAll(request.build());
- Range dateRange =
- Range.newBuilder()
- .setType(FieldElementType.newBuilder().setType("DATE").build())
- .setStart("2020-01-01")
- .setEnd("2020-12-31")
- .build();
- Range datetimeRange =
- Range.newBuilder()
- .setType(FieldElementType.newBuilder().setType("DATETIME").build())
- .setStart("2020-01-01T12:00:00")
- .setEnd("2020-12-31T12:00:00")
- .build();
- Range timestampRange =
- Range.newBuilder()
- .setType(FieldElementType.newBuilder().setType("TIMESTAMP").build())
- .setStart("2014-01-01 07:00:00.000000+00:00")
- .setEnd("2015-01-01 07:00:00.000000+00:00")
- .build();
+ // Test listTableData
+ TableResult result = bigquery.listTableData(DATASET, tableName, RANGE_SCHEMA);
+ assertEquals(RANGE_TEST_VALUES_DATES.size(), Iterables.size(result.getValues()));
+ for (FieldValueList values : result.iterateAll()) {
+ String name = values.get("name").getStringValue();
+ assertEquals(RANGE_TEST_VALUES_DATES.get(name), values.get("date").getRangeValue());
+ assertEquals(RANGE_TEST_VALUES_DATETIME.get(name), values.get("datetime").getRangeValue());
+ assertEquals(
+ RANGE_TEST_VALUES_EXPECTED_TIMESTAMP.get(name),
+ values.get("timestamp").getRangeValue());
+ }
- // Test Query Parameter.
- QueryJobConfiguration config =
- QueryJobConfiguration.newBuilder(query)
- .setDefaultDataset(DatasetId.of(DATASET))
- .addNamedParameter("dateParam", QueryParameterValue.range(dateRange))
- .addNamedParameter("datetimeParam", QueryParameterValue.range(datetimeRange))
- .addNamedParameter("timestampParam", QueryParameterValue.range(timestampRange))
- .build();
- TableResult result = bigquery.query(config);
- assertEquals(1, Iterables.size(result.getValues()));
- for (FieldValueList values : result.iterateAll()) {
- assertEquals(dateRange.getStart(), values.get("date").getRangeValue().getStart());
- assertEquals(dateRange.getEnd(), values.get("date").getRangeValue().getEnd());
- assertEquals(datetimeRange.getStart(), values.get("datetime").getRangeValue().getStart());
- assertEquals(datetimeRange.getEnd(), values.get("datetime").getRangeValue().getEnd());
- // timestamps are returned as seconds since epoch
- assertEquals(
- 1388559600000000L,
- values.get("timestamp").getRangeValue().getStart().getTimestampValue());
- assertEquals(
- 1420095600000000L, values.get("timestamp").getRangeValue().getEnd().getTimestampValue());
- }
+ // Test Query Parameter by selecting for the bounded Range entry only.
+ String query =
+ String.format(
+ "SELECT name, date, datetime, timestamp\n"
+ + "FROM %s.%s\n"
+ + "WHERE date = @dateParam\n"
+ + "AND datetime = @datetimeParam\n"
+ + "AND timestamp = @timestampParam",
+ DATASET, tableName);
+
+ QueryJobConfiguration config =
+ QueryJobConfiguration.newBuilder(query)
+ .setDefaultDataset(DatasetId.of(DATASET))
+ .addNamedParameter(
+ "dateParam", QueryParameterValue.range(RANGE_TEST_VALUES_DATES.get("bounded")))
+ .addNamedParameter(
+ "datetimeParam",
+ QueryParameterValue.range(RANGE_TEST_VALUES_DATETIME.get("bounded")))
+ .addNamedParameter(
+ "timestampParam",
+ QueryParameterValue.range(RANGE_TEST_VALUES_TIMESTAMP.get("bounded")))
+ .build();
+ result = bigquery.query(config);
- // Test listTableData.
- Schema schema = result.getSchema();
- result = bigquery.listTableData(DATASET, tableName, schema);
- assertEquals(1, Iterables.size(result.getValues()));
- for (FieldValueList values : result.iterateAll()) {
- assertEquals(dateRange.getStart(), values.get("date").getRangeValue().getStart());
- assertEquals(dateRange.getEnd(), values.get("date").getRangeValue().getEnd());
- assertEquals(datetimeRange.getStart(), values.get("datetime").getRangeValue().getStart());
- assertEquals(datetimeRange.getEnd(), values.get("datetime").getRangeValue().getEnd());
- // timestamps are returned as seconds since epoch
- assertEquals(
- 1388559600000000L,
- values.get("timestamp").getRangeValue().getStart().getTimestampValue());
- assertEquals(
- 1420095600000000L, values.get("timestamp").getRangeValue().getEnd().getTimestampValue());
+ assertEquals(1, Iterables.size(result.getValues()));
+ for (FieldValueList values : result.iterateAll()) {
+ String name = values.get("name").getStringValue();
+ assertEquals(RANGE_TEST_VALUES_DATES.get(name), values.get("date").getRangeValue());
+ assertEquals(RANGE_TEST_VALUES_DATETIME.get(name), values.get("datetime").getRangeValue());
+ assertEquals(
+ RANGE_TEST_VALUES_EXPECTED_TIMESTAMP.get(name),
+ values.get("timestamp").getRangeValue());
+ }
+ } finally {
+ assertTrue(bigquery.delete(tableId));
}
}
From 2c0f48f86d3c4d5a1a682775c494a9122373858d Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 19 Apr 2024 16:18:39 +0200
Subject: [PATCH 289/393] deps: update dependency
com.google.apis:google-api-services-bigquery to v2-rev20240323-2.0.0 (#3239)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index d79a4ed09..dc50db323 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,7 +54,7 @@
UTF-8
github
google-cloud-bigquery-parent
- v2-rev20240229-2.0.0
+ v2-rev20240323-2.0.0
From b13bbb856f75bb545a1b346a9fddda0234a491a7 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 19 Apr 2024 16:21:22 +0200
Subject: [PATCH 290/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigtable to v2.38.0 (#3240)
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 508e4432a..34ad3706c 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -63,7 +63,7 @@
com.google.cloud
google-cloud-bigtable
- 2.37.0
+ 2.38.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 6a2093ab5..06cb8a3f8 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -61,7 +61,7 @@
com.google.cloud
google-cloud-bigtable
- 2.37.0
+ 2.38.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 5e636d072..35cb184df 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -79,7 +79,7 @@
com.google.cloud
google-cloud-bigtable
- 2.37.0
+ 2.38.0
test
From 66d5efded17c42514f98f4af2bc6ba826999a62a Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 19 Apr 2024 16:39:57 +0200
Subject: [PATCH 291/393] deps: update dependency org.threeten:threeten-extra
to v1.8.0 (#3242)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index dc50db323..78a00c4e7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -106,7 +106,7 @@
org.threeten
threeten-extra
- 1.7.2
+ 1.8.0
From 0b0b414c3a2b213844ce653ecea361aabd097d47 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 19 Apr 2024 16:45:42 +0200
Subject: [PATCH 292/393] test(deps): update dependency
com.google.cloud:google-cloud-storage to v2.37.0 (#3252)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 78a00c4e7..5824bbe1e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -137,7 +137,7 @@
com.google.cloud
google-cloud-storage
- 2.36.1
+ 2.37.0
test
From 75ea095b0a194d6be4951795bc3a616ace389ff2 Mon Sep 17 00:00:00 2001
From: Phong Chuong <147636638+PhongChuong@users.noreply.github.com>
Date: Fri, 19 Apr 2024 15:10:29 -0400
Subject: [PATCH 293/393] feat: Add totalSlotMs to JobStatistics (#3250)
* feat: Add totalSlotMs to JobStatistics
* fix: testQuery IT flakiness
* Fix query statistics test
---
.../google/cloud/bigquery/JobStatistics.java | 42 ++++++++++---------
.../cloud/bigquery/JobStatisticsTest.java | 10 ++++-
.../cloud/bigquery/it/ITBigQueryTest.java | 19 +++++++++
3 files changed, 51 insertions(+), 20 deletions(-)
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 0200711d6..64d31fab1 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
@@ -40,7 +40,7 @@
/** A Google BigQuery Job statistics. */
public abstract class JobStatistics implements Serializable {
- private static final long serialVersionUID = 1433024714741660399L;
+ private static final long serialVersionUID = 1433024714741660400L;
private final Long creationTime;
private final Long endTime;
@@ -51,6 +51,7 @@ public abstract class JobStatistics implements Serializable {
private final List reservationUsage;
private final TransactionInfo transactionInfo;
private final SessionInfo sessionInfo;
+ private final Long totalSlotMs;
/** A Google BigQuery Copy Job statistics. */
public static class CopyStatistics extends JobStatistics {
@@ -390,7 +391,7 @@ static LoadStatistics fromPb(com.google.api.services.bigquery.model.JobStatistic
/** A Google BigQuery Query Job statistics. */
public static class QueryStatistics extends JobStatistics {
- private static final long serialVersionUID = 7539354109226732353L;
+ private static final long serialVersionUID = 7539354109226732354L;
private final BiEngineStats biEngineStats;
private final Integer billingTier;
@@ -407,7 +408,6 @@ public static class QueryStatistics extends JobStatistics {
private final Long totalBytesBilled;
private final Long totalBytesProcessed;
private final Long totalPartitionsProcessed;
- private final Long totalSlotMs;
private final List queryPlan;
private final List timeline;
private final Schema schema;
@@ -567,7 +567,6 @@ static final class Builder extends JobStatistics.Builder queryPlan;
private List timeline;
private Schema schema;
@@ -599,7 +598,6 @@ private Builder(com.google.api.services.bigquery.model.JobStatistics statisticsP
this.totalBytesBilled = statisticsPb.getQuery().getTotalBytesBilled();
this.totalBytesProcessed = statisticsPb.getQuery().getTotalBytesProcessed();
this.totalPartitionsProcessed = statisticsPb.getQuery().getTotalPartitionsProcessed();
- this.totalSlotMs = statisticsPb.getQuery().getTotalSlotMs();
if (statisticsPb.getQuery().getStatementType() != null) {
this.statementType = StatementType.valueOf(statisticsPb.getQuery().getStatementType());
}
@@ -719,11 +717,6 @@ Builder setTotalPartitionsProcessed(Long totalPartitionsProcessed) {
return self();
}
- Builder setTotalSlotMs(Long totalSlotMs) {
- this.totalSlotMs = totalSlotMs;
- return self();
- }
-
Builder setQueryPlan(List queryPlan) {
this.queryPlan = queryPlan;
return self();
@@ -777,7 +770,6 @@ private QueryStatistics(Builder builder) {
this.totalBytesBilled = builder.totalBytesBilled;
this.totalBytesProcessed = builder.totalBytesProcessed;
this.totalPartitionsProcessed = builder.totalPartitionsProcessed;
- this.totalSlotMs = builder.totalSlotMs;
this.queryPlan = builder.queryPlan;
this.timeline = builder.timeline;
this.schema = builder.schema;
@@ -874,11 +866,6 @@ public Long getTotalPartitionsProcessed() {
return totalPartitionsProcessed;
}
- /** Returns the slot-milliseconds consumed by the query. */
- public Long getTotalSlotMs() {
- return totalSlotMs;
- }
-
/**
* Returns the query plan as a list of stages or {@code null} if a query plan is not available.
* Each stage involves a number of steps that read from data sources, perform a series of
@@ -984,7 +971,6 @@ com.google.api.services.bigquery.model.JobStatistics toPb() {
queryStatisticsPb.setTotalBytesBilled(totalBytesBilled);
queryStatisticsPb.setTotalBytesProcessed(totalBytesProcessed);
queryStatisticsPb.setTotalPartitionsProcessed(totalPartitionsProcessed);
- queryStatisticsPb.setTotalSlotMs(totalSlotMs);
if (ddlTargetTable != null) {
queryStatisticsPb.setDdlTargetTable(ddlTargetTable.toPb());
}
@@ -1589,6 +1575,7 @@ abstract static class Builder>
private List reservationUsage;
private TransactionInfo transactionInfo;
private SessionInfo sessionInfo;
+ private Long totalSlotMs;
protected Builder() {}
@@ -1598,6 +1585,9 @@ protected Builder(com.google.api.services.bigquery.model.JobStatistics statistic
this.startTime = statisticsPb.getStartTime();
this.numChildJobs = statisticsPb.getNumChildJobs();
this.parentJobId = statisticsPb.getParentJobId();
+ if (statisticsPb.getTotalSlotMs() != null) {
+ this.totalSlotMs = statisticsPb.getTotalSlotMs();
+ }
if (statisticsPb.getScriptStatistics() != null) {
this.scriptStatistics = ScriptStatistics.fromPb(statisticsPb.getScriptStatistics());
}
@@ -1633,6 +1623,11 @@ B setStartTime(Long startTime) {
return self();
}
+ B setTotalSlotMs(Long totalSlotMs) {
+ this.totalSlotMs = totalSlotMs;
+ return self();
+ }
+
abstract T build();
}
@@ -1646,6 +1641,7 @@ protected JobStatistics(Builder builder) {
this.reservationUsage = builder.reservationUsage;
this.transactionInfo = builder.transactionInfo;
this.sessionInfo = builder.sessionInfo;
+ this.totalSlotMs = builder.totalSlotMs;
}
/** Returns the creation time of the job in milliseconds since epoch. */
@@ -1699,6 +1695,11 @@ public SessionInfo getSessionInfo() {
return sessionInfo;
}
+ /** Returns the slot-milliseconds for the job. */
+ public Long getTotalSlotMs() {
+ return totalSlotMs;
+ }
+
ToStringHelper toStringHelper() {
return MoreObjects.toStringHelper(this)
.add("creationTime", creationTime)
@@ -1709,7 +1710,8 @@ ToStringHelper toStringHelper() {
.add("scriptStatistics", scriptStatistics)
.add("reservationUsage", reservationUsage)
.add("transactionInfo", transactionInfo)
- .add("sessionInfo", sessionInfo);
+ .add("sessionInfo", sessionInfo)
+ .add("totalSlotMs", totalSlotMs);
}
@Override
@@ -1727,7 +1729,8 @@ final int baseHashCode() {
scriptStatistics,
reservationUsage,
transactionInfo,
- sessionInfo);
+ sessionInfo,
+ totalSlotMs);
}
final boolean baseEquals(JobStatistics jobStatistics) {
@@ -1742,6 +1745,7 @@ com.google.api.services.bigquery.model.JobStatistics toPb() {
statistics.setStartTime(startTime);
statistics.setNumChildJobs(numChildJobs);
statistics.setParentJobId(parentJobId);
+ statistics.setTotalSlotMs(totalSlotMs);
if (scriptStatistics != null) {
statistics.setScriptStatistics(scriptStatistics.toPb());
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobStatisticsTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobStatisticsTest.java
index aaf4aa2b1..2a1353f5d 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobStatisticsTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/JobStatisticsTest.java
@@ -102,6 +102,7 @@ public class JobStatisticsTest {
.setStartTime(START_TIME)
.setCopiedRows(COPIED_ROW)
.setCopiedLogicalBytes(COPIED_LOGICAL_BYTES)
+ .setTotalSlotMs(TOTAL_SLOT_MS)
.build();
private static final ExtractStatistics EXTRACT_STATISTICS =
ExtractStatistics.newBuilder()
@@ -110,6 +111,7 @@ public class JobStatisticsTest {
.setStartTime(START_TIME)
.setDestinationUriFileCounts(FILE_COUNT)
.setInputBytes(INPUT_BYTES)
+ .setTotalSlotMs(TOTAL_SLOT_MS)
.build();
private static final LoadStatistics LOAD_STATISTICS =
LoadStatistics.newBuilder()
@@ -121,6 +123,7 @@ public class JobStatisticsTest {
.setOutputBytes(OUTPUT_BYTES)
.setOutputRows(OUTPUT_ROWS)
.setBadRecords(BAD_RECORDS)
+ .setTotalSlotMs(TOTAL_SLOT_MS)
.build();
private static final LoadStatistics LOAD_STATISTICS_INCOMPLETE =
LoadStatistics.newBuilder()
@@ -130,6 +133,7 @@ public class JobStatisticsTest {
.setInputBytes(INPUT_BYTES)
.setInputFiles(INPUT_FILES)
.setBadRecords(BAD_RECORDS)
+ .setTotalSlotMs(TOTAL_SLOT_MS)
.build();
private static final List SUBSTEPS1 = ImmutableList.of("substep1", "substep2");
private static final List SUBSTEPS2 = ImmutableList.of("substep3", "substep4");
@@ -272,18 +276,21 @@ public void testBuilder() {
assertEquals(CREATION_TIME, EXTRACT_STATISTICS.getCreationTime());
assertEquals(START_TIME, EXTRACT_STATISTICS.getStartTime());
assertEquals(END_TIME, EXTRACT_STATISTICS.getEndTime());
+ assertEquals(TOTAL_SLOT_MS, EXTRACT_STATISTICS.getTotalSlotMs());
assertEquals(FILE_COUNT, EXTRACT_STATISTICS.getDestinationUriFileCounts());
assertEquals(INPUT_BYTES, EXTRACT_STATISTICS.getInputBytes());
assertEquals(CREATION_TIME, COPY_STATISTICS.getCreationTime());
assertEquals(START_TIME, COPY_STATISTICS.getStartTime());
assertEquals(END_TIME, COPY_STATISTICS.getEndTime());
+ assertEquals(TOTAL_SLOT_MS, COPY_STATISTICS.getTotalSlotMs());
assertEquals(COPIED_LOGICAL_BYTES, COPY_STATISTICS.getCopiedLogicalBytes());
assertEquals(COPIED_ROW, COPY_STATISTICS.getCopiedRows());
assertEquals(CREATION_TIME, LOAD_STATISTICS.getCreationTime());
assertEquals(START_TIME, LOAD_STATISTICS.getStartTime());
assertEquals(END_TIME, LOAD_STATISTICS.getEndTime());
+ assertEquals(TOTAL_SLOT_MS, LOAD_STATISTICS.getTotalSlotMs());
assertEquals(INPUT_BYTES, LOAD_STATISTICS.getInputBytes());
assertEquals(INPUT_FILES, LOAD_STATISTICS.getInputFiles());
assertEquals(OUTPUT_BYTES, LOAD_STATISTICS.getOutputBytes());
@@ -293,6 +300,7 @@ public void testBuilder() {
assertEquals(CREATION_TIME, QUERY_STATISTICS.getCreationTime());
assertEquals(START_TIME, QUERY_STATISTICS.getStartTime());
assertEquals(END_TIME, QUERY_STATISTICS.getEndTime());
+ assertEquals(TOTAL_SLOT_MS, QUERY_STATISTICS.getTotalSlotMs());
assertEquals(BI_ENGINE_STATS, QUERY_STATISTICS.getBiEngineStats());
assertEquals(BILLING_TIER, QUERY_STATISTICS.getBillingTier());
assertEquals(CACHE_HIT, QUERY_STATISTICS.getCacheHit());
@@ -308,7 +316,6 @@ public void testBuilder() {
assertEquals(TOTAL_BYTES_BILLED, QUERY_STATISTICS.getTotalBytesBilled());
assertEquals(TOTAL_BYTES_PROCESSED, QUERY_STATISTICS.getTotalBytesProcessed());
assertEquals(TOTAL_PARTITION_PROCESSED, QUERY_STATISTICS.getTotalPartitionsProcessed());
- assertEquals(TOTAL_SLOT_MS, QUERY_STATISTICS.getTotalSlotMs());
assertEquals(QUERY_PLAN, QUERY_STATISTICS.getQueryPlan());
assertEquals(TIMELINE, QUERY_STATISTICS.getTimeline());
@@ -472,6 +479,7 @@ private void compareStatistics(JobStatistics expected, JobStatistics value) {
assertEquals(expected.getNumChildJobs(), value.getNumChildJobs());
assertEquals(expected.getParentJobId(), value.getParentJobId());
assertEquals(expected.getScriptStatistics(), value.getScriptStatistics());
+ assertEquals(expected.getTotalSlotMs(), value.getTotalSlotMs());
}
private void compareScriptStatistics(ScriptStatistics expected, ScriptStatistics value) {
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
index d78549f6e..56dd7cd3a 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
@@ -3160,6 +3160,23 @@ public void testQuery() throws InterruptedException {
assertNotNull(statistics.getQueryPlan());
}
+ @Test
+ public void testQueryStatistics() throws InterruptedException {
+ // Use CURRENT_TIMESTAMP to avoid potential caching.
+ String query = "SELECT CURRENT_TIMESTAMP() AS ts";
+ QueryJobConfiguration config =
+ QueryJobConfiguration.newBuilder(query)
+ .setDefaultDataset(DatasetId.of(DATASET))
+ .setUseQueryCache(false)
+ .build();
+ Job job = bigquery.create(JobInfo.of(JobId.of(), config));
+ job = job.waitFor();
+
+ JobStatistics.QueryStatistics statistics = job.getStatistics();
+ assertNotNull(statistics.getQueryPlan());
+ assertThat(statistics.getTotalSlotMs()).isGreaterThan(0L);
+ }
+
@Test
public void testExecuteSelectDefaultConnectionSettings() throws SQLException {
// Use the default connection settings
@@ -4429,6 +4446,7 @@ public void testLoadSessionSupport() throws InterruptedException {
Job loadJob = bigquery.getJob(job.getJobId());
JobStatistics.LoadStatistics statistics = loadJob.getStatistics();
+ assertThat(statistics.getTotalSlotMs()).isGreaterThan(0L);
String sessionId = statistics.getSessionInfo().getSessionId();
assertNotNull(sessionId);
@@ -5678,6 +5696,7 @@ public void testExtractJob() throws InterruptedException, TimeoutException {
assertEquals(1L, extractStatistics.getDestinationUriFileCounts().size());
assertEquals(
loadStatistics.getOutputBytes().longValue(), extractStatistics.getInputBytes().longValue());
+ assertThat(extractStatistics.getTotalSlotMs()).isGreaterThan(0L);
String extractedCsv =
new String(storage.readAllBytes(BUCKET, EXTRACT_FILE), StandardCharsets.UTF_8);
From c50c17bc4eedd0c34f440b697a8b26a5354c9c4f Mon Sep 17 00:00:00 2001
From: Sumeet Gajjar
Date: Sat, 20 Apr 2024 09:13:01 -0700
Subject: [PATCH 294/393] fix: Fix BigQuery#listDatasets to include dataset
location in the response (#3238)
---
.../bigquery/spi/v2/HttpBigQueryRpc.java | 1 +
.../cloud/bigquery/BigQueryImplTest.java | 8 +++++-
.../cloud/bigquery/it/ITBigQueryTest.java | 28 +++++++++++++++++--
.../bigquery/spi/v2/HttpBigQueryRpcTest.java | 4 ++-
4 files changed, 37 insertions(+), 4 deletions(-)
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java
index dca129bfb..5dd39eaed 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java
@@ -95,6 +95,7 @@ public Dataset apply(DatasetList.Datasets datasetPb) {
.setFriendlyName(datasetPb.getFriendlyName())
.setId(datasetPb.getId())
.setKind(datasetPb.getKind())
+ .setLocation(datasetPb.getLocation())
.setLabels(datasetPb.getLabels());
}
};
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java
index 62160bef2..d3d374006 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java
@@ -81,16 +81,22 @@ public class BigQueryImplTest {
Acl.of(Acl.Group.ofAllAuthenticatedUsers(), Acl.Role.READER),
Acl.of(new Acl.View(TableId.of(PROJECT, "dataset", "table"))));
private static final DatasetInfo DATASET_INFO =
- DatasetInfo.newBuilder(DATASET).setAcl(ACCESS_RULES).setDescription("description").build();
+ DatasetInfo.newBuilder(DATASET)
+ .setAcl(ACCESS_RULES)
+ .setDescription("description")
+ .setLocation(LOCATION)
+ .build();
private static final DatasetInfo DATASET_INFO_WITH_PROJECT =
DatasetInfo.newBuilder(PROJECT, DATASET)
.setAcl(ACCESS_RULES_WITH_PROJECT)
.setDescription("description")
+ .setLocation(LOCATION)
.build();
private static final DatasetInfo OTHER_DATASET_INFO =
DatasetInfo.newBuilder(PROJECT, OTHER_DATASET)
.setAcl(ACCESS_RULES)
.setDescription("other description")
+ .setLocation(LOCATION)
.build();
private static final TableId TABLE_ID = TableId.of(DATASET, TABLE);
private static final TableId OTHER_TABLE_ID = TableId.of(PROJECT, DATASET, OTHER_TABLE);
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
index 56dd7cd3a..6caecd26b 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
@@ -775,6 +775,20 @@ public class ITBigQueryTest {
private static final Set PUBLIC_DATASETS =
ImmutableSet.of("github_repos", "hacker_news", "noaa_gsod", "samples", "usa_names");
+ private static final Map PUBLIC_DATASETS_LOCATION =
+ ImmutableMap.builder()
+ .put("github_repos", "US")
+ .put("hacker_news", "US")
+ .put("noaa_gsod", "US")
+ .put("samples", "US")
+ .put("usa_names", "US")
+ // Dataset url:
+ // https://console.cloud.google.com/bigquery?project=bigquery-public-data&ws=!1m4!1m3!3m2!1sbigquery-public-data!2sgnomAD_asiane1
+ .put("gnomAD_asiane1", "asia-northeast1")
+ // Dataset url:
+ // https://console.cloud.google.com/bigquery?project=bigquery-public-data&ws=!1m4!1m3!3m2!1sbigquery-public-data!2sgnomAD_eu
+ .put("gnomAD_eu", "EU")
+ .build();
private static final String PUBLIC_PROJECT = "bigquery-public-data";
private static final String PUBLIC_DATASET = "census_bureau_international";
@@ -1113,11 +1127,16 @@ public void testListDatasets() {
Page datasets = bigquery.listDatasets("bigquery-public-data");
Iterator iterator = datasets.iterateAll().iterator();
Set datasetNames = new HashSet<>();
+ Map datasetLocation = new HashMap<>();
while (iterator.hasNext()) {
- datasetNames.add(iterator.next().getDatasetId().getDataset());
+ Dataset dataset = iterator.next();
+ String name = dataset.getDatasetId().getDataset();
+ datasetNames.add(name);
+ datasetLocation.put(name, dataset.getLocation());
}
for (String type : PUBLIC_DATASETS) {
assertTrue(datasetNames.contains(type));
+ assertEquals(PUBLIC_DATASETS_LOCATION.get(type), datasetLocation.get(type));
}
}
@@ -6759,11 +6778,16 @@ public void testUniverseDomainWithMatchingDomain() {
Page datasets = bigQuery.listDatasets("bigquery-public-data");
Iterator iterator = datasets.iterateAll().iterator();
Set datasetNames = new HashSet<>();
+ Map datasetLocation = new HashMap<>();
while (iterator.hasNext()) {
- datasetNames.add(iterator.next().getDatasetId().getDataset());
+ Dataset dataset = iterator.next();
+ String name = dataset.getDatasetId().getDataset();
+ datasetNames.add(name);
+ datasetLocation.put(name, dataset.getLocation());
}
for (String type : PUBLIC_DATASETS) {
assertTrue(datasetNames.contains(type));
+ assertEquals(PUBLIC_DATASETS_LOCATION.get(type), datasetLocation.get(type));
}
}
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpcTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpcTest.java
index 576e5c4e3..eec39f633 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpcTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpcTest.java
@@ -35,7 +35,8 @@ public void testListToDataset() {
.setId("project-id:dataset-id")
.setFriendlyName("friendly")
.setKind("bigquery#dataset")
- .setLabels(Collections.singletonMap("foo", "bar"));
+ .setLabels(Collections.singletonMap("foo", "bar"))
+ .setLocation("test-region-1");
Dataset dataset = HttpBigQueryRpc.LIST_TO_DATASET.apply(listDataSet);
assertThat(dataset.getKind()).isEqualTo("bigquery#dataset");
@@ -43,5 +44,6 @@ public void testListToDataset() {
assertThat(dataset.getFriendlyName()).isEqualTo("friendly");
assertThat(dataset.getDatasetReference()).isEqualTo(datasetRef);
assertThat(dataset.getLabels()).containsExactly("foo", "bar");
+ assertThat(dataset.getLocation()).isEqualTo("test-region-1");
}
}
From 066b51fb088fc67c83a45a219897752876889136 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 22 Apr 2024 17:55:12 +0200
Subject: [PATCH 295/393] deps: update actions/upload-artifact action to v4.3.2
(#3248)
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index e229d5ff7..6f8d89164 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -59,7 +59,7 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
+ uses: actions/upload-artifact@1746f4ab65b179e0ea60a494b83293b640dd5bba # v4.3.2
with:
name: SARIF file
path: results.sarif
From 6df3a325b7f71ed1eb2054dd0c3a27cfd6cda2f2 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 22 Apr 2024 20:10:02 +0200
Subject: [PATCH 296/393] deps: update actions/checkout action (#3256)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update actions/checkout action
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.github/workflows/scorecard.yml | 2 +-
.github/workflows/unmanaged_dependency_check.yaml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 6f8d89164..87d07a651 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -32,7 +32,7 @@ jobs:
steps:
- name: "Checkout code"
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
+ uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
with:
persist-credentials: false
diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml
index ebf073c1b..92fce0400 100644
--- a/.github/workflows/unmanaged_dependency_check.yaml
+++ b/.github/workflows/unmanaged_dependency_check.yaml
@@ -5,7 +5,7 @@ jobs:
unmanaged_dependency_check:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: temurin
From 19d92a144cd4d86fee6dd420e574c3a1a928642c Mon Sep 17 00:00:00 2001
From: Phong Chuong <147636638+PhongChuong@users.noreply.github.com>
Date: Mon, 22 Apr 2024 15:28:06 -0400
Subject: [PATCH 297/393] fix: Remove @InternalApi from TableResult (#3257)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* fix: Remove @InternalApi from TableResult
Since users depends on TableResult in testing, removing @InternalApi forces maintainers to change/roll out changes to TableResult more carefully in the future.
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* Remove clirr ignore difference entries for TableResult
---------
Co-authored-by: Owl Bot
---
.../clirr-ignored-differences.xml | 38 -------------------
.../google/cloud/bigquery/TableResult.java | 2 -
2 files changed, 40 deletions(-)
diff --git a/google-cloud-bigquery/clirr-ignored-differences.xml b/google-cloud-bigquery/clirr-ignored-differences.xml
index abf827b48..9c69fd6a6 100644
--- a/google-cloud-bigquery/clirr-ignored-differences.xml
+++ b/google-cloud-bigquery/clirr-ignored-differences.xml
@@ -2,17 +2,6 @@
-
- 3005
- com/google/cloud/bigquery/TableResult*
- TableResult is an internal API and it should be fine to update
-
-
- 7002
- com/google/cloud/bigquery/TableResult*
- *TableResult(*)
- TableResult is an internal API and it should be fine to update
-
7004
com/google/cloud/bigquery/spi/v2/BigQueryRpc
@@ -25,19 +14,6 @@
com.google.api.services.bigquery.model.GetQueryResultsResponse getQueryResultsWithRowLimit(java.lang.String, java.lang.String, java.lang.String, java.lang.Integer)
getQueryResultsWithRowLimit is just used by ConnectionImpl at the moment so it should be fine to update the signature instead of writing an overloaded method
-
- 7004
- com/google/cloud/bigquery/TableResult*
- *TableResult(*)
- It should be fine to update TableResult constructors since it is used to return results to the user and users should not directly construct TableResult objects
-
-
- 7005
- com/google/cloud/bigquery/TableResult*
- *TableResult(*)
- *TableResult(*)
- It should be fine to update TableResult constructors since it is used to return results to the user and users should not directly construct TableResult objects
-
7013
com/google/cloud/bigquery/ExternalTableDefinition*
@@ -58,16 +34,6 @@
com/google/cloud/bigquery/TableInfo*
*ResourceTags(*)
-
- 7013
- com/google/cloud/bigquery/TableResult*
- *getPageNoSchema(*)
-
-
- 7013
- com/google/cloud/bigquery/TableResult*
- *toBuilder(*)
-
7012
com/google/cloud/bigquery/Connection
@@ -163,8 +129,4 @@
com/google/cloud/bigquery/StandardTableDefinition*
*BigLakeConfiguration(*)
-
- 8001
- com/google/cloud/bigquery/EmptyTableResult*
-
\ No newline at end of file
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableResult.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableResult.java
index 203a91fab..1b4b0e101 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableResult.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableResult.java
@@ -16,7 +16,6 @@
package com.google.cloud.bigquery;
-import com.google.api.core.InternalApi;
import com.google.api.gax.paging.Page;
import com.google.auto.value.AutoValue;
import com.google.common.base.Function;
@@ -27,7 +26,6 @@
import java.util.Objects;
import javax.annotation.Nullable;
-@InternalApi
@AutoValue
public abstract class TableResult implements Page, Serializable {
From 94b5b4312a259653d2b6703788315a7c559d4c92 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Tue, 23 Apr 2024 10:11:33 -0400
Subject: [PATCH 298/393] chore(main): release 2.39.0 (#3213)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
CHANGELOG.md | 35 +++++++++++++++++++++++++++++++
benchmark/pom.xml | 2 +-
google-cloud-bigquery-bom/pom.xml | 4 ++--
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
7 files changed, 44 insertions(+), 9 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 547ec4ce2..4b4d2002d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,40 @@
# Changelog
+## [2.39.0](https://github.com/googleapis/java-bigquery/compare/v2.38.2...v2.39.0) (2024-04-22)
+
+
+### Features
+
+* Add ExportDataStats to QueryStatistics ([#3244](https://github.com/googleapis/java-bigquery/issues/3244)) ([e91be80](https://github.com/googleapis/java-bigquery/commit/e91be80ebdd39c2448914ff9aa1742f3079d0bb8))
+* Add new fields to copy job statistics ([#3205](https://github.com/googleapis/java-bigquery/issues/3205)) ([64bdda8](https://github.com/googleapis/java-bigquery/commit/64bdda84fe06726042a41f2a89ac5c067f9bc949))
+* Add Range object to allow reading range value ([#3236](https://github.com/googleapis/java-bigquery/issues/3236)) ([2c3399d](https://github.com/googleapis/java-bigquery/commit/2c3399dd10fecc01237158a3cdeee966b38746f2))
+* Add support for inserting Range values ([#3246](https://github.com/googleapis/java-bigquery/issues/3246)) ([ff1ebc6](https://github.com/googleapis/java-bigquery/commit/ff1ebc66e458519deca37275ba91650133188683))
+* Add support for ObjectMetadata ([#3217](https://github.com/googleapis/java-bigquery/issues/3217)) ([975df05](https://github.com/googleapis/java-bigquery/commit/975df05b95b714c5574155d5e09860885c4b58f2))
+* Add totalSlotMs to JobStatistics ([#3250](https://github.com/googleapis/java-bigquery/issues/3250)) ([75ea095](https://github.com/googleapis/java-bigquery/commit/75ea095b0a194d6be4951795bc3a616ace389ff2))
+
+
+### Bug Fixes
+
+* Fix BigQuery#listDatasets to include dataset location in the response ([#3238](https://github.com/googleapis/java-bigquery/issues/3238)) ([c50c17b](https://github.com/googleapis/java-bigquery/commit/c50c17bc4eedd0c34f440b697a8b26a5354c9c4f))
+* Remove @InternalApi from TableResult ([#3257](https://github.com/googleapis/java-bigquery/issues/3257)) ([19d92a1](https://github.com/googleapis/java-bigquery/commit/19d92a144cd4d86fee6dd420e574c3a1a928642c))
+
+
+### Dependencies
+
+* Update actions/checkout action ([#3256](https://github.com/googleapis/java-bigquery/issues/3256)) ([6df3a32](https://github.com/googleapis/java-bigquery/commit/6df3a325b7f71ed1eb2054dd0c3a27cfd6cda2f2))
+* Update actions/upload-artifact action to v4.3.2 ([#3248](https://github.com/googleapis/java-bigquery/issues/3248)) ([066b51f](https://github.com/googleapis/java-bigquery/commit/066b51fb088fc67c83a45a219897752876889136))
+* Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.40.0 ([#3210](https://github.com/googleapis/java-bigquery/issues/3210)) ([bf7e97e](https://github.com/googleapis/java-bigquery/commit/bf7e97e1c936a419a34529a316c4f538872dd20b))
+* Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.41.0 ([#3219](https://github.com/googleapis/java-bigquery/issues/3219)) ([9d71b8b](https://github.com/googleapis/java-bigquery/commit/9d71b8b9a9231ea5d7cfa93c7bcbb533d6a3a900))
+* Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.43.0 ([#3225](https://github.com/googleapis/java-bigquery/issues/3225)) ([a897306](https://github.com/googleapis/java-bigquery/commit/a8973067348fa09acd91c5b01f048c43fac93894))
+* Update dependency com.google.apis:google-api-services-bigquery to v2-rev20240323-2.0.0 ([#3239](https://github.com/googleapis/java-bigquery/issues/3239)) ([2c0f48f](https://github.com/googleapis/java-bigquery/commit/2c0f48f86d3c4d5a1a682775c494a9122373858d))
+* Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.44.0 ([#3211](https://github.com/googleapis/java-bigquery/issues/3211)) ([6993b51](https://github.com/googleapis/java-bigquery/commit/6993b51f8722466b846a7dd3912acbd81e04126c))
+* Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.45.0 ([#3220](https://github.com/googleapis/java-bigquery/issues/3220)) ([21ae09c](https://github.com/googleapis/java-bigquery/commit/21ae09ce2c63f790ca77cc5c4c0df16dcb123b59))
+* Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.47.0 ([#3226](https://github.com/googleapis/java-bigquery/issues/3226)) ([d45d168](https://github.com/googleapis/java-bigquery/commit/d45d168bf53a8648e2254c8c4305a5d9a390276d))
+* Update dependency com.google.cloud:sdk-platform-java-config to v3.28.1 ([#3207](https://github.com/googleapis/java-bigquery/issues/3207)) ([6204331](https://github.com/googleapis/java-bigquery/commit/6204331953b3922f5ecb1ac0c1868cb6579dd73b))
+* Update dependency org.threeten:threeten-extra to v1.8.0 ([#3242](https://github.com/googleapis/java-bigquery/issues/3242)) ([66d5efd](https://github.com/googleapis/java-bigquery/commit/66d5efded17c42514f98f4af2bc6ba826999a62a))
+* Update github/codeql-action action to v2.24.9 ([#3204](https://github.com/googleapis/java-bigquery/issues/3204)) ([7a24d3e](https://github.com/googleapis/java-bigquery/commit/7a24d3e29f32db58475c1e02ab1c13ee8941c27d))
+* Update github/codeql-action action to v2.25.1 ([#3229](https://github.com/googleapis/java-bigquery/issues/3229)) ([aeedf29](https://github.com/googleapis/java-bigquery/commit/aeedf2960700f1742e38469fd26ea70000967cfa))
+
## [2.38.2](https://github.com/googleapis/java-bigquery/compare/v2.38.1...v2.38.2) (2024-03-21)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index a931b0dd7..2133b6e6d 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.38.3-SNAPSHOT
+ 2.39.0
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index 37799ec4e..1513fd25e 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-bigquery-bom
- 2.38.3-SNAPSHOT
+ 2.39.0
pom
com.google.cloud
@@ -54,7 +54,7 @@
com.google.cloud
google-cloud-bigquery
- 2.38.3-SNAPSHOT
+ 2.39.0
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index c26518548..8232a8059 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.38.3-SNAPSHOT
+ 2.39.0
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.38.3-SNAPSHOT
+ 2.39.0
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 5824bbe1e..15d74cb7e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.38.3-SNAPSHOT
+ 2.39.0
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -93,7 +93,7 @@
com.google.cloud
google-cloud-bigquery
- 2.38.3-SNAPSHOT
+ 2.39.0
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 06cb8a3f8..90e7572ba 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.38.3-SNAPSHOT
+ 2.39.0
diff --git a/versions.txt b/versions.txt
index 3d8630e02..8da4e4838 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.38.2:2.38.3-SNAPSHOT
\ No newline at end of file
+google-cloud-bigquery:2.39.0:2.39.0
\ No newline at end of file
From 0c5eed1a18409f120a1243bd5da1db2aa4f9c206 Mon Sep 17 00:00:00 2001
From: Liam Miller-Cushon
Date: Wed, 24 Apr 2024 11:33:59 -0700
Subject: [PATCH 299/393] Fix: @Nullable annotations on builder methods (#3222)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* Fix @Nullable annotations on builder methods
This fixes errors in the latest versions of AutoValue
```
google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ConnectionSettings.java:225: error: [AutoValueBuilderSetterNullable] Setter methods always return the Builder so @Nullable is not appropriate
public abstract Builder setUseReadAPI(Boolean useReadAPI);
^
```
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* Review comments
* Review comments
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 6 +++---
.../java/com/google/cloud/bigquery/ConnectionSettings.java | 1 -
.../cloud/bigquery/ReadClientConnectionConfiguration.java | 6 +++---
3 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md
index cc0001a9c..d7279f7ea 100644
--- a/README.md
+++ b/README.md
@@ -60,13 +60,13 @@ implementation 'com.google.cloud:google-cloud-bigquery'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigquery:2.38.2'
+implementation 'com.google.cloud:google-cloud-bigquery:2.39.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.38.2"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.39.0"
```
@@ -351,7 +351,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquery/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.38.2
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.39.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ConnectionSettings.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ConnectionSettings.java
index a9aabe038..79bc3aac9 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ConnectionSettings.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ConnectionSettings.java
@@ -221,7 +221,6 @@ Builder withDefaultValues() {
*
* @param useReadAPI or {@code true} for none
*/
- @Nullable
public abstract Builder setUseReadAPI(Boolean useReadAPI);
/**
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ReadClientConnectionConfiguration.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ReadClientConnectionConfiguration.java
index e0805a11e..03cc2140e 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ReadClientConnectionConfiguration.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ReadClientConnectionConfiguration.java
@@ -31,21 +31,18 @@ public abstract static class Builder {
* Sets the total row count to page row count ratio used to determine whether to us the
* BigQueryStorage Read client to fetch result sets after the first page.
*/
- @Nullable
public abstract Builder setTotalToPageRowCountRatio(Long ratio);
/**
* Sets the minimum number of table rows in the query results used to determine whether to us
* the BigQueryStorage Read client to fetch result sets after the first page.
*/
- @Nullable
public abstract Builder setMinResultSize(Long numRows);
/**
* Sets the maximum number of table rows allowed in buffer before streaming them to the
* BigQueryResult.
*/
- @Nullable
public abstract Builder setBufferSize(Long bufferSize);
/** Creates a {@code ReadClientConnectionConfiguration} object. */
@@ -53,12 +50,15 @@ public abstract static class Builder {
}
/** Returns the totalToPageRowCountRatio in this configuration. */
+ @Nullable
public abstract Long getTotalToPageRowCountRatio();
/** Returns the minResultSize in this configuration. */
+ @Nullable
public abstract Long getMinResultSize();
/** Returns the bufferSize in this configuration. */
+ @Nullable
public abstract Long getBufferSize();
public abstract Builder toBuilder();
From 52152350a2a6218b51ebf3d7dd6beb2699064a3c Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 24 Apr 2024 22:13:15 +0200
Subject: [PATCH 300/393] deps: update actions/upload-artifact action to v4.3.3
(#3258)
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 87d07a651..a9471c52e 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -59,7 +59,7 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
- uses: actions/upload-artifact@1746f4ab65b179e0ea60a494b83293b640dd5bba # v4.3.2
+ uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: SARIF file
path: results.sarif
From 3302dc46e3e2c6a173798ef7f1642d3d4cb20332 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 24 Apr 2024 22:13:30 +0200
Subject: [PATCH 301/393] deps: update github/codeql-action action to v2.25.2
(#3260)
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index a9471c52e..9047ddf71 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@e949a1676c32f4c215780f7429eb9f00ff18b225 # v2.25.1
+ uses: github/codeql-action/upload-sarif@9ace329d8c0504a5571820cf13ab64d3f59e84fb # v2.25.2
with:
sarif_file: results.sarif
From 841cd386da8f83f02af20e7cae8740c3bfbeeb3d Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 24 Apr 2024 22:13:54 +0200
Subject: [PATCH 302/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquery to v2.39.0 (#3262)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigquery to v2.39.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 2 +-
samples/install-without-bom/pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index d7279f7ea..a2aa57226 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquery
- 2.38.2
+ 2.39.0
```
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 34ad3706c..3c411e5ae 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -45,7 +45,7 @@
com.google.cloud
google-cloud-bigquery
- 2.38.2
+ 2.39.0
From 9ef933ad93fbb9546135506b35ceb30a510a9f95 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 24 Apr 2024 22:14:06 +0200
Subject: [PATCH 303/393] build(deps): update dependency
org.apache.maven.plugins:maven-shade-plugin to v3.5.3 (#3263)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* build(deps): update dependency org.apache.maven.plugins:maven-shade-plugin to v3.5.3
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
benchmark/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 2133b6e6d..e070fd339 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -42,7 +42,7 @@
org.apache.maven.plugins
maven-shade-plugin
- 3.5.2
+ 3.5.3
package
From 63075ddbd928dfa075893b7c8312789122bc0587 Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Wed, 24 Apr 2024 16:14:17 -0400
Subject: [PATCH 304/393] chore: update requirements.txt to address dependabot
security alerts. (#1957) (#3264)
Source-Link: https://github.com/googleapis/synthtool/commit/e451548dbb9b120f379bf7f0cc7fce16a5f54193
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:d13de1a4faec2645bda630b7a9aa080ce95182795aeab6f37ed4bd18cf5facbc
Co-authored-by: Owl Bot
---
.github/.OwlBot.lock.yaml | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index 5762b6966..1096f4dc0 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,6 +13,5 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
- digest: sha256:25b384ee1674eda3984ec41c15b514a63bbeb5eda4d57c73c7e6f5adef2fd2f1
-# created: 2024-04-05T19:12:34.133475268Z
-
+ digest: sha256:d13de1a4faec2645bda630b7a9aa080ce95182795aeab6f37ed4bd18cf5facbc
+# created: 2024-04-24T14:22:15.892514394Z
From c297ed2c77e36257451b5c12e4988f3293cdbb88 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Sat, 27 Apr 2024 02:19:23 +0200
Subject: [PATCH 305/393] deps: update actions/checkout action (#3267)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update actions/checkout action
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 9047ddf71..9f8f14d7c 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -32,7 +32,7 @@ jobs:
steps:
- name: "Checkout code"
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
+ uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
persist-credentials: false
From 1cf237702e16952029741c306aa57cb3558a663f Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 29 Apr 2024 14:14:33 +0200
Subject: [PATCH 306/393] deps: update github/codeql-action action to v2.25.3
(#3268)
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 9f8f14d7c..f9cc59028 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@9ace329d8c0504a5571820cf13ab64d3f59e84fb # v2.25.2
+ uses: github/codeql-action/upload-sarif@ceaec5c11a131e0d282ff3b6f095917d234caace # v2.25.3
with:
sarif_file: results.sarif
From 3b6e0d5e3d26b8e2de412aa926a638d72562d4a0 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 29 Apr 2024 15:52:46 +0200
Subject: [PATCH 307/393] deps: update dependency
com.google.cloud:google-cloud-datacatalog-bom to v1.48.0 (#3271)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 15d74cb7e..a37348a4f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -79,7 +79,7 @@
com.google.cloud
google-cloud-datacatalog-bom
- 1.47.0
+ 1.48.0
pom
import
From cb83b68a5eec4b428bffb5bf5d42dd94722bc11d Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 29 Apr 2024 16:23:55 +0200
Subject: [PATCH 308/393] build(deps): update dependency
org.apache.maven.plugins:maven-deploy-plugin to v3.1.2 (#3274)
---
benchmark/pom.xml | 2 +-
samples/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index e070fd339..792446268 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -75,7 +75,7 @@
org.apache.maven.plugins
maven-deploy-plugin
- 3.1.1
+ 3.1.2
true
diff --git a/samples/pom.xml b/samples/pom.xml
index 43d03461c..b7e48a56e 100644
--- a/samples/pom.xml
+++ b/samples/pom.xml
@@ -55,7 +55,7 @@
org.apache.maven.plugins
maven-deploy-plugin
- 3.1.1
+ 3.1.2
true
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 35cb184df..b37b12c68 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -109,7 +109,7 @@
org.apache.maven.plugins
maven-deploy-plugin
- 3.1.1
+ 3.1.2
true
From ee09ab68ea2be824aaf4e3d08b67e3bfbab2977f Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 29 Apr 2024 17:18:15 +0200
Subject: [PATCH 309/393] deps: update dependency
com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.44.0
(#3270)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index a37348a4f..f7bec6362 100644
--- a/pom.xml
+++ b/pom.xml
@@ -149,7 +149,7 @@
com.google.api.grpc
proto-google-cloud-bigqueryconnection-v1
- 2.43.0
+ 2.44.0
test
From ad2dab1d4b7b3871cd73dc779c3bb5b36aab6034 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 29 Apr 2024 17:35:24 +0200
Subject: [PATCH 310/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigqueryconnection to v2.44.0 (#3269)
---
pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index f7bec6362..7241cfbd9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -143,7 +143,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.43.0
+ 2.44.0
test
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 3c411e5ae..a1eb97001 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -69,7 +69,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.43.0
+ 2.44.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 90e7572ba..2d68d4fff 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -67,7 +67,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.43.0
+ 2.44.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index b37b12c68..6cb2561c3 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -85,7 +85,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.43.0
+ 2.44.0
test
From e7c620119321b673c19b99adb79247cd3c52cd67 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 29 Apr 2024 18:26:05 +0200
Subject: [PATCH 311/393] deps: update dependency
com.google.cloud:sdk-platform-java-config to v3.29.0 (#3251)
* deps: update dependency com.google.cloud:sdk-platform-java-config to v3.29.0
* chore: update bigquerystorage-bom to v3.5.0
---------
Co-authored-by: Lawrence Qiu
---
.github/workflows/unmanaged_dependency_check.yaml | 2 +-
.kokoro/continuous/graalvm-native-17.cfg | 2 +-
.kokoro/continuous/graalvm-native.cfg | 2 +-
.kokoro/presubmit/graalvm-native-17.cfg | 2 +-
.kokoro/presubmit/graalvm-native.cfg | 2 +-
google-cloud-bigquery-bom/pom.xml | 2 +-
pom.xml | 4 ++--
7 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml
index 92fce0400..837835a5c 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.28.1
+ uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.29.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/continuous/graalvm-native-17.cfg b/.kokoro/continuous/graalvm-native-17.cfg
index fba53ee54..a1b734677 100644
--- a/.kokoro/continuous/graalvm-native-17.cfg
+++ b/.kokoro/continuous/graalvm-native-17.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_b:3.28.1"
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.29.0"
}
env_vars: {
diff --git a/.kokoro/continuous/graalvm-native.cfg b/.kokoro/continuous/graalvm-native.cfg
index 853a0d20b..8a6da76b4 100644
--- a/.kokoro/continuous/graalvm-native.cfg
+++ b/.kokoro/continuous/graalvm-native.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.28.1"
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.29.0"
}
env_vars: {
diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg
index 227409d0c..ef071a411 100644
--- a/.kokoro/presubmit/graalvm-native-17.cfg
+++ b/.kokoro/presubmit/graalvm-native-17.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_b:3.28.1""
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.29.0""
}
env_vars: {
diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg
index 94e00cbaa..1b1d4c4bf 100644
--- a/.kokoro/presubmit/graalvm-native.cfg
+++ b/.kokoro/presubmit/graalvm-native.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.28.1"
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.29.0"
}
env_vars: {
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index 1513fd25e..7c4d000e6 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -8,7 +8,7 @@
com.google.cloud
sdk-platform-java-config
- 3.28.1
+ 3.29.0
diff --git a/pom.xml b/pom.xml
index 7241cfbd9..80a4f0e2c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
com.google.cloud
sdk-platform-java-config
- 3.28.1
+ 3.29.0
@@ -71,7 +71,7 @@
com.google.cloud
google-cloud-bigquerystorage-bom
- 3.4.0
+ 3.5.0
pom
import
From 7852b2bf598efca2a2feaf5729ea82df910cad66 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Mon, 29 Apr 2024 17:06:23 +0000
Subject: [PATCH 312/393] chore(main): release 2.39.1-SNAPSHOT (#3261)
:robot: I have created a release *beep* *boop*
---
### Updating meta-information for bleeding-edge SNAPSHOT release.
---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
---
benchmark/pom.xml | 2 +-
google-cloud-bigquery-bom/pom.xml | 4 ++--
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
6 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 792446268..40095c03d 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.39.0
+ 2.39.1-SNAPSHOT
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index 7c4d000e6..66e5921d6 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-bigquery-bom
- 2.39.0
+ 2.39.1-SNAPSHOT
pom
com.google.cloud
@@ -54,7 +54,7 @@
com.google.cloud
google-cloud-bigquery
- 2.39.0
+ 2.39.1-SNAPSHOT
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 8232a8059..494fa2aa2 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.39.0
+ 2.39.1-SNAPSHOT
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.39.0
+ 2.39.1-SNAPSHOT
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 80a4f0e2c..1e01ec92e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.39.0
+ 2.39.1-SNAPSHOT
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -93,7 +93,7 @@
com.google.cloud
google-cloud-bigquery
- 2.39.0
+ 2.39.1-SNAPSHOT
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 2d68d4fff..42f3fffc6 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.39.0
+ 2.39.1-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index 8da4e4838..843cba5f4 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.39.0:2.39.0
\ No newline at end of file
+google-cloud-bigquery:2.39.0:2.39.1-SNAPSHOT
\ No newline at end of file
From c2e328324af1e50fdab441bd8b01c1a272a171f4 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Mon, 29 Apr 2024 19:34:22 +0000
Subject: [PATCH 313/393] chore(main): release 2.39.1 (#3275)
:robot: I have created a release *beep* *boop*
---
## [2.39.1](https://togithub.com/googleapis/java-bigquery/compare/v2.39.0...v2.39.1) (2024-04-29)
### Bug Fixes
* @Nullable annotations on builder methods ([#3222](https://togithub.com/googleapis/java-bigquery/issues/3222)) ([0c5eed1](https://togithub.com/googleapis/java-bigquery/commit/0c5eed1a18409f120a1243bd5da1db2aa4f9c206))
### Dependencies
* Update actions/checkout action ([#3267](https://togithub.com/googleapis/java-bigquery/issues/3267)) ([c297ed2](https://togithub.com/googleapis/java-bigquery/commit/c297ed2c77e36257451b5c12e4988f3293cdbb88))
* Update actions/upload-artifact action to v4.3.3 ([#3258](https://togithub.com/googleapis/java-bigquery/issues/3258)) ([5215235](https://togithub.com/googleapis/java-bigquery/commit/52152350a2a6218b51ebf3d7dd6beb2699064a3c))
* Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.44.0 ([#3270](https://togithub.com/googleapis/java-bigquery/issues/3270)) ([ee09ab6](https://togithub.com/googleapis/java-bigquery/commit/ee09ab68ea2be824aaf4e3d08b67e3bfbab2977f))
* Update dependency com.google.cloud:google-cloud-bigquerystorage-bom to v3.5.0 ([e7c6201](https://togithub.com/googleapis/java-bigquery/commit/e7c620119321b673c19b99adb79247cd3c52cd67))
* Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.48.0 ([#3271](https://togithub.com/googleapis/java-bigquery/issues/3271)) ([3b6e0d5](https://togithub.com/googleapis/java-bigquery/commit/3b6e0d5e3d26b8e2de412aa926a638d72562d4a0))
* Update github/codeql-action action to v2.25.2 ([#3260](https://togithub.com/googleapis/java-bigquery/issues/3260)) ([3302dc4](https://togithub.com/googleapis/java-bigquery/commit/3302dc46e3e2c6a173798ef7f1642d3d4cb20332))
* Update github/codeql-action action to v2.25.3 ([#3268](https://togithub.com/googleapis/java-bigquery/issues/3268)) ([1cf2377](https://togithub.com/googleapis/java-bigquery/commit/1cf237702e16952029741c306aa57cb3558a663f))
---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
---
CHANGELOG.md | 18 ++++++++++++++++++
benchmark/pom.xml | 2 +-
google-cloud-bigquery-bom/pom.xml | 4 ++--
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
7 files changed, 27 insertions(+), 9 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4b4d2002d..d675cc821 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,23 @@
# Changelog
+## [2.39.1](https://github.com/googleapis/java-bigquery/compare/v2.39.0...v2.39.1) (2024-04-29)
+
+
+### Bug Fixes
+
+* @Nullable annotations on builder methods ([#3222](https://github.com/googleapis/java-bigquery/issues/3222)) ([0c5eed1](https://github.com/googleapis/java-bigquery/commit/0c5eed1a18409f120a1243bd5da1db2aa4f9c206))
+
+
+### Dependencies
+
+* Update actions/checkout action ([#3267](https://github.com/googleapis/java-bigquery/issues/3267)) ([c297ed2](https://github.com/googleapis/java-bigquery/commit/c297ed2c77e36257451b5c12e4988f3293cdbb88))
+* Update actions/upload-artifact action to v4.3.3 ([#3258](https://github.com/googleapis/java-bigquery/issues/3258)) ([5215235](https://github.com/googleapis/java-bigquery/commit/52152350a2a6218b51ebf3d7dd6beb2699064a3c))
+* Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.44.0 ([#3270](https://github.com/googleapis/java-bigquery/issues/3270)) ([ee09ab6](https://github.com/googleapis/java-bigquery/commit/ee09ab68ea2be824aaf4e3d08b67e3bfbab2977f))
+* Update dependency com.google.cloud:google-cloud-bigquerystorage-bom to v3.5.0 ([e7c6201](https://github.com/googleapis/java-bigquery/commit/e7c620119321b673c19b99adb79247cd3c52cd67))
+* Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.48.0 ([#3271](https://github.com/googleapis/java-bigquery/issues/3271)) ([3b6e0d5](https://github.com/googleapis/java-bigquery/commit/3b6e0d5e3d26b8e2de412aa926a638d72562d4a0))
+* Update github/codeql-action action to v2.25.2 ([#3260](https://github.com/googleapis/java-bigquery/issues/3260)) ([3302dc4](https://github.com/googleapis/java-bigquery/commit/3302dc46e3e2c6a173798ef7f1642d3d4cb20332))
+* Update github/codeql-action action to v2.25.3 ([#3268](https://github.com/googleapis/java-bigquery/issues/3268)) ([1cf2377](https://github.com/googleapis/java-bigquery/commit/1cf237702e16952029741c306aa57cb3558a663f))
+
## [2.39.0](https://github.com/googleapis/java-bigquery/compare/v2.38.2...v2.39.0) (2024-04-22)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 40095c03d..7da9585e9 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.39.1-SNAPSHOT
+ 2.39.1
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index 66e5921d6..126d75c83 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-bigquery-bom
- 2.39.1-SNAPSHOT
+ 2.39.1
pom
com.google.cloud
@@ -54,7 +54,7 @@
com.google.cloud
google-cloud-bigquery
- 2.39.1-SNAPSHOT
+ 2.39.1
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 494fa2aa2..71738d92e 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.39.1-SNAPSHOT
+ 2.39.1
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.39.1-SNAPSHOT
+ 2.39.1
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 1e01ec92e..1ff930cd3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.39.1-SNAPSHOT
+ 2.39.1
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -93,7 +93,7 @@
com.google.cloud
google-cloud-bigquery
- 2.39.1-SNAPSHOT
+ 2.39.1
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 42f3fffc6..433884284 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.39.1-SNAPSHOT
+ 2.39.1
diff --git a/versions.txt b/versions.txt
index 843cba5f4..198c0fe15 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.39.0:2.39.1-SNAPSHOT
\ No newline at end of file
+google-cloud-bigquery:2.39.1:2.39.1
\ No newline at end of file
From 8bac33a32e0239ffa03715ad0c6440527cb2e01e Mon Sep 17 00:00:00 2001
From: Phong Chuong <147636638+PhongChuong@users.noreply.github.com>
Date: Mon, 29 Apr 2024 15:48:21 -0400
Subject: [PATCH 314/393] feat: Add getStringOrDefault method to FieldValue
(#3255)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* feat: Add getStringOrDefault method to FieldValue
* feat: Add getStringOrDefault method to FieldValue
* Add null case to FieldValueTest unit test
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.../java/com/google/cloud/bigquery/FieldValue.java | 14 ++++++++++++++
.../com/google/cloud/bigquery/FieldValueTest.java | 9 +++++++++
2 files changed, 23 insertions(+)
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/FieldValue.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/FieldValue.java
index a28f2ed61..c5a8fab07 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/FieldValue.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/FieldValue.java
@@ -123,6 +123,20 @@ public String getStringValue() {
return (String) value;
}
+ /**
+ * Returns this field's value as a {@link String}, or defaultValue if {@link #isNull()} returns
+ * {@code true}. See {@link #getStringValue()} for more details.
+ *
+ * @throws ClassCastException if the field is not a primitive type
+ */
+ @SuppressWarnings("unchecked")
+ public String getStringValueOrDefault(String defaultValue) {
+ if (isNull()) {
+ return defaultValue;
+ }
+ return getStringValue();
+ }
+
/**
* Returns this field's value as a byte array. This method should only be used if the
* corresponding field has primitive type ({@link LegacySQLTypeName#BYTES}.
diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldValueTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldValueTest.java
index eaebe3567..6dbe81707 100644
--- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldValueTest.java
+++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldValueTest.java
@@ -20,6 +20,7 @@
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
import com.google.api.client.util.Data;
import com.google.api.services.bigquery.model.TableCell;
@@ -77,12 +78,14 @@ public void testFromPb() {
value = FieldValue.fromPb(GEOGRAPHY_FIELD);
assertEquals(FieldValue.Attribute.PRIMITIVE, value.getAttribute());
assertEquals("POINT(-122.350220 47.649154)", value.getStringValue());
+ assertEquals("POINT(-122.350220 47.649154)", value.getStringValueOrDefault(null));
value = FieldValue.fromPb(NUMERIC_FIELD);
assertEquals(FieldValue.Attribute.PRIMITIVE, value.getAttribute());
assertEquals(new BigDecimal("123456789.123456789"), value.getNumericValue());
value = FieldValue.fromPb(STRING_FIELD);
assertEquals(FieldValue.Attribute.PRIMITIVE, value.getAttribute());
assertEquals("string", value.getStringValue());
+ assertEquals("string", value.getStringValueOrDefault(null));
value = FieldValue.fromPb(TIMESTAMP_FIELD);
assertEquals(FieldValue.Attribute.PRIMITIVE, value.getAttribute());
assertEquals(42000000, value.getTimestampValue());
@@ -92,11 +95,13 @@ public void testFromPb() {
PeriodDuration.of(Period.of(3, 2, 1), Duration.parse("PT12H34M56.789S"));
assertEquals(periodDuration, value.getPeriodDuration());
assertEquals("P3Y2M1DT12H34M56.789S", value.getStringValue());
+ assertEquals("P3Y2M1DT12H34M56.789S", value.getStringValueOrDefault(null));
value = FieldValue.fromPb(INTERVAL_FIELD_2);
assertEquals(FieldValue.Attribute.PRIMITIVE, value.getAttribute());
periodDuration = PeriodDuration.of(Period.of(3, 2, 1), Duration.parse("PT12H34M56.789S"));
assertEquals(periodDuration, value.getPeriodDuration());
assertEquals("3-2 1 12:34:56.789", value.getStringValue());
+ assertEquals("3-2 1 12:34:56.789", value.getStringValueOrDefault(null));
value = FieldValue.fromPb(BYTES_FIELD);
assertEquals(FieldValue.Attribute.PRIMITIVE, value.getAttribute());
assertArrayEquals(BYTES, value.getBytesValue());
@@ -113,6 +118,10 @@ public void testFromPb() {
assertEquals(FieldValue.Attribute.RECORD, value.getAttribute());
assertEquals(FieldValue.fromPb(FLOAT_FIELD), value.getRepeatedValue().get(0));
assertEquals(FieldValue.fromPb(TIMESTAMP_FIELD), value.getRepeatedValue().get(1));
+ value = FieldValue.fromPb(NULL_FIELD);
+ assertTrue(value.isNull());
+ assertEquals(null, value.getStringValueOrDefault(null));
+ assertEquals("defaultValue", value.getStringValueOrDefault("defaultValue"));
}
@Test
From fa1a6d8ac490b2bb658d5b111ddecaf396ce5ac4 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 29 Apr 2024 22:15:38 +0200
Subject: [PATCH 315/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigtable to v2.39.0 (#3276)
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index a1eb97001..c204f9004 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -63,7 +63,7 @@
com.google.cloud
google-cloud-bigtable
- 2.38.0
+ 2.39.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 433884284..1d94faeec 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -61,7 +61,7 @@
com.google.cloud
google-cloud-bigtable
- 2.38.0
+ 2.39.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 6cb2561c3..31cb2dab9 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -79,7 +79,7 @@
com.google.cloud
google-cloud-bigtable
- 2.38.0
+ 2.39.0
test
From 8fa6d279bc8dd8fc11fd7f0ebadcbeca7f88ef42 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 30 Apr 2024 17:30:32 +0200
Subject: [PATCH 316/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquery to v2.39.1 (#3278)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-bigquery](https://togithub.com/googleapis/java-bigquery) | `2.39.0` -> `2.39.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-bigquery/2.39.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-bigquery/2.39.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-bigquery/2.39.0/2.39.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-bigquery/2.39.0/2.39.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
googleapis/java-bigquery (com.google.cloud:google-cloud-bigquery)
### [`v2.39.1`](https://togithub.com/googleapis/java-bigquery/blob/HEAD/CHANGELOG.md#2391-2024-04-29)
##### Bug Fixes
- [@Nullable](https://togithub.com/Nullable) annotations on builder methods ([#3222](https://togithub.com/googleapis/java-bigquery/issues/3222)) ([0c5eed1](https://togithub.com/googleapis/java-bigquery/commit/0c5eed1a18409f120a1243bd5da1db2aa4f9c206))
##### Dependencies
- Update actions/checkout action ([#3267](https://togithub.com/googleapis/java-bigquery/issues/3267)) ([c297ed2](https://togithub.com/googleapis/java-bigquery/commit/c297ed2c77e36257451b5c12e4988f3293cdbb88))
- Update actions/upload-artifact action to v4.3.3 ([#3258](https://togithub.com/googleapis/java-bigquery/issues/3258)) ([5215235](https://togithub.com/googleapis/java-bigquery/commit/52152350a2a6218b51ebf3d7dd6beb2699064a3c))
- Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.44.0 ([#3270](https://togithub.com/googleapis/java-bigquery/issues/3270)) ([ee09ab6](https://togithub.com/googleapis/java-bigquery/commit/ee09ab68ea2be824aaf4e3d08b67e3bfbab2977f))
- Update dependency com.google.cloud:google-cloud-bigquerystorage-bom to v3.5.0 ([e7c6201](https://togithub.com/googleapis/java-bigquery/commit/e7c620119321b673c19b99adb79247cd3c52cd67))
- Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.48.0 ([#3271](https://togithub.com/googleapis/java-bigquery/issues/3271)) ([3b6e0d5](https://togithub.com/googleapis/java-bigquery/commit/3b6e0d5e3d26b8e2de412aa926a638d72562d4a0))
- Update github/codeql-action action to v2.25.2 ([#3260](https://togithub.com/googleapis/java-bigquery/issues/3260)) ([3302dc4](https://togithub.com/googleapis/java-bigquery/commit/3302dc46e3e2c6a173798ef7f1642d3d4cb20332))
- Update github/codeql-action action to v2.25.3 ([#3268](https://togithub.com/googleapis/java-bigquery/issues/3268)) ([1cf2377](https://togithub.com/googleapis/java-bigquery/commit/1cf237702e16952029741c306aa57cb3558a663f))
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-bigquery).
---
README.md | 8 ++++----
samples/install-without-bom/pom.xml | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index a2aa57226..5ae7e7abd 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquery
- 2.39.0
+ 2.39.1
```
@@ -60,13 +60,13 @@ implementation 'com.google.cloud:google-cloud-bigquery'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigquery:2.39.0'
+implementation 'com.google.cloud:google-cloud-bigquery:2.39.1'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.39.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.39.1"
```
@@ -351,7 +351,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquery/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.39.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.39.1
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index c204f9004..ef2207706 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -45,7 +45,7 @@
com.google.cloud
google-cloud-bigquery
- 2.39.0
+ 2.39.1
From 67f2ea47f78240b6def27241e21fd298a75920b2 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 3 May 2024 16:24:06 +0200
Subject: [PATCH 317/393] deps: update dependency
com.google.cloud:sdk-platform-java-config to v3.30.0 (#3279)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update dependency com.google.cloud:sdk-platform-java-config to v3.30.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.github/workflows/unmanaged_dependency_check.yaml | 2 +-
.kokoro/continuous/graalvm-native-17.cfg | 2 +-
.kokoro/continuous/graalvm-native.cfg | 2 +-
.kokoro/presubmit/graalvm-native-17.cfg | 2 +-
.kokoro/presubmit/graalvm-native.cfg | 2 +-
README.md | 2 +-
google-cloud-bigquery-bom/pom.xml | 2 +-
pom.xml | 2 +-
8 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml
index 837835a5c..e61a4af1b 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.29.0
+ uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.30.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/continuous/graalvm-native-17.cfg b/.kokoro/continuous/graalvm-native-17.cfg
index a1b734677..6fd91140c 100644
--- a/.kokoro/continuous/graalvm-native-17.cfg
+++ b/.kokoro/continuous/graalvm-native-17.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_b:3.29.0"
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.30.0"
}
env_vars: {
diff --git a/.kokoro/continuous/graalvm-native.cfg b/.kokoro/continuous/graalvm-native.cfg
index 8a6da76b4..e709308c5 100644
--- a/.kokoro/continuous/graalvm-native.cfg
+++ b/.kokoro/continuous/graalvm-native.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.29.0"
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.30.0"
}
env_vars: {
diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg
index ef071a411..9fa6d222d 100644
--- a/.kokoro/presubmit/graalvm-native-17.cfg
+++ b/.kokoro/presubmit/graalvm-native-17.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_b:3.29.0""
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.30.0""
}
env_vars: {
diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg
index 1b1d4c4bf..aad0db978 100644
--- a/.kokoro/presubmit/graalvm-native.cfg
+++ b/.kokoro/presubmit/graalvm-native.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.29.0"
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.30.0"
}
env_vars: {
diff --git a/README.md b/README.md
index 5ae7e7abd..2e55de6a9 100644
--- a/README.md
+++ b/README.md
@@ -53,7 +53,7 @@ If you are using Maven without the BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:
```Groovy
-implementation platform('com.google.cloud:libraries-bom:26.37.0')
+implementation platform('com.google.cloud:libraries-bom:26.38.0')
implementation 'com.google.cloud:google-cloud-bigquery'
```
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index 126d75c83..4ca20f7fa 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -8,7 +8,7 @@
com.google.cloud
sdk-platform-java-config
- 3.29.0
+ 3.30.0
diff --git a/pom.xml b/pom.xml
index 1ff930cd3..f35754a3b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
com.google.cloud
sdk-platform-java-config
- 3.29.0
+ 3.30.0
From 4d498130ae7f3a3077ae415ee9f6250635f639d3 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Mon, 6 May 2024 10:11:24 -0400
Subject: [PATCH 318/393] chore(main): release 2.39.2-SNAPSHOT (#3277)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
benchmark/pom.xml | 2 +-
google-cloud-bigquery-bom/pom.xml | 4 ++--
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
6 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 7da9585e9..4f80512ae 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.39.1
+ 2.39.2-SNAPSHOT
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index 4ca20f7fa..f5625d307 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-bigquery-bom
- 2.39.1
+ 2.39.2-SNAPSHOT
pom
com.google.cloud
@@ -54,7 +54,7 @@
com.google.cloud
google-cloud-bigquery
- 2.39.1
+ 2.39.2-SNAPSHOT
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 71738d92e..227097f45 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.39.1
+ 2.39.2-SNAPSHOT
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.39.1
+ 2.39.2-SNAPSHOT
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index f35754a3b..71eb3fd0f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.39.1
+ 2.39.2-SNAPSHOT
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -93,7 +93,7 @@
com.google.cloud
google-cloud-bigquery
- 2.39.1
+ 2.39.2-SNAPSHOT
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 1d94faeec..57a3c3bc1 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.39.1
+ 2.39.2-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index 198c0fe15..772df7dd4 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.39.1:2.39.1
\ No newline at end of file
+google-cloud-bigquery:2.39.1:2.39.2-SNAPSHOT
\ No newline at end of file
From b73230ecae9b85251ac5064c175613273747398e Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Mon, 6 May 2024 10:48:23 -0400
Subject: [PATCH 319/393] chore(main): release 2.40.0 (#3282)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
CHANGELOG.md | 12 ++++++++++++
benchmark/pom.xml | 2 +-
google-cloud-bigquery-bom/pom.xml | 4 ++--
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
7 files changed, 21 insertions(+), 9 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d675cc821..d9ac2302e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,17 @@
# Changelog
+## [2.40.0](https://github.com/googleapis/java-bigquery/compare/v2.39.1...v2.40.0) (2024-05-06)
+
+
+### Features
+
+* Add getStringOrDefault method to FieldValue ([#3255](https://github.com/googleapis/java-bigquery/issues/3255)) ([8bac33a](https://github.com/googleapis/java-bigquery/commit/8bac33a32e0239ffa03715ad0c6440527cb2e01e))
+
+
+### Dependencies
+
+* Update dependency com.google.cloud:sdk-platform-java-config to v3.30.0 ([#3279](https://github.com/googleapis/java-bigquery/issues/3279)) ([67f2ea4](https://github.com/googleapis/java-bigquery/commit/67f2ea47f78240b6def27241e21fd298a75920b2))
+
## [2.39.1](https://github.com/googleapis/java-bigquery/compare/v2.39.0...v2.39.1) (2024-04-29)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 4f80512ae..a14f420e0 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.39.2-SNAPSHOT
+ 2.40.0
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index f5625d307..3412d1fd7 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-bigquery-bom
- 2.39.2-SNAPSHOT
+ 2.40.0
pom
com.google.cloud
@@ -54,7 +54,7 @@
com.google.cloud
google-cloud-bigquery
- 2.39.2-SNAPSHOT
+ 2.40.0
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 227097f45..1be098dd7 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.39.2-SNAPSHOT
+ 2.40.0
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.39.2-SNAPSHOT
+ 2.40.0
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 71eb3fd0f..0dff255c2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.39.2-SNAPSHOT
+ 2.40.0
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -93,7 +93,7 @@
com.google.cloud
google-cloud-bigquery
- 2.39.2-SNAPSHOT
+ 2.40.0
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 57a3c3bc1..d6cc26323 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.39.2-SNAPSHOT
+ 2.40.0
diff --git a/versions.txt b/versions.txt
index 772df7dd4..328e41f49 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.39.1:2.39.2-SNAPSHOT
\ No newline at end of file
+google-cloud-bigquery:2.40.0:2.40.0
\ No newline at end of file
From 842f1822049831bdfe176ccd83b882104ddb8425 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Mon, 6 May 2024 12:53:22 -0400
Subject: [PATCH 320/393] chore(main): release 2.40.1-SNAPSHOT (#3283)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
benchmark/pom.xml | 2 +-
google-cloud-bigquery-bom/pom.xml | 4 ++--
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
6 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index a14f420e0..a75fbddd9 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.40.0
+ 2.40.1-SNAPSHOT
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index 3412d1fd7..043845b76 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-bigquery-bom
- 2.40.0
+ 2.40.1-SNAPSHOT
pom
com.google.cloud
@@ -54,7 +54,7 @@
com.google.cloud
google-cloud-bigquery
- 2.40.0
+ 2.40.1-SNAPSHOT
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 1be098dd7..12d563283 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.40.0
+ 2.40.1-SNAPSHOT
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.40.0
+ 2.40.1-SNAPSHOT
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 0dff255c2..4af57364f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.40.0
+ 2.40.1-SNAPSHOT
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -93,7 +93,7 @@
com.google.cloud
google-cloud-bigquery
- 2.40.0
+ 2.40.1-SNAPSHOT
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index d6cc26323..817a889d4 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.40.0
+ 2.40.1-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index 328e41f49..a711e0e43 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.40.0:2.40.0
\ No newline at end of file
+google-cloud-bigquery:2.40.0:2.40.1-SNAPSHOT
\ No newline at end of file
From 29059131d3736c15782071d0582234fc29b9c288 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 6 May 2024 19:47:10 +0200
Subject: [PATCH 321/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquery to v2.40.0 (#3285)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigquery to v2.40.0
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 8 ++++----
samples/install-without-bom/pom.xml | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 2e55de6a9..4e20674b7 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquery
- 2.39.1
+ 2.40.0
```
@@ -60,13 +60,13 @@ implementation 'com.google.cloud:google-cloud-bigquery'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigquery:2.39.1'
+implementation 'com.google.cloud:google-cloud-bigquery:2.40.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.39.1"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.40.0"
```
@@ -351,7 +351,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquery/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.39.1
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.40.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index ef2207706..47b92f624 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -45,7 +45,7 @@
com.google.cloud
google-cloud-bigquery
- 2.39.1
+ 2.40.0
From f2c98e0e7b3f4cd81b3c33a45532263700dd8feb Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 6 May 2024 20:27:04 +0200
Subject: [PATCH 322/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquerystorage-bom to v3.5.1 (#3284)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigquerystorage-bom to v3.5.1
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 4af57364f..e15c9cabc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -71,7 +71,7 @@
com.google.cloud
google-cloud-bigquerystorage-bom
- 3.5.0
+ 3.5.1
pom
import
From 4d8f3fb7fd3d8f6e9484c809d6690f8078ef7a30 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 6 May 2024 20:27:32 +0200
Subject: [PATCH 323/393] deps: update actions/checkout action (#3286)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update actions/checkout action
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index f9cc59028..1611e0fd5 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -32,7 +32,7 @@ jobs:
steps:
- name: "Checkout code"
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
+ uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
with:
persist-credentials: false
From 0dc69b371b4dc52d12011f933005bfb77e839f9e Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Mon, 6 May 2024 18:06:24 -0400
Subject: [PATCH 324/393] chore(main): release 2.40.1 (#3287)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
CHANGELOG.md | 7 +++++++
benchmark/pom.xml | 2 +-
google-cloud-bigquery-bom/pom.xml | 4 ++--
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
7 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d9ac2302e..a939b3e6b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,12 @@
# Changelog
+## [2.40.1](https://github.com/googleapis/java-bigquery/compare/v2.40.0...v2.40.1) (2024-05-06)
+
+
+### Dependencies
+
+* Update actions/checkout action ([#3286](https://github.com/googleapis/java-bigquery/issues/3286)) ([4d8f3fb](https://github.com/googleapis/java-bigquery/commit/4d8f3fb7fd3d8f6e9484c809d6690f8078ef7a30))
+
## [2.40.0](https://github.com/googleapis/java-bigquery/compare/v2.39.1...v2.40.0) (2024-05-06)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index a75fbddd9..bcf23b1fe 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.40.1-SNAPSHOT
+ 2.40.1
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index 043845b76..7b43ade96 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-bigquery-bom
- 2.40.1-SNAPSHOT
+ 2.40.1
pom
com.google.cloud
@@ -54,7 +54,7 @@
com.google.cloud
google-cloud-bigquery
- 2.40.1-SNAPSHOT
+ 2.40.1
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 12d563283..095606186 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.40.1-SNAPSHOT
+ 2.40.1
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.40.1-SNAPSHOT
+ 2.40.1
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index e15c9cabc..ee980ecfd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.40.1-SNAPSHOT
+ 2.40.1
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -93,7 +93,7 @@
com.google.cloud
google-cloud-bigquery
- 2.40.1-SNAPSHOT
+ 2.40.1
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 817a889d4..74b17827a 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.40.1-SNAPSHOT
+ 2.40.1
diff --git a/versions.txt b/versions.txt
index a711e0e43..848fb8f02 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.40.0:2.40.1-SNAPSHOT
\ No newline at end of file
+google-cloud-bigquery:2.40.1:2.40.1
\ No newline at end of file
From af8f64c894b917d107de0ac472683b9d16ceb107 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Tue, 7 May 2024 17:55:47 +0200
Subject: [PATCH 325/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquery to v2.40.1 (#3289)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update dependency com.google.cloud:google-cloud-bigquery to v2.40.1
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
README.md | 8 ++++----
samples/install-without-bom/pom.xml | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 4e20674b7..46a291fb2 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquery
- 2.40.0
+ 2.40.1
```
@@ -60,13 +60,13 @@ implementation 'com.google.cloud:google-cloud-bigquery'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigquery:2.40.0'
+implementation 'com.google.cloud:google-cloud-bigquery:2.40.1'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.40.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.40.1"
```
@@ -351,7 +351,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquery/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.40.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.40.1
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 47b92f624..9fff81655 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -45,7 +45,7 @@
com.google.cloud
google-cloud-bigquery
- 2.40.0
+ 2.40.1
From 6e281d548e3198456929ac429a3390480b74a2af Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Tue, 7 May 2024 13:35:08 -0400
Subject: [PATCH 326/393] chore(main): release 2.40.2-SNAPSHOT (#3288)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
benchmark/pom.xml | 2 +-
google-cloud-bigquery-bom/pom.xml | 4 ++--
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
6 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index bcf23b1fe..129df7039 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.40.1
+ 2.40.2-SNAPSHOT
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index 7b43ade96..12df23ddb 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-bigquery-bom
- 2.40.1
+ 2.40.2-SNAPSHOT
pom
com.google.cloud
@@ -54,7 +54,7 @@
com.google.cloud
google-cloud-bigquery
- 2.40.1
+ 2.40.2-SNAPSHOT
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 095606186..5fd9b3f22 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.40.1
+ 2.40.2-SNAPSHOT
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.40.1
+ 2.40.2-SNAPSHOT
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index ee980ecfd..430be7a70 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.40.1
+ 2.40.2-SNAPSHOT
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -93,7 +93,7 @@
com.google.cloud
google-cloud-bigquery
- 2.40.1
+ 2.40.2-SNAPSHOT
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 74b17827a..609773344 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.40.1
+ 2.40.2-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index 848fb8f02..d74a98f5a 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.40.1:2.40.1
\ No newline at end of file
+google-cloud-bigquery:2.40.1:2.40.2-SNAPSHOT
\ No newline at end of file
From 127cff9f964c5d2d912d26276474822fd137a64b Mon Sep 17 00:00:00 2001
From: Nick Redfearn <97466325+nick-redfearn@users.noreply.github.com>
Date: Wed, 8 May 2024 18:40:22 +0100
Subject: [PATCH 327/393] fix: Fixing NPE bug by adding to if clause (#3290)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* fix: fixing bug by adding to if clause
* fix: fixing formatting
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.../src/main/java/com/google/cloud/bigquery/BigQueryImpl.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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 a0e61e23b..acfa1b7f1 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
@@ -427,7 +427,9 @@ public com.google.api.services.bigquery.model.Job call() {
}
if (!idRandom) {
- if (createException instanceof BigQueryException && createException.getCause() != null) {
+ if (createException instanceof BigQueryException
+ && createException.getCause() != null
+ && createException.getCause().getMessage() != null) {
/*GoogleJsonResponseException createExceptionCause =
(GoogleJsonResponseException) createException.getCause();*/
From 5bd03bae5f379c4edc0f5d4c13340d0ed263410e Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 9 May 2024 15:38:32 +0200
Subject: [PATCH 328/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigtable to v2.39.1 (#3293)
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 9fff81655..98f25c989 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -63,7 +63,7 @@
com.google.cloud
google-cloud-bigtable
- 2.39.0
+ 2.39.1
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 609773344..5e7a6d0c8 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -61,7 +61,7 @@
com.google.cloud
google-cloud-bigtable
- 2.39.0
+ 2.39.1
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 31cb2dab9..54f08d45b 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -79,7 +79,7 @@
com.google.cloud
google-cloud-bigtable
- 2.39.0
+ 2.39.1
test
From 7d1151580c21ef1d3c9ba1920db35875e7c9ca02 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 9 May 2024 15:38:47 +0200
Subject: [PATCH 329/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigqueryconnection to v2.45.0 (#3294)
---
pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 430be7a70..5f5d69ef3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -143,7 +143,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.44.0
+ 2.45.0
test
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 98f25c989..ef733c9d4 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -69,7 +69,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.44.0
+ 2.45.0
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 5e7a6d0c8..5d0c18f7e 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -67,7 +67,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.44.0
+ 2.45.0
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 54f08d45b..4e5e2b75f 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -85,7 +85,7 @@
com.google.cloud
google-cloud-bigqueryconnection
- 2.44.0
+ 2.45.0
test
From c659523a7ca25bc12282f0e28fff18ec9221f48e Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 9 May 2024 15:38:58 +0200
Subject: [PATCH 330/393] deps: update dependency
com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.45.0
(#3295)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 5f5d69ef3..e3dccc2d9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -149,7 +149,7 @@
com.google.api.grpc
proto-google-cloud-bigqueryconnection-v1
- 2.44.0
+ 2.45.0
test
From d09608211aed5dc49e2b5e51affe7942403ed267 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 10 May 2024 15:12:06 +0200
Subject: [PATCH 331/393] deps: update ossf/scorecard-action action to v2.3.3
(#3304)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* deps: update ossf/scorecard-action action to v2.3.3
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.github/workflows/scorecard.yml | 2 +-
README.md | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 1611e0fd5..95a306280 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -37,7 +37,7 @@ jobs:
persist-credentials: false
- name: "Run analysis"
- uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
+ uses: ossf/scorecard-action@dc50aa9510b46c811795eb24b2f1ba02a914e534 # v2.3.3
with:
results_file: results.sarif
results_format: sarif
diff --git a/README.md b/README.md
index 46a291fb2..8ec28e640 100644
--- a/README.md
+++ b/README.md
@@ -53,7 +53,7 @@ If you are using Maven without the BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:
```Groovy
-implementation platform('com.google.cloud:libraries-bom:26.38.0')
+implementation platform('com.google.cloud:libraries-bom:26.39.0')
implementation 'com.google.cloud:google-cloud-bigquery'
```
From 194ed0919eb3e47b224df267c68c6f96728d1827 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 10 May 2024 15:13:45 +0200
Subject: [PATCH 332/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigtable to v2.39.2 (#3303)
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index ef733c9d4..3fa4525a9 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -63,7 +63,7 @@
com.google.cloud
google-cloud-bigtable
- 2.39.1
+ 2.39.2
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 5d0c18f7e..409ef8a61 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -61,7 +61,7 @@
com.google.cloud
google-cloud-bigtable
- 2.39.1
+ 2.39.2
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 4e5e2b75f..0b5973853 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -79,7 +79,7 @@
com.google.cloud
google-cloud-bigtable
- 2.39.1
+ 2.39.2
test
From 7d148d5bb1d6e1e6b0a421749fcbb73a6fbe61e0 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 10 May 2024 15:20:52 +0200
Subject: [PATCH 333/393] deps: update dependency
com.google.cloud:google-cloud-datacatalog-bom to v1.49.0 (#3296)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index e3dccc2d9..ea0b2ad14 100644
--- a/pom.xml
+++ b/pom.xml
@@ -79,7 +79,7 @@
com.google.cloud
google-cloud-datacatalog-bom
- 1.48.0
+ 1.49.0
pom
import
From 306409edc97674807871b5dab6b6eb66f84c9c02 Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Fri, 10 May 2024 12:53:56 -0400
Subject: [PATCH 334/393] chore: update dependency versions in java templates
(#1964) (#3301)
* chore: update dependency versions in java templates
* update other templates
Source-Link: https://github.com/googleapis/synthtool/commit/0b86c72fe652dd7e52ba05a63f61bc1399ad5d65
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:68ba5f5164a4b55529d358bb262feaa000536a0c62980727dd05a91bbb47ea5e
Co-authored-by: Owl Bot
---
.github/.OwlBot.lock.yaml | 4 +--
.github/workflows/approve-readme.yaml | 2 +-
.github/workflows/ci.yaml | 30 ++++++++++----------
.github/workflows/renovate_config_check.yaml | 2 +-
.github/workflows/samples.yaml | 4 +--
5 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index 1096f4dc0..5db36a5f7 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,5 +13,5 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
- digest: sha256:d13de1a4faec2645bda630b7a9aa080ce95182795aeab6f37ed4bd18cf5facbc
-# created: 2024-04-24T14:22:15.892514394Z
+ digest: sha256:68ba5f5164a4b55529d358bb262feaa000536a0c62980727dd05a91bbb47ea5e
+# created: 2024-05-09T16:31:37.168667071Z
diff --git a/.github/workflows/approve-readme.yaml b/.github/workflows/approve-readme.yaml
index f5fc7d516..59f00b8eb 100644
--- a/.github/workflows/approve-readme.yaml
+++ b/.github/workflows/approve-readme.yaml
@@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme'
steps:
- - uses: actions/github-script@v6
+ - uses: actions/github-script@v7
with:
github-token: ${{secrets.YOSHI_APPROVER_TOKEN}}
script: |
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index ae66b1973..b91fa381f 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -27,8 +27,8 @@ jobs:
matrix:
java: [11, 17, 21]
steps:
- - uses: actions/checkout@v3
- - uses: actions/setup-java@v3
+ - uses: actions/checkout@v4
+ - uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{matrix.java}}
@@ -41,8 +41,8 @@ jobs:
name: "units (8)"
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
- - uses: actions/setup-java@v3
+ - uses: actions/checkout@v4
+ - uses: actions/setup-java@v4
with:
java-version: 8
distribution: temurin
@@ -51,7 +51,7 @@ jobs:
# https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#jvm
run: echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}/bin/java" >> $GITHUB_ENV
shell: bash
- - uses: actions/setup-java@v3
+ - uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
@@ -63,8 +63,8 @@ jobs:
steps:
- name: Support longpaths
run: git config --system core.longpaths true
- - uses: actions/checkout@v3
- - uses: actions/setup-java@v3
+ - uses: actions/checkout@v4
+ - uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
@@ -78,8 +78,8 @@ jobs:
matrix:
java: [17]
steps:
- - uses: actions/checkout@v3
- - uses: actions/setup-java@v3
+ - uses: actions/checkout@v4
+ - uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{matrix.java}}
@@ -88,8 +88,8 @@ jobs:
javadoc:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
- - uses: actions/setup-java@v3
+ - uses: actions/checkout@v4
+ - uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
@@ -100,8 +100,8 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
- - uses: actions/setup-java@v3
+ - uses: actions/checkout@v4
+ - uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
@@ -112,8 +112,8 @@ jobs:
clirr:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
- - uses: actions/setup-java@v3
+ - uses: actions/checkout@v4
+ - uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
diff --git a/.github/workflows/renovate_config_check.yaml b/.github/workflows/renovate_config_check.yaml
index 87d8eb2be..7c5ec7865 100644
--- a/.github/workflows/renovate_config_check.yaml
+++ b/.github/workflows/renovate_config_check.yaml
@@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v4
- name: Set up Node.js
- uses: actions/setup-node@v3
+ uses: actions/setup-node@v4
with:
node-version: '20'
diff --git a/.github/workflows/samples.yaml b/.github/workflows/samples.yaml
index 10d252d77..03b293956 100644
--- a/.github/workflows/samples.yaml
+++ b/.github/workflows/samples.yaml
@@ -20,8 +20,8 @@ jobs:
checkstyle:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
- - uses: actions/setup-java@v3
+ - uses: actions/checkout@v4
+ - uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
From acf6e737bbda01d8e759e5c910cccb6b57f28f3e Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 10 May 2024 19:36:23 +0200
Subject: [PATCH 335/393] test(deps): update dependency
com.google.cloud:google-cloud-storage to v2.38.0 (#3302)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index ea0b2ad14..98be811fd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -137,7 +137,7 @@
com.google.cloud
google-cloud-storage
- 2.37.0
+ 2.38.0
test
From 13bb5aaa6e4bac7144a369c9fbb5ae8922eb36ee Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 10 May 2024 23:22:42 +0200
Subject: [PATCH 336/393] deps: update github/codeql-action action to v2.25.4
(#3291)
---
.github/workflows/scorecard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 95a306280..33b7cb733 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -67,6 +67,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@ceaec5c11a131e0d282ff3b6f095917d234caace # v2.25.3
+ uses: github/codeql-action/upload-sarif@4f0ceda83afa9bc55df7b6c611b81435fa53d987 # v2.25.4
with:
sarif_file: results.sarif
From 641f1a8325f0f43aeffd135654480a721f26e4e7 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Sun, 26 May 2024 18:03:59 +0200
Subject: [PATCH 337/393] deps: update dependency
com.google.cloud:sdk-platform-java-config to v3.30.1 (#3310)
---
.github/workflows/unmanaged_dependency_check.yaml | 2 +-
.kokoro/continuous/graalvm-native-17.cfg | 2 +-
.kokoro/continuous/graalvm-native.cfg | 2 +-
.kokoro/presubmit/graalvm-native-17.cfg | 2 +-
.kokoro/presubmit/graalvm-native.cfg | 2 +-
google-cloud-bigquery-bom/pom.xml | 2 +-
pom.xml | 2 +-
7 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml
index e61a4af1b..c68f5f590 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.30.0
+ uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.30.1
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/continuous/graalvm-native-17.cfg b/.kokoro/continuous/graalvm-native-17.cfg
index 6fd91140c..030444e51 100644
--- a/.kokoro/continuous/graalvm-native-17.cfg
+++ b/.kokoro/continuous/graalvm-native-17.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_b:3.30.0"
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.30.1"
}
env_vars: {
diff --git a/.kokoro/continuous/graalvm-native.cfg b/.kokoro/continuous/graalvm-native.cfg
index e709308c5..ee3ad6d86 100644
--- a/.kokoro/continuous/graalvm-native.cfg
+++ b/.kokoro/continuous/graalvm-native.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.30.0"
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.30.1"
}
env_vars: {
diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg
index 9fa6d222d..008353237 100644
--- a/.kokoro/presubmit/graalvm-native-17.cfg
+++ b/.kokoro/presubmit/graalvm-native-17.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_b:3.30.0""
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.30.1""
}
env_vars: {
diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg
index aad0db978..1292cf163 100644
--- a/.kokoro/presubmit/graalvm-native.cfg
+++ b/.kokoro/presubmit/graalvm-native.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.30.0"
+ value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.30.1"
}
env_vars: {
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index 12df23ddb..e8b3648e6 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -8,7 +8,7 @@
com.google.cloud
sdk-platform-java-config
- 3.30.0
+ 3.30.1
diff --git a/pom.xml b/pom.xml
index 98be811fd..a4d025ebb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
com.google.cloud
sdk-platform-java-config
- 3.30.0
+ 3.30.1
From 11f0d2d449b0f1af8c9415312f64ec144f348a7c Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Sun, 26 May 2024 20:20:55 +0200
Subject: [PATCH 338/393] chore(deps): update dependency
com.google.cloud:google-cloud-bigquerystorage-bom to v3.5.2 (#3320)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index a4d025ebb..5f13d5207 100644
--- a/pom.xml
+++ b/pom.xml
@@ -71,7 +71,7 @@
com.google.cloud
google-cloud-bigquerystorage-bom
- 3.5.1
+ 3.5.2
pom
import
From ba988970574ad393b9aa416e991334a4a331c4d8 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Mon, 27 May 2024 08:18:44 -0400
Subject: [PATCH 339/393] chore(main): release 2.40.2 (#3292)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
CHANGELOG.md | 16 ++++++++++++++++
benchmark/pom.xml | 2 +-
google-cloud-bigquery-bom/pom.xml | 4 ++--
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
7 files changed, 25 insertions(+), 9 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a939b3e6b..0d65694b1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,21 @@
# Changelog
+## [2.40.2](https://github.com/googleapis/java-bigquery/compare/v2.40.1...v2.40.2) (2024-05-26)
+
+
+### Bug Fixes
+
+* Fixing NPE bug by adding to if clause ([#3290](https://github.com/googleapis/java-bigquery/issues/3290)) ([127cff9](https://github.com/googleapis/java-bigquery/commit/127cff9f964c5d2d912d26276474822fd137a64b))
+
+
+### Dependencies
+
+* Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.45.0 ([#3295](https://github.com/googleapis/java-bigquery/issues/3295)) ([c659523](https://github.com/googleapis/java-bigquery/commit/c659523a7ca25bc12282f0e28fff18ec9221f48e))
+* Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.49.0 ([#3296](https://github.com/googleapis/java-bigquery/issues/3296)) ([7d148d5](https://github.com/googleapis/java-bigquery/commit/7d148d5bb1d6e1e6b0a421749fcbb73a6fbe61e0))
+* Update dependency com.google.cloud:sdk-platform-java-config to v3.30.1 ([#3310](https://github.com/googleapis/java-bigquery/issues/3310)) ([641f1a8](https://github.com/googleapis/java-bigquery/commit/641f1a8325f0f43aeffd135654480a721f26e4e7))
+* Update github/codeql-action action to v2.25.4 ([#3291](https://github.com/googleapis/java-bigquery/issues/3291)) ([13bb5aa](https://github.com/googleapis/java-bigquery/commit/13bb5aaa6e4bac7144a369c9fbb5ae8922eb36ee))
+* Update ossf/scorecard-action action to v2.3.3 ([#3304](https://github.com/googleapis/java-bigquery/issues/3304)) ([d096082](https://github.com/googleapis/java-bigquery/commit/d09608211aed5dc49e2b5e51affe7942403ed267))
+
## [2.40.1](https://github.com/googleapis/java-bigquery/compare/v2.40.0...v2.40.1) (2024-05-06)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 129df7039..c97073ad3 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.40.2-SNAPSHOT
+ 2.40.2
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index e8b3648e6..76854c3fb 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-bigquery-bom
- 2.40.2-SNAPSHOT
+ 2.40.2
pom
com.google.cloud
@@ -54,7 +54,7 @@
com.google.cloud
google-cloud-bigquery
- 2.40.2-SNAPSHOT
+ 2.40.2
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 5fd9b3f22..21b589fa2 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.40.2-SNAPSHOT
+ 2.40.2
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.40.2-SNAPSHOT
+ 2.40.2
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 5f13d5207..2b00d67b7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.40.2-SNAPSHOT
+ 2.40.2
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -93,7 +93,7 @@
com.google.cloud
google-cloud-bigquery
- 2.40.2-SNAPSHOT
+ 2.40.2
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 409ef8a61..e5b80c7a9 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.40.2-SNAPSHOT
+ 2.40.2
diff --git a/versions.txt b/versions.txt
index d74a98f5a..f81ca08e7 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.40.1:2.40.2-SNAPSHOT
\ No newline at end of file
+google-cloud-bigquery:2.40.2:2.40.2
\ No newline at end of file
From 5d4c378cf95ce3a81cdee99b9a92a6f70bbbf306 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Mon, 27 May 2024 08:58:39 -0400
Subject: [PATCH 340/393] chore(main): release 2.40.3-SNAPSHOT (#3322)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
benchmark/pom.xml | 2 +-
google-cloud-bigquery-bom/pom.xml | 4 ++--
google-cloud-bigquery/pom.xml | 4 ++--
pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 2 +-
6 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index c97073ad3..a2072e35e 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -6,7 +6,7 @@
google-cloud-bigquery-parent
com.google.cloud
- 2.40.2
+ 2.40.3-SNAPSHOT
diff --git a/google-cloud-bigquery-bom/pom.xml b/google-cloud-bigquery-bom/pom.xml
index 76854c3fb..11e339aaf 100644
--- a/google-cloud-bigquery-bom/pom.xml
+++ b/google-cloud-bigquery-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-bigquery-bom
- 2.40.2
+ 2.40.3-SNAPSHOT
pom
com.google.cloud
@@ -54,7 +54,7 @@
com.google.cloud
google-cloud-bigquery
- 2.40.2
+ 2.40.3-SNAPSHOT
diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml
index 21b589fa2..67567c134 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.40.2
+ 2.40.3-SNAPSHOT
jar
BigQuery
https://github.com/googleapis/java-bigquery
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigquery-parent
- 2.40.2
+ 2.40.3-SNAPSHOT
google-cloud-bigquery
diff --git a/pom.xml b/pom.xml
index 2b00d67b7..2748a1b9b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquery-parent
pom
- 2.40.2
+ 2.40.3-SNAPSHOT
BigQuery Parent
https://github.com/googleapis/java-bigquery
@@ -93,7 +93,7 @@
com.google.cloud
google-cloud-bigquery
- 2.40.2
+ 2.40.3-SNAPSHOT
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index e5b80c7a9..2651ecdbd 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -44,7 +44,7 @@
com.google.cloud
google-cloud-bigquery
- 2.40.2
+ 2.40.3-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index f81ca08e7..d7c22bcb1 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquery:2.40.2:2.40.2
\ No newline at end of file
+google-cloud-bigquery:2.40.2:2.40.3-SNAPSHOT
\ No newline at end of file
From d05e5547e97f52ccfdcec1d6fe167e6587dd00c6 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Wed, 29 May 2024 16:21:32 +0200
Subject: [PATCH 341/393] deps: update dependency
com.google.oauth-client:google-oauth-client-java6 to v1.36.0 (#3305)
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 3fa4525a9..f6b6094eb 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -52,7 +52,7 @@
com.google.oauth-client
google-oauth-client-java6
- 1.35.0
+ 1.36.0
com.google.oauth-client
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 2651ecdbd..b07189ab0 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -50,7 +50,7 @@