instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
GoogleCloudDataproc__hadoop-connectors__1396
GoogleCloudDataproc/hadoop-connectors
1,396
defect
d2cfc445f1c13c937b4ba61fffbc47673dc95629
54300ed705f7b5c684c2055dd6e85235495a1312
Avoid NullPointerException when DeleteFolderOperation is timed out
In the current Implementation of `DeleteFolderOperation`, client side timeouts can cause `NullPointerException` which is often not caught by underlying Applications(e.g. Spark) and causes it to crash. We should be throwing a transient error in these scenarios i.e. `InterruptedException` in this case which eventually ca...
diff --git a/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/DeleteFolderOperation.java b/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/DeleteFolderOperation.java index a8215f4d66..a4e7d118f6 100644 --- a/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/DeleteFolderOperation.java +++ b/gcsio/src/main/java/com/go...
6
4
3
[{"id": "G0", "claim": "The catch block around poll() catches Exception, which is too broad; it should catch InterruptedException specifically for clarity and to avoid unintended exception handling.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Usi...
null
GoogleCloudDataproc__hadoop-connectors__1427
GoogleCloudDataproc/hadoop-connectors
1,427
defect
9102bee6a77f216c4e70f64274372a05f09c171e
aee06c7a70badc04c573a53b83377204b7c52721
Adding new FinalizableWritableByteChannel
Adding new finalizableWriteableByteChannel which contains new finalizeAndClose functionality. This will allow the ability to finalize the new append-able objects.
diff --git a/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/FinalizableWritableByteChannel.java b/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/FinalizableWritableByteChannel.java new file mode 100644 index 0000000000..851dd98f23 --- /dev/null +++ b/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/FinalizableWr...
2
2
0
[{"id": "G0", "claim": "The new public interface FinalizableWritableByteChannel and its finalizeAndClose() method should have Javadoc documenting the contract, especially how finalizeAndClose() relates to the inherited close().", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduce...
null
GoogleCloudDataproc__hadoop-connectors__1458
GoogleCloudDataproc/hadoop-connectors
1,458
defect
22e2d583e42b26116f49aeda755ca5c35618ce7b
d2f8bf415d051082c811c117419c4e0b0fa367b9
Fix: Gracefully close cloud logger in GoogleHadoopFileSystem
This PR introduces the following changes: The LoggingInterceptor instance is now stored in a member variable upon initialization. The close() method of GoogleHadoopFileSystem has been updated to: 1. Remove the loggingInterceptor from the root logger. 2. Call the close() method on the loggingInterceptor to release...
diff --git a/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystem.java b/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystem.java index 47ec6a0df5..2d22c79ca4 100644 --- a/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystem.java +++ b/gcs/src/main/java/com/goog...
1
1
0
[{"id": "G0", "claim": "The loggingInterceptor is set to null both inside the try block and after it, which is redundant; a finally block should be used instead to ensure it is always set to null regardless of exceptions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleCloudDataproc__hadoop-connectors__1462
GoogleCloudDataproc/hadoop-connectors
1,462
defect
9687d3fc0fec66098c04f2017e197154fd77c984
0954c4d9a31683d453f0612d04fb2b1fb462d2b9
[HNS Optimization] Implement HNS optimization for list, rename and delete
* Implemented list optimizations. * Updated rename to not call `repairImplicitDirectory` in HNS Bucket with HNS flag enabled * Updated delete to update the directory emptiness check and the `repairImplicitDirectory` calls. * Added tests for list and rename and delete changes. Base [PR/](https://github.com/Goog...
diff --git a/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystemConfiguration.java b/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystemConfiguration.java index dccb47823d..a497b27b76 100644 --- a/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystemConfiguratio...
5
4
0
[{"id": "G0", "claim": "The new non-recursive delete() branch should also check that the bucket is an HNS bucket before taking the HNS-optimized path, instead of branching only on isHnOptimizationEnabled().", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
GoogleCloudDataproc__hadoop-connectors__1475
GoogleCloudDataproc/hadoop-connectors
1,475
defect
a1ce41cccffd471898675848fa2bd4b2c57ddf4a
dcb50b3c889d9ba027a53e7ced3a2c6a74d8f833
Storage Client Caching for downscoped token
This PR handles storage client caching implemented in PR #1283 Currently caching is only supported for downscoped token (when credentials is null). Additionally, this PR introduces a StorageWrapper to prevent the accidental closing of cached storage objects. **Future PRs will include:** - Handling caching of diffe...
diff --git a/gcs/CONFIGURATION.md b/gcs/CONFIGURATION.md index 83357fc3f3..932617cd95 100644 --- a/gcs/CONFIGURATION.md +++ b/gcs/CONFIGURATION.md @@ -498,6 +498,7 @@ better latency and increased bandwidth. Currently supported only for read/write * `CHUNK_UPLOAD` uploads file in chunks, size of chunks are configu...
4
2
0
[{"id": "G0", "claim": "Refactor StorageClientWrapper so that GoogleCloudStorageClientImpl stops calling storage.getStorage().someMethod() everywhere (Law of Demeter), e.g. by making the wrapper implement Storage and delegating all calls except close().", "category": "maintainability", "verdict": "supported", "priority...
null
GoogleCloudDataproc__hadoop-connectors__1479
GoogleCloudDataproc/hadoop-connectors
1,479
defect
22e2d583e42b26116f49aeda755ca5c35618ce7b
b487b145b117ebd2c289bb7f8ffc30014d6b6bdd
Fix: Preserve Existing Log Formatting When Adding Invocation ID
This PR addresses an issue where the introduction of invocation ID prefixing in logs inadvertently overwrote existing log formats, leading to test failures as reported in [b/442341898](https://b.corp.google.com/issues/442341898). The LoggingFormatter was previously replacing the entire log format. The key changes in...
diff --git a/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystem.java b/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystem.java index 47ec6a0df5..755acd05b0 100644 --- a/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystem.java +++ b/gcs/src/main/java/com/goog...
3
3
1
[{"id": "G0", "claim": "The formatter's new code path logs the string \"null\" for a null log message where it previously logged an empty string, and the null check should instead be applied just before the final String.format calls so wrapped formatters still receive a null message.", "category": "correctness", "verdi...
null
GoogleCloudDataproc__hadoop-connectors__1480
GoogleCloudDataproc/hadoop-connectors
1,480
defect
22e2d583e42b26116f49aeda755ca5c35618ce7b
b9484fae43c588c300db2c81daf6807a92ae7aa7
Fix infinite loop issue when EOF is reached during a skip operation
This PR addresses a critical bug in GoogleCloudStorageReadChannel where a skip() operation on the content stream could lead to an infinite loop. Problem: As reported in [Issue](https://github.com/GoogleCloudDataproc/hadoop-connectors/issues/1180), the contentStream.skip() method can return 0 bytes. On further inv...
diff --git a/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageReadChannel.java b/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageReadChannel.java index acc0ca1cf3..8aba20568c 100644 --- a/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageReadChannel.java +++ b/gc...
4
2
0
[{"id": "G0", "claim": "The skip loop should defensively handle contentStream.read() returning 0 so there is no possibility of a similar infinite loop.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "openStream should call skipInPlace() instead of re...
null
GoogleCloudDataproc__hadoop-connectors__1484
GoogleCloudDataproc/hadoop-connectors
1,484
defect
c288d14d923610177cce90ea752477acda73d24c
0ea502779dd04e64c4fc18ac283fc27446989418
Enable Write path rolling checksum by default in connector
Benchmarking is captured in [go/connector-checksum-benchmarking](http://goto.google.com/connector-checksum-benchmarking). There was negligible difference in performance, CPU and memory usage when running this as default. Tests were ran for 0.5, 10 and 100 GB object writes along with CTAS queries.
diff --git a/gcs/src/test/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystemConfigurationTest.java b/gcs/src/test/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystemConfigurationTest.java index 2d3de7d4d5..648cacd56c 100644 --- a/gcs/src/test/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystemConf...
1
1
0
[{"id": "G0", "claim": "Extract the CRC32c calculation logic duplicated across many test methods in GoogleCloudStorageTest.java (e.g. testCreateObjectWithGenerationId, reupload_success_singleWrite_singleUploadChunk) into a private helper method to improve maintainability and reduce code duplication.", "category": "main...
null
GoogleCloudDataproc__hadoop-connectors__1517
GoogleCloudDataproc/hadoop-connectors
1,517
defect
303dfdaec780a89c8851380bc947d50691b03798
859114880a913b1a04404d27433822aabed978af
[Backport to branch-2.2.x ] Enable move by default
Cherry-picks * [Enable move by default](https://github.com/GoogleCloudDataproc/hadoop-connectors/pull/1417) * [Enable move test for gRPC](https://github.com/GoogleCloudDataproc/hadoop-connectors/pull/1502)
diff --git a/gcs/CHANGES.md b/gcs/CHANGES.md index 660d0733ce..e24ef38656 100644 --- a/gcs/CHANGES.md +++ b/gcs/CHANGES.md @@ -1,6 +1,7 @@ # Release Notes ## Next +1. Enable move by default ## 2.2.28 - 2025-05-28 1. Skip Soft delete using move API during rename diff --git a/gcs/src/test/java/com/google/cloud/ha...
1
1
0
[{"id": "G0", "claim": "The indentation of the `assertThat(gcsRequestsTracker.getAllRequestStrings())` blocks in `rename_file_sequential`, `rename_file_withMoveDisabled_usesCopyAndDelete` and `rename_file_parallel` is incorrect and should be aligned with the `gcsFs.rename` call.", "category": "maintainability", "verdic...
null
GoogleCloudDataproc__hadoop-connectors__1564
GoogleCloudDataproc/hadoop-connectors
1,564
defect
1d7fa63c032f43a4dbe55bf3f665fce0f3201c0c
d6a52e7218bcc2d918fe86d37373ebafed8bd0c1
[Backport] Bug Fix: Prevent multiple auth headers with chained DownscopingInterceptors
Backport PR https://github.com/GoogleCloudDataproc/hadoop-connectors/pull/1560
diff --git a/gcs/CHANGES.md b/gcs/CHANGES.md index 498ef658f..9957f7f6f 100644 --- a/gcs/CHANGES.md +++ b/gcs/CHANGES.md @@ -4,6 +4,7 @@ ## 3.0.14 - 2025-10-29 1. PR #1521 - [Bug] Fix NPE when HierarchicalNamespace is missing from BucketStorageLayout. +1. PR #1560 - [Bug] Prevent multiple auth headers with chained ...
1
1
1
[{"id": "G0", "claim": "The changelog entry for PR #1560 should be listed under the Next section rather than under the already released version 3.0.14.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GoogleCloudDataproc__hadoop-connectors__1567
GoogleCloudDataproc/hadoop-connectors
1,567
defect
bcdf7c8a689eaad95f9222c60af7c41e9969f48b
c3da0e84e8edef9923085b0e93eabb28206becc7
feat: Add TrackedFeatures enum for client feature tracking
This change introduces a new enum, TrackedFeatures, to standardize the tracking of client-side features within the GCS connector. Each constant in the TrackedFeatures enum is mapped to a specific integer bitPosition, which will be used to construct a bitmask. This bitmask will be sent in request headers to provide i...
diff --git a/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/TrackedFeatures.java b/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/TrackedFeatures.java new file mode 100644 index 000000000..9a111259c --- /dev/null +++ b/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/TrackedFeatures.java @@ -0,0 +1,68 @@ +/* + *...
2
2
0
[{"id": "G0", "claim": "The allBitPositions_areCorrect test should be refactored to a data-driven form (a Map of expected values iterated with a length check that all enum members are covered) for maintainability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ...
null
GoogleCloudDataproc__hadoop-connectors__1590
GoogleCloudDataproc/hadoop-connectors
1,590
defect
63dcb7d917223de3c1cd976bbf1c593dde45124f
eb1b09d8101fa3d5a0e92a316635dab5b6390d52
[ staging-2.2.x] Implement fast fail flag for gRPC
This PR implements the `fs.gs.inputstream.fast.fail.on.not.found.enable` flag for gRPC. - When `fastFailOnNotFound` is `true` (the default behavior), metadata is fetched eagerly, and the operation fails immediately if the object is not found. - When `fastFailOnNotFound` is `false`, the metadata fetch is deferred...
diff --git a/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageClientImpl.java b/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageClientImpl.java index 7a89f63f9..5b0572edd 100644 --- a/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageClientImpl.java +++ b/gcsio/s...
9
9
2
[{"id": "G0", "claim": "The try-catch around the fallback fetchMetadata() in updateMetadataFromReadChannel swallows exceptions including FileNotFoundException, so a failed metadata fetch is only logged and the read may proceed; remove the try-catch and declare updateMetadataFromReadChannel to throw IOException so the f...
null
GoogleCloudDataproc__hadoop-connectors__1611
GoogleCloudDataproc/hadoop-connectors
1,611
defect
24b6408d6cfcf289f42bde146fff7f725ff97f3f
d1bc7a2bdbde836288e370cef65465e092690758
feat: Implement trailing checksum in connector
PR enables server-side data integrity validation for GCS uploads. It calculates the CRC32C checksum on the client side and sends it as a trailing header (x-goog-hash) with the final upload request, allowing GCS to validate the data before finalizing the object. Key Changes * New Interceptor: Added ChecksumHeaderI...
diff --git a/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystemConfiguration.java b/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystemConfiguration.java index a497b27b7..04de66a34 100644 --- a/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystemConfiguration....
12
12
3
[{"id": "G0", "claim": "The test sets the mistyped key \"fs.gs.write.trailing.checksum\" (missing \".enable\"), so it passes without actually testing the configuration property; the correct key or the GCS_WRITE_TRAILING_CHECKSUM_ENABLE constant should be used.", "category": "correctness", "verdict": "supported", "prior...
null
GoogleCloudDataproc__hadoop-connectors__1621
GoogleCloudDataproc/hadoop-connectors
1,621
defect
1622785934fbd49fed4fd7ed204415ea1bd9c2e9
0b3be7581061147792ed0dbba6c9990e68671a5e
fix thread Local metrics
1. Merge threadLocal metrics captured in readVectored thread to main's threadLocal instance. 1. Add other important metrics in thread local.
diff --git a/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/GhfsGlobalStorageStatistics.java b/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/GhfsGlobalStorageStatistics.java index 73a157528..2ee7f6f82 100644 --- a/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/GhfsGlobalStorageStatistics.java +++ b/gcs/src/main/...
7
4
1
[{"id": "G0", "claim": "In captureThreadLocalStats, using ConcurrentHashMap.merge() with Long::sum would make the accumulation slightly more concise and readable than the current compute() implementation.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
GoogleCloudDataproc__hadoop-connectors__1627
GoogleCloudDataproc/hadoop-connectors
1,627
defect
b042798f673fb97d58654d8d65e1e9785edb180a
223a61b3b1ba8d79741f01b43320ac1f27fa48d7
[Backport] Update list implementation to retry during JSON parsing of successful response (#1618)
* Original [PR/](https://github.com/GoogleCloudDataproc/hadoop-connectors/pull/1618)
diff --git a/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageImpl.java b/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageImpl.java index 6b5a54bf3..ff53986be 100644 --- a/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageImpl.java +++ b/gcsio/src/main/java/com/g...
2
1
0
[{"id": "G0", "claim": "In listObjects_recoversFromConnectionReset_withRealGCS the variable gcsWithRetry is declared but never used and should be removed, and the trackingGcs delegate GoogleCloudStorage instance holds resources and must be closed, so the try-finally should be updated to close the created GCS instance."...
null
GoogleCloudDataproc__hadoop-connectors__1628
GoogleCloudDataproc/hadoop-connectors
1,628
defect
b042798f673fb97d58654d8d65e1e9785edb180a
267480fa9414ea91384c77c256a9f3857ff1fe20
Update cloud library bom
* Update cloud library bom to 26.73.0 * Fixed failing test
diff --git a/pom.xml b/pom.xml index 0ef147d47..33575780c 100644 --- a/pom.xml +++ b/pom.xml @@ -71,7 +71,7 @@ <bigdataoss.version>4.0.0-SNAPSHOT</bigdataoss.version> <google.auto-value.version>1.10.4</google.auto-value.version> - <google.cloud.library.bom.version>26.69.0</google.cloud.library.bom.versio...
1
1
0
[{"id": "G0", "claim": "Since it is no longer passed to mockTransport, the now-unused serviceAccountInfoResponse variable's declaration and initialization (lines 137-147) should be removed to improve code clarity and maintainability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "i...
null
GoogleCloudDataproc__hadoop-connectors__1629
GoogleCloudDataproc/hadoop-connectors
1,629
defect
0c301d9d015e40b9d7039bef23b9c100d4267ec8
539ea9dc38f3ad884993d8161688c60cdc536134
[Backport to 4.0.x] List retry and cloud library bom
* Original [PR](https://github.com/GoogleCloudDataproc/hadoop-connectors/pull/1627) * Original [PR](https://github.com/GoogleCloudDataproc/hadoop-connectors/pull/1628)
diff --git a/gcs/CHANGES.md b/gcs/CHANGES.md index 744a24a7c..92e21edf7 100644 --- a/gcs/CHANGES.md +++ b/gcs/CHANGES.md @@ -1,7 +1,9 @@ # Release Notes ## Next -1. Add fast fail feature for gRPC +1. Add fast fail feature for gRPC. +2. Add retrfor ListObjects. +3. Update cloud library bom. ## 4.0.0 - 2025-12-15 ...
5
1
0
[{"id": "G0", "claim": "The new listObject retry determiner does not retry transient 5xx server errors (GoogleJsonResponseException wrapping 5xx is excluded unless rate-limited), which could lead to premature failures; add a check for internal server errors.", "category": "correctness", "verdict": "uncertain", "priorit...
null
GoogleCloudDataproc__hadoop-connectors__163
GoogleCloudDataproc/hadoop-connectors
163
defect
86f2903922a055b5958fa17ab9e722e05af8d8c1
255e894fa2f4fca3bca6a6746bad7c7c85e79930
Feature/define partition for bigquery import
Hi, I made some changes to allow partitioning when importing data into a BigQuery table. The feature can be activated with the following configuration: ```java BigQueryTimePartitioning bigQueryTimePartitioning = new BigQueryTimePartitioning(); bigQueryTimePartitioning.setType("DAY"); configuration.set(BigQueryCon...
diff --git a/bigquery/src/main/java/com/google/cloud/hadoop/io/bigquery/BigQueryConfiguration.java b/bigquery/src/main/java/com/google/cloud/hadoop/io/bigquery/BigQueryConfiguration.java index 5edf6f3565..d119a611ff 100644 --- a/bigquery/src/main/java/com/google/cloud/hadoop/io/bigquery/BigQueryConfiguration.java +++ b...
8
8
2
[{"id": "G0", "claim": "The new log statement should use a %s placeholder instead of {} for the TimePartitioning argument.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ternary `timePartitioning != null ? timePartitioning : \"null\"` should be ...
null
GoogleCloudDataproc__hadoop-connectors__1630
GoogleCloudDataproc/hadoop-connectors
1,630
defect
355f718ecc290426438dd629510e91e7a5a8fc42
0df0381bab159819fe415560aeb90ee5cb52116a
[Backport to 3.1.x] Adding retry to list
* Original [PR/](https://github.com/GoogleCloudDataproc/hadoop-connectors/pull/1627)
diff --git a/gcs/CHANGES.md b/gcs/CHANGES.md index 0ebef4789..88e7ed7e2 100644 --- a/gcs/CHANGES.md +++ b/gcs/CHANGES.md @@ -2,6 +2,7 @@ ## Next 1. PR #1413 - [Bug] Fixing DeleteFolder stalling issue where high CPU usage can cause timeouts +2. Add retry for ListObjects. ## 3.1.11 - 2025-12-10 1. PR #1581 - [Bug...
4
1
0
[{"id": "G0", "claim": "Header names should be lowercased before being put into the headers map so that retrieval is case-insensitive and faults are not missed on casing mismatches.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The retry determiner...
null
GoogleCloudDataproc__hadoop-connectors__1663
GoogleCloudDataproc/hadoop-connectors
1,663
defect
91a095acae9066c15d5671f6048a415061c73710
9a66840896eb0f20512e59b131cff968dcb93025
Enable HNS flag
* Made `fs.gs.hierarchical.namespace.folders.enable` to true by default * Fixed failing tests
diff --git a/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystemConfiguration.java b/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystemConfiguration.java index 756f02aae..77974e260 100644 --- a/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystemConfiguration....
1
1
0
[{"id": "G0", "claim": "FeatureHeaderGeneratorTest should avoid hardcoded Base64 header strings and hardcoded bit flags by constructing the expected feature sets programmatically and encoding them, so the test stays robust when default features change.", "category": "maintainability", "verdict": "supported", "priority"...
null
GoogleCloudDataproc__hadoop-connectors__1689
GoogleCloudDataproc/hadoop-connectors
1,689
defect
c8099157afe71e4c4d4f5e90cfb8824cc63cf185
71cd3c7196a43708f1a62b6a6133807881853538
Implement AnalyticsCoreChannelAdapter and migrate read path
Design Doc: [go/connector-analytics-core-read-migration](http://goto.google.com/connector-analytics-core-read-migration)
diff --git a/gcs/pom.xml b/gcs/pom.xml index a2669af0f..9448bb8e2 100644 --- a/gcs/pom.xml +++ b/gcs/pom.xml @@ -84,6 +84,10 @@ <artifactId>gcsio</artifactId> <version>${bigdataoss.version}</version> </dependency> + <dependency> + <groupId>com.google.cloud.gcs.analytics</groupId> + <arti...
19
16
3
[{"id": "G0", "claim": "The `inputStream` field is only assigned in the constructor and should be marked as `final` to prevent accidental reassignment and improve thread-safety visibility.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `open...
null
GoogleCloudDataproc__hadoop-connectors__1694
GoogleCloudDataproc/hadoop-connectors
1,694
defect
649dc1c4c8a73c1891dca2119733aa2547f0b8ba
fe7c75728551df168c3e985d272677e71eebf70b
Log and drop while receiving the additional bytes from server
As discussed in the [internal doc](http://shortn/_mfCylknbNH), in a very rare cases GCS can send more bytes than requested. Even though it should not be a fatal error from the client perspective, connector still throws error. This PR fixes the same scenario by adding warning log instead of throwing an exception as well...
diff --git a/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageClientReadChannel.java b/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageClientReadChannel.java index 62510a2f9..39b15e837 100644 --- a/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageClientReadChann...
5
3
0
[{"id": "G0", "claim": "The log and exception messages added by this pull request contain the typos 'where as' (should be 'whereas') and 'suppose' (should be 'supposed').", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The finer-level log added in op...
null
GoogleCloudDataproc__hadoop-connectors__1701
GoogleCloudDataproc/hadoop-connectors
1,701
defect
81159b2d1729c779604dc6e4ede2de2bb0a9e337
a627e3e5873b87a7e044e3e3c45111e47061ebc5
Parameterize the existing Integration Tests for read path
This PR parameterizes `GoogleHadoopFSInputStreamIntegrationTest` to verify the read path with Analytics Core both enabled and disabled. It also introduces manual metric updates and range validation to ensure consistency.
diff --git a/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/AnalyticsCoreChannelAdapter.java b/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/AnalyticsCoreChannelAdapter.java index 0633e94aa..aee1f5781 100644 --- a/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/AnalyticsCoreChannelAdapter.java +++ b/gcs/src/main/...
4
4
2
[{"id": "G0", "claim": "The validation `range.getOffset() + range.getLength() > size` will incorrectly fail for all ranges when `size` is unknown (-1), so it should only run when `size` is non-negative, as in `position(long)`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}...
null
GoogleCloudDataproc__hadoop-connectors__1708
GoogleCloudDataproc/hadoop-connectors
1,708
defect
43a697990a4d78b8fe3ae99c38088a77ed5bb79f
c368cef2d7cc6427fbc5133c913072cdf65e5795
[Backport to 3.1.x]: Feature tracking using header
Backport PR: https://github.com/GoogleCloudDataproc/hadoop-connectors/pull/1619
diff --git a/gcs/CHANGES.md b/gcs/CHANGES.md index 8bc232c3e..877ffa586 100644 --- a/gcs/CHANGES.md +++ b/gcs/CHANGES.md @@ -1,6 +1,7 @@ # Release Notes ## Next +1. Track Client Feature Usage using Custom Header ## 3.1.16 - 2026-04-27 1. Upgrade google.api-client-libraries.version to 2.9.0. diff --git a/gcs/src...
4
1
0
[{"id": "G0", "claim": "Using InheritableThreadLocal with a mutable BitSet without overriding childValue makes child threads share the parent's BitSet instance, risking race conditions and incorrect tracking, and can leak values across reused pool threads since track only clears the current thread's bit; the reviewer s...
null
GoogleCloudDataproc__hadoop-connectors__347
GoogleCloudDataproc/hadoop-connectors
347
defect
63c2b018b286cfdd12a56cd2e91de5b5397b124a
7ba84055e3daf3750999b0ed3474cc80c8ebd656
Fix the read logic with a forward seek.
1. when `readBufferedContentInto(ByteBuffer)`, the remaining byte buffer from the buffered content didn't count the buffer skipped through seek. This changed that. 2. `seekDistance` can be exactly the `getInplaceSeekLimit` set in `readOptions`, but it was ignored. 3. Currently missing tests for these two cases.
diff --git a/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageGrpcReadChannel.java b/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageGrpcReadChannel.java index 7c6aac3bd4..04c5088dc7 100644 --- a/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageGrpcReadChannel.j...
2
1
1
[{"id": "G0", "claim": "Add a description explaining what the issue is that this change fixes.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test that validates the fixed read logic.", "category": "testing", "verdict": "supported", "priorit...
null
GoogleCloudDataproc__hadoop-connectors__391
GoogleCloudDataproc/hadoop-connectors
391
defect
89d5a01a9568485a6d06bb335d5847167fb1e8a3
adef001185859d38e7ff0727c3adae89e0591e62
Add an option to use Java NIO Pipe in Cloud Storage output stream
In contrast to `PipedInputStream`/`PipedOutputStream` pipe, Java NIO `Pipe` supports multiple writers and does not throw *"Pipe broken"* exception in this case (see #103 for an example). Note that according to `TestDFSIO` HCFS test Java NIO `Pipe` has 10% lower throughput when writing to GCS than current implementat...
diff --git a/gcs/CHANGES.md b/gcs/CHANGES.md index b347c00e85..5df6fd7ff7 100644 --- a/gcs/CHANGES.md +++ b/gcs/CHANGES.md @@ -40,6 +40,22 @@ wait between syncs. `hsync()` when rate limited will block on waiting for the permits, but `hflush()` will simply perform nothing and return. +1. Added a new paramet...
1
1
1
[{"id": "G0", "claim": "The default value of the new fs.gs.outputstream.pipe.type configuration should be IO_STREAM_PIPE instead of NIO_CHANNEL_PIPE.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GoogleCloudDataproc__hadoop-connectors__411
GoogleCloudDataproc/hadoop-connectors
411
defect
ebe76eb5d19f0870376a2586295dfeb6eca87c1a
66687c9348393e28100c9efd5b0805795219f2e5
Use System Lambda's withEnvironmentVariable
System Lambda is independent of the test framework and therefore no obstacle for changing the test framework. System Lambda is more local, too. It is only used for the single statement that needs environment variables.
diff --git a/pom.xml b/pom.xml index a50d3eceaf..689d270495 100644 --- a/pom.xml +++ b/pom.xml @@ -119,8 +119,8 @@ <hadoop.two.version>2.10.0</hadoop.two.version> <hadoop.three.version>3.2.1</hadoop.three.version> <junit.version>4.13</junit.version> - <junit.system-rules.version>1.19.0</junit.system-r...
1
1
0
[{"id": "G0", "claim": "System Lambda's execute (or a similar method) should return the lambda's result so it can be consumed and asserted outside the lambda, like JUnit's assertThrows, making tests more readable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleCloudDataproc__hadoop-connectors__430
GoogleCloudDataproc/hadoop-connectors
430
defect
4a58f02132c04d9c09ee582eb29685c4bcb1b9ed
9bb807b6da2912ef250c9c8398f4286ccffa2a74
[grpc] Set GRPC_CHECKSUMS_ENABLED_DEFAULT to false in GCSIO
By our decision to turn this off by default. It is now consistent with `GCS_GRPC_CHECKSUMS_ENABLE`.
diff --git a/util/src/main/java/com/google/cloud/hadoop/util/AsyncWriteChannelOptions.java b/util/src/main/java/com/google/cloud/hadoop/util/AsyncWriteChannelOptions.java index cbd8b8c803..d2ccf46396 100644 --- a/util/src/main/java/com/google/cloud/hadoop/util/AsyncWriteChannelOptions.java +++ b/util/src/main/java/com/...
2
1
1
[{"id": "G0", "claim": "The gRPC checksums default also needs to be changed in GoogleHadoopFileSystemConfiguration.java (lines 364-365), not only in AsyncWriteChannelOptions.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The change breaks GoogleClo...
null
GoogleCloudDataproc__hadoop-connectors__601
GoogleCloudDataproc/hadoop-connectors
601
defect
72d6b40e840b5057f5522e54bdf0b95ad9750328
a6d85dc808a1b64a475967c5c9c979ac0fb0af7d
Change oath token to header & call order when intializing list request
Change access token to use authorization header instead of oath token. Change the call order for the initializeRequest method and setting the object prefix for object list reuqest.
diff --git a/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageImpl.java b/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageImpl.java index f01dfbdc95..d23482b068 100644 --- a/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageImpl.java +++ b/gcsio/src/main/java/com...
2
2
0
[{"id": "G0", "claim": "The reviewer asks why initializeRequest cannot be called at the very beginning of createListRequest and requests inlining the prefix into the request passed to it (initializeRequest(storage.objects().list(bucketName).setPrefix(emptyToNull(objectNamePrefix)), bucketName)) instead of setting the p...
null
GoogleCloudDataproc__hadoop-connectors__624
GoogleCloudDataproc/hadoop-connectors
624
defect
3e137480ff5fbc6fc5c8f86daac4874a5880d02a
e19a391d07dea0dc161143895b432a6098752169
Storage Statistics
feat: Implemented Storage Statistics in GoogleHadoopFileSystem
diff --git a/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/AbstractGhfsStatisticsSource.java b/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/AbstractGhfsStatisticsSource.java new file mode 100644 index 0000000000..fb08d0c94b --- /dev/null +++ b/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/AbstractGhfsStatisti...
9
8
0
[{"id": "G0", "claim": "Method parameters in AbstractGhfsStatisticsSource should not use the final modifier, per the project convention.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The toString() implementation should use Guava's MoreObjects....
null
GoogleCloudDataproc__hadoop-connectors__737
GoogleCloudDataproc/hadoop-connectors
737
defect
56b190391084ffe63e70d275002b2de2754188da
6b3867c7969afdd0427b514f99b8d4ec549f5027
Migrate tests from using Mockito mocks except for mockBatchHelper and related mocks
Remove most of the mockito mocks. Mocks for Storage and requests are completely removed. Only mocks for BatchHelper related objects remains. Also moves the tests into their repective test class since they don't use mockito now.
diff --git a/gcsio/src/test/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageImplCreateTest.java b/gcsio/src/test/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageImplCreateTest.java index 80fe3999b7..6e7ce8c44d 100644 --- a/gcsio/src/test/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageImplCreateTest.java...
4
3
1
[{"id": "G0", "claim": "The pull request lost about 0.30% of test coverage and the reviewer asks the author to check what is no longer tested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "After removing the setters, the corresponding fields should be ...
null
GoogleCloudDataproc__hadoop-connectors__788
GoogleCloudDataproc/hadoop-connectors
788
defect
9eb38e30690a37f20c2ca1769d9ac395c842ab5d
c742ca3525c596b19ee5c16b1f6ade77f53762d6
Lazy footer prefetch
Prefetch the footer only if there is a seek into the footer region
diff --git a/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageGrpcReadChannel.java b/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageGrpcReadChannel.java index 15cb25b196..76f2a5260c 100644 --- a/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageGrpcReadChannel.j...
4
3
1
[{"id": "G0", "claim": "Fix the comment in getFooterContent because the code does not reset the position to the start, it restores the last known position.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Change the test comment in testReadCachedFoo...
null
GoogleCloudDataproc__hadoop-connectors__824
GoogleCloudDataproc/hadoop-connectors
824
defect
e7c631ed47e3775ae5b40c68df51f54f2a69c39d
d60cfd4f51fa8e6f6fe8e7033f137521a381a536
Add tracing for GRPC API calls (#821)
Cherrypick https://github.com/GoogleCloudDataproc/hadoop-connectors/pull/821 to 2.2.x branch
diff --git a/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageGrpcReadChannel.java b/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageGrpcReadChannel.java index 2cf1fd8e97..9b747c8598 100644 --- a/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageGrpcReadChannel.j...
2
2
0
[{"id": "G0", "claim": "GoogleCloudStorageGrpcTracingInterceptor should be made package-private so it can be modified freely.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "GrpcRequestTracingInfo should be made package-private and have javadoc added.", "...
null
GoogleCloudDataproc__hadoop-connectors__863
GoogleCloudDataproc/hadoop-connectors
863
defect
3826f97eaa8bb94dcf1204ad13755f067085aef3
e9baa03d5eab68018e4d1851d2b96ca290a444b7
Enforce early socket read timeout setting.
Set socket read timeout (`fs.gs.http.read-timeout`) as early as possible on new sockets returned from the custom `SSLSocketFactory`. This guarantees the timeout is enforced during TLS handshakes when using Conscrypt as the security provider. See also https://github.com/google/conscrypt/issues/864 .
diff --git a/gcs/CHANGES.md b/gcs/CHANGES.md index e882c7b3fd..718441693f 100644 --- a/gcs/CHANGES.md +++ b/gcs/CHANGES.md @@ -74,6 +74,11 @@ 1. Set default value for `fs.gs.list.max.items.per.call` property to `5000`. +1. Set socket read timeout (`fs.gs.http.read-timeout`) as early as possible on + new socke...
2
2
1
[{"id": "G0", "claim": "Change the new createHttpTransport read-timeout parameter type from Integer to Duration.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The read timeout config property is now declared twice (the new READ_TIMEOUT_SUFFIX duplicates...
null
GoogleCloudDataproc__hadoop-connectors__886
GoogleCloudDataproc/hadoop-connectors
886
defect
3b21b701c0b8166f69c92b4afe7f1c304678b225
8d6238d7d766fc0cc32d9850fd836d33c3466806
adding trace logging for connector and gcs-grpc APIs
Using trace logging to capture read API monitored at connector level as well as latency observed by connector from gcs side (for grpc path).
diff --git a/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFSInputStream.java b/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFSInputStream.java index 8b10754220..4857bf0a51 100644 --- a/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFSInputStream.java +++ b/gcs/src/main/java...
13
11
0
[{"id": "G0", "claim": "The per-instance gson field can be static.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Private methods should be placed after the public methods for easier readability.", "category": "maintainability", "verdict": "supported", "...
null
GoogleCloudDataproc__hadoop-connectors__928
GoogleCloudDataproc/hadoop-connectors
928
defect
47365812da2a4b6a0a3b196e7daf39516a92e8cc
16f72f7087242501f9533fe1b46f76082ce5a143
Fixed gRPC write path
GCS team have updated the checkpointing strategy for uplodObjects which resulted in bug for `gcs-connector` as we weren't able to get the updated write offset of file which is till getting uploaded. All upload object requests with size >40MB were resulting into failures. Fix: Instead of waiting on `QueryWriteStatus`...
diff --git a/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageGrpcWriteChannel.java b/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageGrpcWriteChannel.java index 558fcb01ee..7eac7f81f5 100644 --- a/gcsio/src/main/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageGrpcWriteChanne...
8
5
2
[{"id": "G0", "claim": "The write message timeout should use Duration.ofMillis, not Duration.ofSeconds, since the option value is configured in milliseconds.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The isComplete method should be simplified t...
null
GoogleCloudDataproc__hadoop-connectors__938
GoogleCloudDataproc/hadoop-connectors
938
defect
8aec06e1f835f7027947135b16d2fd62f0aa4788
6d951040973899f096062e98be0f9cef5b66a5bf
Clean up, improve and unify configuration and option classes handling of time and size properties
Changes in this PR: - support size suffixes in values of size properties using [`Configuration#getLongBytes`](https://hadoop.apache.org/docs/r3.3.4/api/org/apache/hadoop/conf/Configuration.html#getLongBytes-java.lang.String-long-) method - support time suffixes in values of time properties using [`Configuration#getTi...
diff --git a/gcs/CHANGES.md b/gcs/CHANGES.md index ddf88dfdd4..3e0b5cc098 100644 --- a/gcs/CHANGES.md +++ b/gcs/CHANGES.md @@ -1,4 +1,4 @@ -### 3.0.0 - 2022-XX-XX +### 3.0.0 - 2023-XX-XX 1. Remove Hadoop 2.x support. @@ -11,14 +11,14 @@ 1. Remove an obsolete `AuthorizationHandler` and related properties: - ...
4
3
0
[{"id": "G0", "claim": "The description under fs.gs.rewrite.max.chunk.per.call should be updated to match the new value format, since it still speaks of bytes while the value can be given in units like MB.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
GoogleCloudDataproc__hadoop-connectors__997
GoogleCloudDataproc/hadoop-connectors
997
defect
69eb118d47e33f08f7d6f114fc2d2263c99f0287
4769f9e72db98b9bb83cc20013630153edb49b9b
upgrade google-java-storage
Ignore some of the test where Aunutorized checks were made as theose are not supported in gRPC-DirectPath flow.
diff --git a/gcs/src/test/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystemHTTPClientIntegrationTest.java b/gcs/src/test/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystemHTTPClientIntegrationTest.java new file mode 100644 index 0000000000..24499c9229 --- /dev/null +++ b/gcs/src/test/java/com/google/cl...
5
3
0
[{"id": "G0", "claim": "Please add a comment explaining the GOOGLE_CLOUD_ENABLE_DIRECT_PATH_XDS export in tools/run_integration_tests.sh.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test files, starting with GoogleHadoopFileSystemHTTPCl...
null
GoogleCloudDataproc__spark-bigquery-connector__1007
GoogleCloudDataproc/spark-bigquery-connector
1,007
defect
02b189b1a6c76b2e871fbe6036b024faca63dd53
50d246c45102fd730031eb1cb4e8d28ad6c8e1a0
Implement at-least-once option that utilizes default stream
to support streaming scenarios in which small batches of data are written.
diff --git a/README.md b/README.md index 8f21acd542..97a02aaeb9 100644 --- a/README.md +++ b/README.md @@ -525,6 +525,17 @@ The API Supports a number of options to configure the read </td> <td>Write</td> </tr> + <tr valign="top"> + <td><code>writeAtLeastOnce</code> + </td> + <td>Guarantees that data...
2
2
1
[{"id": "G0", "claim": "Add an integration test that exercises the new `writeAtLeastOnce` configuration.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G3", "claim": "Make the pull request's documentation changes in README-template.md instead of the generated README.m...
null
GoogleCloudDataproc__spark-bigquery-connector__1017
GoogleCloudDataproc/spark-bigquery-connector
1,017
defect
0e69e08af40a46f1953cea969d32f4ff30e2bb93
a6dd2088504a4f62b8072aafdb0ca075e258a181
Issue #144: allow writing Spark String to BQ TIME type
Currently, we allow reading BQ's TIME datatype into Spark's long datatype. However, there's no way to write into BQ's TIME datatype. This change adds that functionality through String.
diff --git a/CHANGES.md b/CHANGES.md index 149c32a06b..2d0b38e558 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,6 +2,8 @@ ## Next +* Issue #144: allow writing Spark String to BQ TIME type + ## 0.32.0 - 2023-07-17 * Issue #748: `_PARTITIONDATE` pseudo column is provided only for ingestion time **daily** partit...
3
3
1
[{"id": "G0", "claim": "The connector should also allow writing Spark String values in BQ TIME literal format to BQ TIME columns.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "What happens when a user reads a BQ table and then tries to write the DataFra...
null
GoogleCloudDataproc__spark-bigquery-connector__1054
GoogleCloudDataproc/spark-bigquery-connector
1,054
defect
0fa068842664692f98699bd8ab4c273edf944c9d
cd8a6012a4a531d7ef863f8edbbca303e0a49964
Format metrics; add (min, med, max) for timing metrics
Shows up like this now: <img width="391" alt="Screenshot 2023-08-29 at 9 40 49 PM" src="https://github.com/GoogleCloudDataproc/spark-bigquery-connector/assets/25999807/508b67a7-583d-49b4-9e28-86f17c1788f0">
diff --git a/spark-bigquery-dsv2/spark-bigquery-metrics/src/main/java/com/google/cloud/spark/bigquery/v2/customMetrics/MetricUtils.java b/spark-bigquery-dsv2/spark-bigquery-metrics/src/main/java/com/google/cloud/spark/bigquery/v2/customMetrics/MetricUtils.java new file mode 100644 index 0000000000..c00ecc495f --- /dev/...
8
7
0
[{"id": "G0", "claim": "MetricUtils should not have to be a public class.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The NumberFormat created inside toNumberFormat can be a static field of the class instead of being built on every call.", "category":...
null
GoogleCloudDataproc__spark-bigquery-connector__1156
GoogleCloudDataproc/spark-bigquery-connector
1,156
defect
1e0b69de3e976f671b688a817b0efdb0c5dc22f9
a345de44139aed6ba261fa013f989a86cd4b96cc
Propagate stats for BigLake Managed tables
Propagating table size statistic will enable broadcast joins on BigLake Managed tables.
diff --git a/spark-bigquery-connector-common/src/main/java/com/google/cloud/spark/bigquery/SparkBigQueryUtil.java b/spark-bigquery-connector-common/src/main/java/com/google/cloud/spark/bigquery/SparkBigQueryUtil.java index a7c9227717..143db401c0 100644 --- a/spark-bigquery-connector-common/src/main/java/com/google/clou...
2
1
1
[{"id": "G0", "claim": "BigLake Managed tables should not follow the external-table code path in estimateStatistics/numRows; they should report BQ-native-table-style statistics (row count and bytes), with row count populated so it is not a hidden landmine and the connector changes kept minimal.", "category": "design", ...
null
GoogleCloudDataproc__spark-bigquery-connector__1166
GoogleCloudDataproc/spark-bigquery-connector
1,166
defect
51d8105f73b278296b814d4de9360563c655b346
17bef0eaa1caa46823f760405fd4c6eb73451c6a
Fix filters by adding surrounding parenthesis
Below is an example of a filter where the SQL generated is incorrect: ``` [ Or(Not(EqualNullSafe(foo, 0.0)), Not(EqualNullSafe(bar, 0.0))), EqualNullSafe(foo, 0.0), EqualNullSafe(bar, 0.0), ] ``` This generates the following SQL query: ``` (((NOT (`foo` IS NULL AND 0 IS NULL OR `foo` IS NOT NULL A...
diff --git a/spark-bigquery-connector-common/src/main/java/com/google/cloud/spark/bigquery/SparkFilterUtils.java b/spark-bigquery-connector-common/src/main/java/com/google/cloud/spark/bigquery/SparkFilterUtils.java index 3016e21473..d693bd980d 100644 --- a/spark-bigquery-connector-common/src/main/java/com/google/cloud/...
1
1
1
[{"id": "G0", "claim": "Add a test case covering the query whose generated SQL was incorrect before the parenthesis fix.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GoogleCloudDataproc__spark-bigquery-connector__1212
GoogleCloudDataproc/spark-bigquery-connector
1,212
defect
a39e46ad38ddf6da7e150187ea16123d53456c5b
16cb904d7dd57068db7a9bbeec4c7e9e1a699f3a
Support OpenLineage in spark-3.x-bigquery connectors
1. Add openlineage properties to Spark31BigQueryTable class 2. Add BigQueryRelationProvider as an abstract class to v2 module, to be extended by BaseBigQuerySource (parent class of all the Spark BigQuery Table Provider classes).
diff --git a/pom.xml b/pom.xml index 50f3f920f0..c097f147ff 100644 --- a/pom.xml +++ b/pom.xml @@ -44,6 +44,20 @@ https://github.com/GoogleCloudDataproc/spark-bigquery-connector/issues </url> </issueManagement> + <dependencies> + <dependency> + <groupId>org.apache.spark</groupId> + <artifac...
5
4
2
[{"id": "G0", "claim": "Remove the Maven configuration the pull request added (dependencies in the root pom.xml and compiler/build configuration in the module poms) because the parent POM already provides it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
GoogleCloudDataproc__spark-bigquery-connector__1222
GoogleCloudDataproc/spark-bigquery-connector
1,222
defect
881d2cca5a6dfe34cc8151a00916bbdcafff21fc
0d06a89d395865ee1c384dc3bb4fde0a7a9742fe
add option to request lz4 compressed ReadRowsResponse
This adds the ability to request compressed ReadRowsResponses. If the server decides to give back a ReadRowsResponse, we use the specified compression algorithm (LZ4) to decompress the results. This also adds two integration tests to test requesting compressed results for both arrow and avro.
diff --git a/.gitignore b/.gitignore index d10cfbedef..ecb4cd7c37 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,6 @@ AdAdHocITSuite.scala # Mac .DS_Store + +# Visual Studio IDE +.vscode/ diff --git a/README-template.md b/README-template.md index 40ef53aca0..9dcdb24fd8 100644 --- a/README-template.md +++ b/R...
8
8
4
[{"id": "G0", "claim": "The README.md is updated automatically on releases, so the pull request should remove its manual README.md update.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "lz4-java is provided by Spark, so the new dependency should n...
null
GoogleCloudDataproc__spark-bigquery-connector__1258
GoogleCloudDataproc/spark-bigquery-connector
1,258
defect
4154060999f3e16358181cb26ea985870b49fc4a
32c496511b8d8253682b4d14beb2fdf55c8ef1da
Issue #1254: fix getting partitioning fields for pseudo columns
When getting partitioning fields, `timePartitioning.getField()` returns null when the table is ingestion time partitioned (partitioned by `_PARTITIONTIME` OR `_PARTITIONDATE`). The change fixes this bug.
diff --git a/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/BigQueryUtil.java b/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/BigQueryUtil.java index cbdcc08199..13636fd6f6 100644 --- a/bigquery-connector-common/src/main/java/com/google/cloud/bigq...
1
1
0
[{"id": "G0", "claim": "Please add an integration test based on issue #1254 for the pseudo-column partitioning fix.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleCloudDataproc__spark-bigquery-connector__1259
GoogleCloudDataproc/spark-bigquery-connector
1,259
defect
4154060999f3e16358181cb26ea985870b49fc4a
e6348d3c2bacd6f0001f76c0c678cf36d5d72ae8
Encode snapshotTimeMillis in view materialization query
`snapshotTimeMillis` does not currently make sense with views since the view is materialized to a table without taking this property into consideration, and then a read session is created attempting to read the materialized table at this timestamp (which has only just been created). This change will instead use `snapsh...
diff --git a/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/BigQueryClient.java b/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/BigQueryClient.java index a97ef9dc81..2815dfb4c8 100644 --- a/bigquery-connector-common/src/main/java/com/google/cloud/...
1
1
0
[{"id": "G0", "claim": "The wildcard import `com.google.cloud.bigquery.*` added in ReadSessionCreatorTest.java should be expanded into individual imports.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleCloudDataproc__spark-bigquery-connector__1284
GoogleCloudDataproc/spark-bigquery-connector
1,284
defect
8412b1ef204afe5fba2def4e4d2139063d590eb4
77aa65169ff0f22f306c662b759de72c562d55c2
Making BigQueryClientFactory Kryo serializable
Authored-by: Thomas Powell tom-s-powell@users.noreply.github.com
diff --git a/CHANGES.md b/CHANGES.md index b619bbec06..8f768823fd 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,7 +2,8 @@ ## Next -* PR #1281 : Configure alternative BigNumeric precision and scale defaults +* PR #1281: Configure alternative BigNumeric precision and scale defaults +* PR #1284: Making BigQueryClien...
3
3
0
[{"id": "G0", "claim": "Explain why the identityTokenSupplier field was added — the author said it is unused and it should not be there.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The special-casing of ExternalAccountCredentials in hashCode() is no l...
null
GoogleCloudDataproc__spark-bigquery-connector__1293
GoogleCloudDataproc/spark-bigquery-connector
1,293
defect
44d21d83758791c4b8bea4469a0f595e68ca9728
de0ab4c4348a642e1476855c01f189a5d2967cde
Issue #1290: Stopped using metadata for optimized count path
TableInfo.getNumRows() only covers the data that's materialized to data files, without including the data in streaming buffer. The data in streaming buffer (a.k.a, ingested through Write API, but not converted to data file yet) is readable using ReadAPI, but accessing TableInfo.getNumRows() won't reflect whatever chang...
diff --git a/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/BigQueryClient.java b/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/BigQueryClient.java index c639f5f6aa..b5eca2be40 100644 --- a/bigquery-connector-common/src/main/java/com/google/cloud/...
3
2
1
[{"id": "G0", "claim": "Asks why there are two separate tests with identical logic instead of a single testCountAfterWrite(), questioning whether direct and indirect writes need different test logic.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
GoogleCloudDataproc__spark-bigquery-connector__1347
GoogleCloudDataproc/spark-bigquery-connector
1,347
defect
25b5718b946f41fca9fbfeb7a327422e79da013c
366f8fd3ff8b89cfb850da3b52b21b3fa6eab55e
Get lineage out of query
Utilize `openlineage-spark` feature to extract lineage out of query
diff --git a/spark-bigquery-connector-common/src/test/java/com/google/cloud/spark/bigquery/integration/OpenLineageIntegrationTestBase.java b/spark-bigquery-connector-common/src/test/java/com/google/cloud/spark/bigquery/integration/OpenLineageIntegrationTestBase.java index f5caa6b2b8..3607e7c62a 100644 --- a/spark-bigqu...
2
2
2
[{"id": "G0", "claim": "Keep both tests — the original table-input lineage test should be kept alongside the new query-input test instead of being renamed away.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Both integration tests fail because the linea...
null
GoogleCloudDataproc__spark-bigquery-connector__1349
GoogleCloudDataproc/spark-bigquery-connector
1,349
defect
25b5718b946f41fca9fbfeb7a327422e79da013c
8e9e7b2c84ba2bc4f6961e0b81f41cb267f4211c
Add parameterized queries support as new Spark options
This PR introduces new Spark options (`NamedParameters.<name>`, `PositionalParameters.<index>`) for specifying BigQuery parameterized query arguments, stated in [issues/506](https://github.com/GoogleCloudDataproc/spark-bigquery-connector/issues/506). Parameters use the `"TYPE:value"` string format (e.g., `"STRING:va...
diff --git a/README-template.md b/README-template.md index 6b0266880d..50a5e31839 100644 --- a/README-template.md +++ b/README-template.md @@ -242,6 +242,32 @@ In order to use this feature the `viewsEnabled` configurations MUST be set to saving the result into a temporary table, of which Spark will read the results f...
8
7
3
[{"id": "G0", "claim": "The two parameter collections in SparkBigQueryConfig should be replaced with a single instance of ParsedQueryParameters.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "ParsedQueryParameters should be a top-level class and it shoul...
null
GoogleCloudDataproc__spark-bigquery-connector__1384
GoogleCloudDataproc/spark-bigquery-connector
1,384
defect
eb6206503f6bcedb999f373831642bed7b568eba
c8673d6c2e4e72f9e697dd6493aeb1de6500f0e5
Support reading from BigQuery tables with spaces in their names
This PR enables reading from BigQuery tables with spaces in their names by updating the table parsing logic and improving the isQuery function. It also introduces support for backticked identifiers for ambiguous table names that contain SQL keywords (e.g., orders from 2023), ensuring they are always correctly identifie...
diff --git a/README-template.md b/README-template.md index 6276e94d47..4839d46f6c 100644 --- a/README-template.md +++ b/README-template.md @@ -175,6 +175,16 @@ import com.google.cloud.spark.bigquery._ val df = spark.read.bigquery("bigquery-public-data.samples.shakespeare") ``` +The connector supports reading from t...
5
4
1
[{"id": "G0", "claim": "The integration test should use the modern project.dataset.table format instead of the legacy project:dataset.table format for the connector table id.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test's DROP TABLE I...
null
GoogleCloudDataproc__spark-bigquery-connector__1425
GoogleCloudDataproc/spark-bigquery-connector
1,425
defect
544d33418d0d05197317f470ef18cbc2c0f91621
60654c481918a7ec3b120bb3be436a62ad2277de
extracting and passing universe domain to BQ client
extracting and passing universe domain from Credentials to BQ client https://screenshot.googleplex.com/54cTTfXai3BXRJA In case the universe domain is not returned, defaulting to GOOGLE_DEFAULT_UNIVERSE domain.
diff --git a/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/BigQueryClientFactory.java b/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/BigQueryClientFactory.java index bf74bc518..e8848bcb7 100644 --- a/bigquery-connector-common/src/main/java/com/g...
3
2
1
[{"id": "G0", "claim": "The logger should be initialized with BigQueryCredentialsSupplier.class instead of BigQueryClient.class so log messages are attributed to the right class.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new testUnivers...
null
GoogleCloudDataproc__spark-bigquery-connector__1434
GoogleCloudDataproc/spark-bigquery-connector
1,434
defect
8a9a7175e818465c0add322f739bf14587a0ed9e
5fdf9acb5660750d8eea8c83ee7237b5d4c7478b
Support per-catalog configuration for project and location for BigQueryCatalog
This PR enhances the BigQueryCatalog by adding support for specifying a project and location directly in the Spark configuration. This allows users to easily register and interact with BigQuery datasets from different projects and locations without having to override the global parentProjectId. This makes it easier ...
diff --git a/CHANGES.md b/CHANGES.md index 20e7f30950..8564f6086a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,7 @@ # Release Notes ## Next +* PR #1434: Support per-catalog configuration for project and location for BigQueryCatalog. ## 0.43.1 - 2025-10-22 * Issue #1417: Fixed ClassCastException in AWS fe...
10
8
5
[{"id": "G0", "claim": "The catalog options are not passed to the Table instances created by loadTable and createTable, so subsequent table-level operations will not use the catalog-level project and location configuration.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {...
null
GoogleCloudDataproc__spark-bigquery-connector__1445
GoogleCloudDataproc/spark-bigquery-connector
1,445
defect
6d348f49e062e15500b7a03a960e25025b14a742
9e98ec1e4d31405e890594ce15c3c1d6b7e05e0b
Add streaming for Indirect Write to BigQuery
- Added BigQueryStreamingWrite, BigQueryStreamingDataWriter, BigQueryStreamingWriterFactory - Implemented buildForStreaming in BigQueryWriteBuilder
diff --git a/spark-bigquery-connector-common/src/main/java/com/google/cloud/spark/bigquery/write/context/BigQueryIndirectDataSourceWriterContext.java b/spark-bigquery-connector-common/src/main/java/com/google/cloud/spark/bigquery/write/context/BigQueryIndirectDataSourceWriterContext.java index 433b1357ae..4639bcc5bb 10...
7
7
4
[{"id": "G0", "claim": "It would be beneficial to log the unused epochId when a streaming write is aborted, to provide more context for debugging.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ctx field of BigQueryStreamingDataWriter, initi...
null
GoogleCloudDataproc__spark-bigquery-connector__1447
GoogleCloudDataproc/spark-bigquery-connector
1,447
defect
6d348f49e062e15500b7a03a960e25025b14a742
c6c7307168af6c3c0ce42859110d2a1adc264302
Add test window function to ReadByFormatIntegrationTestBase
Add test window function to ReadByFormatIntegrationTestBase
diff --git a/spark-bigquery-connector-common/src/test/java/com/google/cloud/spark/bigquery/integration/ReadByFormatIntegrationTestBase.java b/spark-bigquery-connector-common/src/test/java/com/google/cloud/spark/bigquery/integration/ReadByFormatIntegrationTestBase.java index d89049fe3..3534335d4 100644 --- a/spark-bigqu...
1
1
0
[{"id": "G0", "claim": "The window specification can be improved by passing column names directly to partitionBy instead of concatenating them, and by ordering by a stable column such as event_bundle_sequence_id instead of a literal, so the test is more idiomatic, readable and deterministic.", "category": "maintainabil...
null
GoogleCloudDataproc__spark-bigquery-connector__1459
GoogleCloudDataproc/spark-bigquery-connector
1,459
defect
6d348f49e062e15500b7a03a960e25025b14a742
b5ef154fb4e7d5f79801c2ce3e517d8a9bbdb617
Use Java Standard Interface to fix the cast exception
The com.google.cloud.bigquery.connector.common package should be relocated along with the rest of the dependencies. This ensures that the code within the shaded connector strictly uses its own internal, shaded versions of the classes, avoiding conflicts with any unshaded libraries on the classpath. If this fixes the...
diff --git a/spark-bigquery-parent/pom.xml b/spark-bigquery-parent/pom.xml index e51aaaffe..8bfa4b50f 100644 --- a/spark-bigquery-parent/pom.xml +++ b/spark-bigquery-parent/pom.xml @@ -628,7 +628,8 @@ <pattern>com.google</pattern> <shadedPattern>com.google.cloud...
2
2
1
[{"id": "G0", "claim": "The commented-out shading exclusion should be removed entirely rather than left commented out, ideally before the pull request is merged.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Commenting out the exclusion may not...
null
GoogleCloudDataproc__spark-bigquery-connector__1477
GoogleCloudDataproc/spark-bigquery-connector
1,477
defect
0f865fd0bfebe47cef33749177cb81f042cb8923
cefd219573ed5e4973df30add93ed5a28e559d88
Issue #1476: Fix ambiguous aliases target and source in BigQuery MERGE queries
## Description This PR updates the table aliases used in the BigQuery MERGE queries generated by BigQueryUtil.java. It's trying to solve #1476. Previously, the connector used target and source as the table aliases. If a user's destination table actually had columns named target or source, it could cause ambiguity...
diff --git a/CHANGES.md b/CHANGES.md index b6461fba4..055bff0d5 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,6 +2,7 @@ ## Next +* Fix a bug where user columns named `target` or `source` cause BigQuery `MERGE` statement ambiguity on overwrite. * BigQuery API has been upgraded to version 2.60.0 * BigQuery Storag...
7
7
1
[{"id": "G0", "claim": "The source-field references in the optimized MERGE query should wrap the table alias in backticks, as getQueryForTimePartitionedTable does, for consistency and robustness against future alias changes.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ...
null
GoogleCloudDataproc__spark-bigquery-connector__193
GoogleCloudDataproc/spark-bigquery-connector
193
defect
dddc86ceede0f385a8674ebba715739b6aef0c2d
08568688f2a02c638b599bcba9bd4cb4fb3edadc
Adding acceptance test on Dataproc
In order to run the test: ``` sbt package acceptance:test ```
diff --git a/build.sbt b/build.sbt index 0c5d2f3e82..5817ac6fe2 100644 --- a/build.sbt +++ b/build.sbt @@ -1,3 +1,18 @@ +/* + * Copyright 2018 Google Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + *...
1
1
0
[{"id": "G0", "claim": "The comment in AcceptanceTestUtils.java contains a typo and should read 'the' instead of 'rhe'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
GoogleCloudDataproc__spark-bigquery-connector__199
GoogleCloudDataproc/spark-bigquery-connector
199
defect
dddc86ceede0f385a8674ebba715739b6aef0c2d
c7f0171e3745267f73858e391e4746ffeb56ebcd
Schema Conversion suites for use in WriteSupport implementation
Created Spark->BigQuery schema conversion methods, in SchemaConverters.java Created BigQuery->ProtoBuf schema conversion, as well as Spark InternalRow->ProtoBuf conversion methods, in the new file, ProtoBufUtils.java Created comprehensive tests for both in SchemaConvertersTests.java and ProtoBufUtilsTests.java, respe...
diff --git a/connector/src/main/java/com/google/cloud/spark/bigquery/ProtoBufUtils.java b/connector/src/main/java/com/google/cloud/spark/bigquery/ProtoBufUtils.java new file mode 100644 index 0000000000..7dc925b721 --- /dev/null +++ b/connector/src/main/java/com/google/cloud/spark/bigquery/ProtoBufUtils.java @@ -0,0 +1...
20
19
3
[{"id": "G0", "claim": "Rename the new ProtoBufUtils class to ProtobufUtils.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The nested-record test in buildDescriptorProtoWithFields should be changed to fieldType == RECORD with the true branch fi...
null
GoogleCloudDataproc__spark-bigquery-connector__250
GoogleCloudDataproc/spark-bigquery-connector
250
defect
e77094734053378e95508e7b2d411e240393a639
2da9d94946363c2cad7d5534297d73bb68d2eb99
Code simplification to solve Issue #249
It appears that the previous code that had relied on Java streams had issues, reverting to simpler code structure, added additional tests.
diff --git a/cloudbuild/cloudbuild.yaml b/cloudbuild/cloudbuild.yaml index bb15d2eaac..869e830d07 100644 --- a/cloudbuild/cloudbuild.yaml +++ b/cloudbuild/cloudbuild.yaml @@ -18,5 +18,5 @@ steps: env: - 'GOOGLE_CLOUD_PROJECT=${_GOOGLE_CLOUD_PROJECT}' -# Tests take around 13 mins in general. -timeout: 1200...
1
1
0
[{"id": "G0", "claim": "Tests should also cover the cases where credentials come from application default credentials or from an access token.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleCloudDataproc__spark-bigquery-connector__276
GoogleCloudDataproc/spark-bigquery-connector
276
defect
f23d8aadb8f6e0c91313153afa31ced3c4e0281b
3f409430cc7952f071616264db8f112579ad6293
Add option to enable useAvroLogicalTypes option in LoadJobConfiguration
In order to be able to load a BigQuery table partitioned on a DATE column using Avro, the option `useAvroLogicalTypes` has to be activated in `LoadJobConfiguration`. Otherwise, BigQuery reads DATE columns as INTEGER as documented here: https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-avro#logical_types...
diff --git a/connector/src/main/java/com/google/cloud/spark/bigquery/SparkBigQueryConfig.java b/connector/src/main/java/com/google/cloud/spark/bigquery/SparkBigQueryConfig.java index 43ea9e8452..e2cf0e1da3 100644 --- a/connector/src/main/java/com/google/cloud/spark/bigquery/SparkBigQueryConfig.java +++ b/connector/src/...
1
1
1
[{"id": "G0", "claim": "The pull request should also update connector/src/test/java/com/google/cloud/spark/bigquery/SparkBigQueryConfigTest.java to cover the new useAvroLogicalTypes option.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GoogleCloudDataproc__spark-bigquery-connector__338
GoogleCloudDataproc/spark-bigquery-connector
338
defect
dcb55bf525c090b54f90bfcf095dd5646d9e5326
f2f1241c75935940197486b7d649a6128c5b2348
Add basic instrumentation for ReadRows calls
For now I've only instrumented the Arrow DSv2 path. As needed we can potentially add more paths and collect different metrics. This is a strawman proposoal, happy to make changes if we think there is a better approach. CC @davidrabinowitz
diff --git a/connector/src/main/java/com/google/cloud/bigquery/connector/common/BigQueryClientModule.java b/connector/src/main/java/com/google/cloud/bigquery/connector/common/BigQueryClientModule.java index 68cc77d328..f9a95d8cea 100644 --- a/connector/src/main/java/com/google/cloud/bigquery/connector/common/BigQueryCl...
1
1
0
[{"id": "G0", "claim": "Please avoid wildcard (`.*`) imports in ArrowInputPartition.java.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
GoogleCloudDataproc__spark-bigquery-connector__357
GoogleCloudDataproc/spark-bigquery-connector
357
defect
9e3071b4e13abecf2c49dff753e04b14dd00e3a5
3fbab8d8c305af9fc12055f8bb3bce8b6dd83645
Add configuration options.
Adds options for: - Endpoint of the Read API - Useful for testing and if we migrate to regional endpoints - Encoded base CreateReadSessionRequest which allows for setting hidden fields if necessary - Arrow compression codec - This isn't hooked up yet in Arrow code (we need to wait until Arrow 4.0) Additionally -...
diff --git a/build.sbt b/build.sbt index 62a8df6eab..aa019a80b0 100644 --- a/build.sbt +++ b/build.sbt @@ -16,7 +16,7 @@ lazy val scala211Version = "2.11.12" lazy val scala212Version = "2.12.10" lazy val sparkVersion = "2.4.0" -lazy val grpcVersion = "1.30.2" +lazy val grpcVersion = "1.35.0" // should match the dep...
3
3
2
[{"id": "G0", "claim": "The grpc/netty/bigquery dependency versions bumped by this PR should be reverted to those of version 0.19.1, because the same bump in 0.19.0 caused problems for several users, with the updates deferred until after the v1 release.", "category": "correctness", "verdict": "supported", "priority": "...
null
GoogleCloudDataproc__spark-bigquery-connector__373
GoogleCloudDataproc/spark-bigquery-connector
373
defect
e62d415d03f8f8ea6ae725540059e33270cf1e9d
9fc14838f31b73fbf4b937ab7a94199fd9538779
Add a utility class for parallel reading from ArrowStreams
I'll incorporate this into the actual Arrow flow in a separate PR.
diff --git a/connector/src/main/java/com/google/cloud/bigquery/connector/common/ParallelArrowReader.java b/connector/src/main/java/com/google/cloud/bigquery/connector/common/ParallelArrowReader.java new file mode 100644 index 0000000000..8f7f5c1ee4 --- /dev/null +++ b/connector/src/main/java/com/google/cloud/bigquery/c...
1
1
0
[{"id": "G0", "claim": "Add the comment \"Failed to consume readers\" to the code that wraps a generic exception into the readException IOException.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleCloudDataproc__spark-bigquery-connector__378
GoogleCloudDataproc/spark-bigquery-connector
378
defect
e62d415d03f8f8ea6ae725540059e33270cf1e9d
3811bb2b863290fa8e24c4a2d57da87e73bec0a2
Add iterator multiplexer
This will be used in conjunction with the parallel reader in my other PR.
diff --git a/connector/src/main/java/com/google/cloud/bigquery/connector/common/IteratorMultiplexer.java b/connector/src/main/java/com/google/cloud/bigquery/connector/common/IteratorMultiplexer.java new file mode 100644 index 0000000000..f7fd65a1f4 --- /dev/null +++ b/connector/src/main/java/com/google/cloud/bigquery/c...
2
2
0
[{"id": "G0", "claim": "Preconditions.checkState(t != null) in next() should include the error message \"next element cannot be null\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Arrow Preconditions import should be replaced with Guava's...
null
GoogleCloudDataproc__spark-bigquery-connector__396
GoogleCloudDataproc/spark-bigquery-connector
396
defect
8097360d33537b6a5d20d8e06556534c413a2126
04a09a0234261e1ac37efb4bdc8a01ca35cc23e7
Issue #273: Resolved the streaming write issue for spark 3.x.
This issue was beacuse of breaking changes of ExpressionEncoder from spark 2.x to 3.x.
diff --git a/connector/src/main/scala/com/google/cloud/spark/bigquery/BigQueryStreamWriter.scala b/connector/src/main/scala/com/google/cloud/spark/bigquery/BigQueryStreamWriter.scala index 93c1af5ecf..80faec5897 100644 --- a/connector/src/main/scala/com/google/cloud/spark/bigquery/BigQueryStreamWriter.scala +++ b/conne...
3
2
1
[{"id": "G0", "claim": "collectAsList() collects all the data on the driver so it cannot be used for large DataFrames; the writer needs an approach that works on the data in the partitions, e.g. ExpressionEncoder.createDeserializer() with a different approach per Spark version.", "category": "performance", "verdict": "...
null
GoogleCloudDataproc__spark-bigquery-connector__403
GoogleCloudDataproc/spark-bigquery-connector
403
defect
51903220dd29b374257aceda26359b395ab59e60
bc3d33868de5d49a1e916cb20ba4d35050c65f71
Add options for tuning ReadRowsCalls.
- Adds option to prebuffer more then 1 response at a time. This is useful for high latency environments. - Adds option to combine streams into one partition. This is useful if there are more streams per core, and the time spent in spark processing is significantly less then the time spent receiving data ...
diff --git a/connector/src/main/java/com/google/cloud/bigquery/connector/common/ReadRowsHelper.java b/connector/src/main/java/com/google/cloud/bigquery/connector/common/ReadRowsHelper.java index 2506a7992f..2bf82c226f 100644 --- a/connector/src/main/java/com/google/cloud/bigquery/connector/common/ReadRowsHelper.java ++...
5
5
0
[{"id": "G0", "claim": "Asks that the magic-number defaults for the new options (the literal 1 used for numPrebufferReadRowsResponses and numStreamsPerPartition in SparkBigQueryConfig) be converted into named constants.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {...
null
GoogleCloudDataproc__spark-bigquery-connector__413
GoogleCloudDataproc/spark-bigquery-connector
413
defect
d49c0fd5e597f5bab482f57c54c695a7b6887a77
e7e363227cf4005c7cee9adb9fa711f1ec1b4eaf
Push all filters to BigQuery Storage API
This PR modifies the filter handling code so that connector pushes all the filters it is handed by spark to the BigQuery Storage API for the read case. There is still an option to disable this (set `pushAllFilters` to `False`) so if spark tries to pushes something Storage API can't handle, users can turn this feature o...
diff --git a/README.md b/README.md index 7b1ba61726..f278ef3013 100644 --- a/README.md +++ b/README.md @@ -359,6 +359,16 @@ The API Supports a number of options to configure the read </td> <td>Read</td> </tr> + <tr valign="top"> + <td><code>pushAllFilters</code> + </td> + <td>If set to <code>true</cod...
5
4
0
[{"id": "G0", "claim": "Remove the setPushAllFilters setter from SparkBigQueryConfig, since the class has no other setter methods.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the new pushAllFilters parameter in the handledFilters call onto the ne...
null
GoogleCloudDataproc__spark-bigquery-connector__419
GoogleCloudDataproc/spark-bigquery-connector
419
defect
b87a927226282ab18ea496d233b867498b520c67
6d80dd01ae992c41bcff18525b75fe413af52a13
Fix bug where background threads > 2 cases would miss pages
- Simplify threaded model for multiplexer and parallel arrow reader. This uses the same model that gRPC users where all messages for consumers go through the same queue and a sentiel/exception is used placed in the queue to notify of an error. This is a simplication and is not involved in the bug fix. A sem...
diff --git a/connector/src/main/java/com/google/cloud/bigquery/connector/common/IteratorMultiplexer.java b/connector/src/main/java/com/google/cloud/bigquery/connector/common/IteratorMultiplexer.java index c56ad7d027..46bbe90f49 100644 --- a/connector/src/main/java/com/google/cloud/bigquery/connector/common/IteratorMult...
1
1
0
[{"id": "G0", "claim": "The checkState error message should say \"next element cannot be the sentinel\" instead of \"next element cannot be null\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleCloudDataproc__spark-bigquery-connector__602
GoogleCloudDataproc/spark-bigquery-connector
602
defect
c1d25e47c3299d69c0f0f1a4119e7ac78f50f484
eb84c6c189b753e54dd38a9b4043d23295880b23
changes to support cacheExpirationTimeInMinutes=0, if user wants to disable cache
Fix to the issue: https://github.com/GoogleCloudDataproc/spark-bigquery-connector/issues/593 changes to support cacheExpirationTimeInMinutes=0, if user wants to disable cache Added unit test Ran integration tests
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6b7908b794..73dc6ea8fa 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -89,6 +89,8 @@ each building only a subset of the project's artifacts. The profiles are: Example: In order to compile **just** the Scala 2.12 connector run `./mvnw install -Pdsv1_2.12`. ...
1
1
0
[{"id": "G0", "claim": "Add another test to make sure an exception is thrown if a negative value is passed for cacheExpirationTimeInMinutes, and optionally a test that a positive value passes.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleCloudDataproc__spark-bigquery-connector__613
GoogleCloudDataproc/spark-bigquery-connector
613
defect
d62ac1e4844e93f2c7ef144598c1e47eacd5c185
901c4927a39a5cd3ea67e8187226574b06232cbd
Added field level schema check in indirect mode and an option to ignoring the mode, during field comparison
Added field level schema check in indirect mode while writing data to BigQuery and an option (enableModeCheckForSchemaFields) to ignoring the mode, during field comparison
diff --git a/README.md b/README.md index ebb942425f..664c59f05a 100644 --- a/README.md +++ b/README.md @@ -672,6 +672,15 @@ The API Supports a number of options to configure the read </td> <td>Read</td> </tr> + <tr valign="top"> + <td><code>enableModeCheckForSchemaFields</code> + </td> + <...
6
3
0
[{"id": "G0", "claim": "schemaEquals compares the two schemas with reference equality (s1 == s2) instead of value equality, as the ErrorProne ReferenceEquality check recommends.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "fieldEquals compares the...
null
GoogleCloudDataproc__spark-bigquery-connector__632
GoogleCloudDataproc/spark-bigquery-connector
632
defect
bd8f6b6b5ddbffc666f09b1df60dc843652ecd5f
c8c8a02a1e5f04885470c45b0bf82876e8eac164
initial changes for supporting string functions in query pushdown
These are the initial changes for supporting string functions in query pushdown with unit tests
diff --git a/spark-bigquery-pushdown/pushdown_common_src/main/scala/com/google/cloud/spark/bigquery/pushdowns/SparkExpressionConverter.scala b/spark-bigquery-pushdown/pushdown_common_src/main/scala/com/google/cloud/spark/bigquery/pushdowns/SparkExpressionConverter.scala index 2f6edabee7..39369c69b4 100644 --- a/spark-b...
1
1
1
[{"id": "G0", "claim": "The generated BigQuery SQL for REGEXP_EXTRACT should quote the pattern as a raw string r'[0-9]' per the BigQuery documentation.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GoogleCloudDataproc__spark-bigquery-connector__649
GoogleCloudDataproc/spark-bigquery-connector
649
defect
973ed8a3e3175b077ce7a987a087c53611b9e8ca
e0556baa65b17f9a08d3d731ef4b7ef1dae5fd0e
Spark Catalog first implementaiton
Spark Catalog API implementation is required for supporting write capabilities in spark 3. The main difference is that in previous version is a configuration scan on each load or save, while with the catalog there's a catalog creation based on the configuration (without getting a specific table) and them referring to t...
diff --git a/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/BigQueryConfigurationUtil.java b/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/BigQueryConfigurationUtil.java new file mode 100644 index 0000000000..03ef7c3c75 --- /dev/null +++ b/bigquer...
9
7
0
[{"id": "G0", "claim": "The private constant ALL_TYPES_VIEW_NAME in ReadIntegrationTestBase is never read (unused variable).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The assumption message in the user-provided-schema guards says 'no allo...
null
GoogleCloudDataproc__spark-bigquery-connector__812
GoogleCloudDataproc/spark-bigquery-connector
812
defect
6a12e4469b9741f54bea119599e45b0dac37b53c
92f809c7076534c502d43fd78fbea186dde0912b
feat: add support for writing JSON columns through Avro indirect write
Closes #637 BigQuery supports writing JSON columns through the Avro string type as long as there is a `sqlType` type annotation of `JSON` in the schema: https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-avro#extract_json_data_from_avro_data. This change reads the metadata of `StructField`s with a str...
diff --git a/spark-bigquery-connector-common/src/test/java/com/google/cloud/spark/bigquery/AvroSchemaConverterTest.java b/spark-bigquery-connector-common/src/test/java/com/google/cloud/spark/bigquery/AvroSchemaConverterTest.java index 238bb4c3fc..513d2be4df 100644 --- a/spark-bigquery-connector-common/src/test/java/com...
1
1
1
[{"id": "G0", "claim": "The JSON check should compare strings by value (e.g. `\"JSON\".equals(metadata.getString(\"sqlType\"))`) instead of using the `==` reference comparison, which may not match equal-valued strings.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GoogleCloudDataproc__spark-bigquery-connector__848
GoogleCloudDataproc/spark-bigquery-connector
848
defect
47d8b9dfc39169a5573feb30f738e1b3547965a2
9e20530b18f5f9300b778797712329fdffd8bdea
changes in schema comparison during direct write, making it less strict
During direct write we have a check to see if the source schema can be writable into destination schema before performing the write. Previously the changes were checking if the source and destination schema are exactly same. But following issue#830, making this change to remove comparison on description, policy tags an...
diff --git a/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/BigQueryUtil.java b/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/BigQueryUtil.java index 63f9776cf7..b82e391667 100644 --- a/bigquery-connector-common/src/main/java/com/google/cloud/bigq...
2
1
0
[{"id": "G0", "claim": "In fieldListWritable the sourceFieldList and destinationFieldList are compared using reference equality (==) instead of value equality; the bot suggests replacing it with `if (sourceFieldList.equals(destinationFieldList)) {`.", "category": "correctness", "verdict": "opposed", "priority": "P3", "...
null
GoogleCloudDataproc__spark-bigquery-connector__881
GoogleCloudDataproc/spark-bigquery-connector
881
defect
f207ada2a9b2d17d076a442d110373a8e72f030d
83f5e973ff353196c601dca2c52ccc50ed9becb7
Support Spark dynamic partition pruning
Based on PR #687 Co-Authored-By: Zhou Fang <coufon@users.noreply.github.com>
diff --git a/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/BigQueryUtil.java b/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/BigQueryUtil.java index 763538c885..a30d14409c 100644 --- a/bigquery-connector-common/src/main/java/com/google/cloud/bigq...
6
4
0
[{"id": "G0", "claim": "The bot recommends the pull request avoid accepting a Filter[] parameter; extractPartitionFilters should accept an Iterable<Filter> (e.g. ImmutableList) instead.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The bot recommends th...
null
GoogleCloudDataproc__spark-bigquery-connector__914
GoogleCloudDataproc/spark-bigquery-connector
914
defect
aa7f32833297c0e205c44fd0ffb122acc0fa530d
499c3edfffac09fd964a61ff21fbaf73ab681ff6
Adding map type read support
Currently reading ARRAY<STRUCT<key,value>> fields into Spark Map is supported. Write and documentation will be added in additional PR, in order to keep them (relatively) small
diff --git a/spark-bigquery-connector-common/src/main/java/com/google/cloud/spark/bigquery/SchemaConverters.java b/spark-bigquery-connector-common/src/main/java/com/google/cloud/spark/bigquery/SchemaConverters.java index dd5ac1c6b6..18d06ac157 100644 --- a/spark-bigquery-connector-common/src/main/java/com/google/cloud/...
5
3
0
[{"id": "G0", "claim": "The nested MapAccessor class added in ArrowSchemaConverter is unused and can be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "convertMap should compare the field type with field.getType().equals(LegacySQLTypeNam...
null
GoogleCloudDataproc__spark-bigquery-connector__915
GoogleCloudDataproc/spark-bigquery-connector
915
defect
802c5d376fb2f73fda3e5320dcc78f0467c1a78c
dabf02fad2d2bb9aa2a00feaf4c63b8258edb876
Issue #908: setting the preferred min parallelism to be not more than max parallelism
https://github.com/GoogleCloudDataproc/spark-bigquery-connector/issues/908
diff --git a/CHANGES.md b/CHANGES.md index 3f9155ef79..0cce92b80c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -14,6 +14,7 @@ * GAX has been upgraded to version 2.23.0 * gRPC has been upgraded to version 1.53.0 * Netty has been upgraded to version 4.1.89.Final +* PR #915: Fixing the Issue #908 ## 0.28.1 - 2023-02-...
2
2
1
[{"id": "G0", "claim": "The new CHANGES.md entry should be reworded to start with `Issue #908:` instead of `PR #915: Fixing the Issue #908`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When preferredMinStreamCount is larger than maxStreamCount ...
null
GoogleCloudDataproc__spark-bigquery-connector__927
GoogleCloudDataproc/spark-bigquery-connector
927
defect
5f83d7cefb473e6130765756f52f3f16d184f95d
d99a4d1199b61d308650ffee40e7394fa67b9198
Cache ReadSession response
ReadSession creation is a huge bottleneck for performance. Caching the ReadSession response allows queries to reuse the existing ReadSession when we encounter the same table, filters, columns combination.
diff --git a/spark-bigquery-dsv2/spark-bigquery-dsv2-common/src/main/java/com/google/cloud/spark/bigquery/v2/context/BigQueryDataSourceReaderContext.java b/spark-bigquery-dsv2/spark-bigquery-dsv2-common/src/main/java/com/google/cloud/spark/bigquery/v2/context/BigQueryDataSourceReaderContext.java index e986e05d9e..4e4e0...
5
2
0
[{"id": "G0", "claim": "The hardcoded 4-hour read-session cache expiration looks unexplained (how was it computed, is there a heuristic?) and should be made configurable.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "selectedFields is an Optional that c...
null
GoogleCloudDataproc__spark-bigquery-connector__933
GoogleCloudDataproc/spark-bigquery-connector
933
defect
5f83d7cefb473e6130765756f52f3f16d184f95d
922ce9e5d2d69044a1096664f5573db7e4257ce8
additional scan perf tuning.
- Add configuration to control netty flow control window size - Add backpressure to StreamCombining iterator Together these appear to improve over baseline performance when using parameters below by 10-15% over basic line items aggregation (on my cluster 330 seconds to 300 seconds or slightly less). When trying to...
diff --git a/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/BigQueryClientFactory.java b/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/BigQueryClientFactory.java index 91a26da9fb..c8cf476622 100644 --- a/bigquery-connector-common/src/main/java/com...
1
1
0
[{"id": "G0", "claim": "Since the connector uses vanilla Netty that it shades itself (not grpc-shaded-netty), casting the channel builder to NettyChannelBuilder could simplify the reflective duck-typing used to set the flow control window.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scop...
null
GoogleCloudDataproc__spark-bigquery-connector__950
GoogleCloudDataproc/spark-bigquery-connector
950
defect
82dff0b640211aac15e60d495645f80ccbb5ec5d
82905ab2f675eb40459ad047d69243d41a371211
Add support for service account impersonation
This is modeled after the GCS connector's implementation (https://github.com/GoogleCloudDataproc/hadoop-connectors/blob/master/gcs/CONFIGURATION.md#service-account-impersonation).
diff --git a/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/BigQueryClientFactoryConfig.java b/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/BigQueryClientFactoryConfig.java index d0370004a4..bea7734d0a 100644 --- a/bigquery-connector-common/src/m...
5
5
1
[{"id": "G0", "claim": "createCredentialsFromImpersonation should not return null in the no-result case; it should return an Optional (built with map) and the constructor should assign via impersonatedCredentials.orElse(credentials).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
GoogleCloudDataproc__spark-bigquery-connector__965
GoogleCloudDataproc/spark-bigquery-connector
965
defect
9e31d999f8c7e80121b48a32a24d0d28c64189c7
c08f6b628f20cce89324313fdfbe41e935ff22a9
changing the hash from BigQueryConfig to BigQueryClientFactoryConfig
BigQueryConfig doesn't overwrite hashCode() and equals(), causing to create a client for every request.
diff --git a/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/BigQueryClientFactory.java b/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/BigQueryClientFactory.java index d7bbf72638..dd361de58b 100644 --- a/bigquery-connector-common/src/main/java/com...
1
1
0
[{"id": "G0", "claim": "The repeated `new BigQueryClientFactoryConfig(bqConfig)` conversion in hashCode()/equals() should be moved to the constructor to avoid duplication.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleCloudPlatform__DataflowTemplates__2568
GoogleCloudPlatform/DataflowTemplates
2,568
defect
1cd83289a144d5c56be8ea0cf8ffad38068eb38a
40dda7802d0610ed031b4d76ca2ab03e8310766e
Bq to Bt support for sparse data format and user defined cell timestamps
1) Add functionality for user's to not store columns that have null values and adhere to bigtable's sparse data layout. 2) Provide users ability to set cell timestamp's based on a column, e.g. SELECT UNIX_MILLIS(event_ts) as cell_timestamp instead of write time. Test scenarios and results are captured here: htt...
diff --git a/v2/bigquery-to-bigtable/src/main/java/com/google/cloud/teleport/v2/templates/BigQueryToBigtable.java b/v2/bigquery-to-bigtable/src/main/java/com/google/cloud/teleport/v2/templates/BigQueryToBigtable.java index 87575af0d2..fb76e1fe3d 100644 --- a/v2/bigquery-to-bigtable/src/main/java/com/google/cloud/telepo...
7
7
3
[{"id": "G0", "claim": "The BigtableConvertersTest tests are failing and must be fixed.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The code should use either the timestampColumnName parameter or the timestampColumn() method consistently instead ...
null
GoogleCloudPlatform__DataflowTemplates__3265
GoogleCloudPlatform/DataflowTemplates
3,265
defect
1b20d23f2626f4b4e06e23b4cddf92d0fecabb4d
10152304335529b04acd930039720b673f64d00b
Add integration tests to verify table and index limits for live spanner migration from PostgreSQ
**note** This is a rebased version of #3107 . A new PR is created to push this along as @nmemond is not currently available. This adds integration tests to verify table and index limits during live spanner data migration from a PostgreSQL DB. This includes tests for the following limits: max size of a STR...
diff --git a/v2/datastream-to-spanner/src/test/java/com/google/cloud/teleport/v2/templates/DataStreamToSpannerITBase.java b/v2/datastream-to-spanner/src/test/java/com/google/cloud/teleport/v2/templates/DataStreamToSpannerITBase.java index d73c2d3485a..9a447e2df2d 100644 --- a/v2/datastream-to-spanner/src/test/java/com/...
5
5
4
[{"id": "G0", "claim": "The tests must be updated to move dlqMaxRetryCount out of the Additional Job Params (ADDITIONAL_JOB_PARAMS), as done in the referenced commit for the MySQL PG-dialect test.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The spotle...
null
GoogleCloudPlatform__DataflowTemplates__3302
GoogleCloudPlatform/DataflowTemplates
3,302
defect
f2c600c4ca80197a08c11233ea2d85320beabf51
4e9f4fb8f63ff4c9b5a1ee3fc1eac677888ee18d
Add Iceberg to SQL Server YAML template
Added iceberg-to-sqlserver.yaml blueprint and generated wrapper. Implemented IcebergToSqlServerYamlIT integration test. Generated/updated template documentation. Integration tests pass successfully (using Cloud SQL): Dataflow Job ID: 2026-02-02_06_45_54-9397309740239157576
diff --git a/yaml/README_Iceberg_To_SqlServer_Yaml.md b/yaml/README_Iceberg_To_SqlServer_Yaml.md new file mode 100644 index 00000000000..f1ce0778f26 --- /dev/null +++ b/yaml/README_Iceberg_To_SqlServer_Yaml.md @@ -0,0 +1,289 @@ + +Iceberg to SqlServer (YAML) template +--- +The Iceberg to SqlServer template is a batch p...
7
5
4
[{"id": "G0", "claim": "The integration test fails before the template is staged, and the cause may not be the template script itself.", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The WriteToSqlServer config in IcebergToSqlServer.yaml passes field...
null
GoogleCloudPlatform__DataflowTemplates__3336
GoogleCloudPlatform/DataflowTemplates
3,336
defect
18949a0abf341da2275d5d9a5ad71e5e554da471
c9f069d18e363659ad168adb6812978210fb2710
upgrade Debezium to 3.3.2
Fixes #2911 as the upgrade is a breaking change.
diff --git a/v2/cdc-parent/cdc-embedded-connector/src/main/java/com/google/cloud/dataflow/cdc/connector/DebeziumToPubSubDataSender.java b/v2/cdc-parent/cdc-embedded-connector/src/main/java/com/google/cloud/dataflow/cdc/connector/DebeziumToPubSubDataSender.java index 455c881ecf1..77aea9f4f20 100644 --- a/v2/cdc-parent/c...
1
1
0
[{"id": "G0", "claim": "The cdc-embedded-connector module has no integration test coverage, so the functionality of this change needs to be confirmed manually (following the steps in b/417134605).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}]
null
GoogleCloudPlatform__DataflowTemplates__3483
GoogleCloudPlatform/DataflowTemplates
3,483
defect
3c5c4b5e593583b41a69fa985777c59bbf4ffed3
cc36319d7232651d83ddebbe07e85f3d30db8ba1
Adding schema loader transform to cdc data generator
# Add Schema Fetching Abstraction for CDC Data Generator This PR introduces a flexible mechanism for fetching schemas from various sinks (Spanner, MySQL) to be used with the CDC Data Generator. ## Key Features & Components: * **`SinkSchemaFetcher` Interface:** A common interface (`com.google.cloud.teleport.v...
diff --git a/v2/cdc-data-generator/src/main/java/com/google/cloud/teleport/v2/templates/CdcDataGeneratorOptions.java b/v2/cdc-data-generator/src/main/java/com/google/cloud/teleport/v2/templates/CdcDataGeneratorOptions.java new file mode 100644 index 0000000000..f98d5a7bd8 --- /dev/null +++ b/v2/cdc-data-generator/src/m...
6
4
0
[{"id": "G0", "claim": "The sink configuration passed to FetchSchemaFn should not always be a plain string; a container of the config or a link to the sink itself might make more sense.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "FetchSchemaFn should ...
null
GoogleCloudPlatform__DataflowTemplates__3533
GoogleCloudPlatform/DataflowTemplates
3,533
defect
7264b3a1b29169183af5a0df58e979a801c12c08
abf90d02efb6b48d4acb440ac8281f6f4aa47f1d
Fix Python Flex Template staging
support setup.py, directories, and split requirements Requirements files Python templates now use two requirements files: - requirements_all.txt: full pip-compile lockfile. Used at Docker build time to install all deps into the template launcher image. This is the default and is required. - requirements.txt (op...
diff --git a/plugins/core-plugin/src/main/java/com/google/cloud/teleport/plugin/DockerfileGenerator.java b/plugins/core-plugin/src/main/java/com/google/cloud/teleport/plugin/DockerfileGenerator.java index 9d96e4ecff..0d3f4bd2ac 100644 --- a/plugins/core-plugin/src/main/java/com/google/cloud/teleport/plugin/DockerfileGe...
3
2
1
[{"id": "G0", "claim": "Dependencies from setup.py should also be downloaded into the worker requirements cache (a pip download step for the local package) so Dataflow workers get them from the cache instead of fetching them from PyPI.", "category": "performance", "verdict": "opposed", "priority": "P1", "scope": "intro...
null
GoogleCloudPlatform__DataflowTemplates__3535
GoogleCloudPlatform/DataflowTemplates
3,535
defect
36935dc235a589d988a56da8aca7167a545103b4
5e65643b0f9e76d50bf55eb18612139b3fe27949
Fix DLQ infinite retry loop via hybrid consumption model
b/417382738 [Design Doc](https://docs.google.com/document/d/1o3E9gaPHgWwkJQ1YCti1r4_DRd1QhkFpR07F9nOCDLI/edit?resourcekey=0-e9fjBslin6xh7PzU18zm1w&tab=t.6dxj0lph2n28#heading=h.nfuj87i7ipzm) This PR resolves an infinite reprocessing loop when handling severe errors in retryDLQ mode. ## Key Changes 2 retry modes ...
diff --git a/v2/common/src/main/java/com/google/cloud/teleport/v2/cdc/dlq/DeadLetterQueueManager.java b/v2/common/src/main/java/com/google/cloud/teleport/v2/cdc/dlq/DeadLetterQueueManager.java index 4aece1d8fa..97c8d3a308 100644 --- a/v2/common/src/main/java/com/google/cloud/teleport/v2/cdc/dlq/DeadLetterQueueManager.j...
2
2
2
[{"id": "G0", "claim": "In retryDLQ mode the pipeline reads from both the retry/ directory (continuous) and the severe/ directory (one-shot), and this overlap with the retry handling of a concurrently running live/reverse pipeline may lead to odd behaviour; ideally the transform should pick only severe files.", "catego...
null
GoogleCloudPlatform__DataflowTemplates__3580
GoogleCloudPlatform/DataflowTemplates
3,580
defect
19f00a752186237db06d8f8fd4892847b1a48fef
89740cdecb75a31ee12936e5867db13702642a7d
feat(Datastream): Add SQL Server (MSSQL) source support
## Summary - Add full SQL Server (MSSQL) CDC source support to the Datastream-to-BigQuery pipeline - SQL Server metadata extraction (`_metadata_schema`, `_metadata_lsn`, `_metadata_tx_id`) in both Avro and JSON format paths - SQL Server sort key definitions (`_metadata_timestamp`, `_metadata_lsn`) for BigQuery MERGE o...
diff --git a/v2/common/src/main/java/com/google/cloud/teleport/v2/cdc/mappers/BigQueryDefaultSchemas.java b/v2/common/src/main/java/com/google/cloud/teleport/v2/cdc/mappers/BigQueryDefaultSchemas.java index 9e97019237..03f55facf0 100644 --- a/v2/common/src/main/java/com/google/cloud/teleport/v2/cdc/mappers/BigQueryDefa...
1
1
0
[{"id": "G0", "claim": "Merging the postgresql and sqlserver branches into one combined condition with shared metadata logic is not safe; the reviewer asks for a separate sql server condition with its own logic, even if identical in the end.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sc...
null
GoogleCloudPlatform__DataflowTemplates__3619
GoogleCloudPlatform/DataflowTemplates
3,619
defect
9421ad6effbd2777f37e872a9cd7603344b2154d
b6147d034acd7e1995c120753a73b09d1e99822f
Added support for PostgreSQL dialect in reverse replication
## Overview The template can now read data from a Cloud Spanner database configured with the PostgreSQL dialect and migrate it to source database ## Key Changes - **Spanner Reading Logic**: Updated `SpannerReadUtils` to handle PostgreSQL dialect positional parameters (`$1`, `$2`) and PG-specific query hints (repla...
diff --git a/v2/spanner-common/src/main/java/com/google/cloud/teleport/v2/spanner/migrations/spanner/SpannerReadUtils.java b/v2/spanner-common/src/main/java/com/google/cloud/teleport/v2/spanner/migrations/spanner/SpannerReadUtils.java index cd80db5bf1..8e8993459d 100644 --- a/v2/spanner-common/src/main/java/com/google/...
5
5
2
[{"id": "G0", "claim": "Typecasting the bound value to Timestamp may not retain timezone information (possibly also in existing code); the reviewer asks to evaluate whether this is safe and, if it is, add comments to help future readers.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "i...
null
GoogleCloudPlatform__DataflowTemplates__3632
GoogleCloudPlatform/DataflowTemplates
3,632
defect
574726cb930f20d2db55f8e5e862cc6b01513f13
479457df315393b74b142635c2141f7930840a25
Add parameter to set maxNumRows for dataflow jobs
Added support to add a runtime parameter `-maxNumRows` when running `glcoud dataflow jobs run` Currently the default value for this flag is 500.
diff --git a/v1/src/main/java/com/google/cloud/teleport/spanner/TextImportPipeline.java b/v1/src/main/java/com/google/cloud/teleport/spanner/TextImportPipeline.java index bf49c32b63..abff0dc41a 100644 --- a/v1/src/main/java/com/google/cloud/teleport/spanner/TextImportPipeline.java +++ b/v1/src/main/java/com/google/clou...
4
3
0
[{"id": "G0", "claim": "The pull request should add a few details on the use case for exposing the maxNumRows parameter.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The added LOG.info line in processElement is leftover debug logging and should ...
null
GoogleCloudPlatform__DataflowTemplates__3643
GoogleCloudPlatform/DataflowTemplates
3,643
defect
2756d24c4bfc8a78995d1c9dd980ea50d4947b05
5970e48dd2330ced75078ee836c32707e697a234
Added logic for dag creation and weighted table selection
# Refactor CDC Data Generator DAG & Weights This PR refactors the `cdc-data-generator` module to support proper dependency handling between tables and accurate weighted selection for cascading data generation. ## Key Changes ### CDC Data Generator Enhancements - **DAG Construction**: Implemented logic in `Sch...
diff --git a/v2/cdc-data-generator/src/main/java/com/google/cloud/teleport/v2/templates/model/DataGeneratorTable.java b/v2/cdc-data-generator/src/main/java/com/google/cloud/teleport/v2/templates/model/DataGeneratorTable.java index 3ada0fcf63..ed6198491a 100644 --- a/v2/cdc-data-generator/src/main/java/com/google/cloud/...
4
3
0
[{"id": "G0", "claim": "The `getOrDefault(table.name(), 0.0)` in buildSelectionMap is unnecessary since tableWeights is filled in right above; instead of defaulting to 0.0 it might make sense to fail fast if a later bug causes a missing table, as UT coverage should catch those issues on failure.", "category": "maintain...
null
GoogleCloudPlatform__DataflowTemplates__3685
GoogleCloudPlatform/DataflowTemplates
3,685
defect
72a145d6c12ec852bfd1fd482c62bab48202c3e9
1ef95aaa95cc965fbbc81a432e8c736ca568b718
POJOs for MultiShard TableReader.
# Foundations for Multi-Shard Routing (POJOs) This is the first child of #3684 ## Design Decision This PR introduces the foundational data models and services required to support multi-shard JDBC migrations. ### Key Components: - **`JdbcIoWrapperConfigGroup`**: A container that aggregates multiple `JdbcIOWr...
diff --git a/v2/sourcedb-to-spanner/src/main/java/com/google/cloud/teleport/v2/source/reader/io/jdbc/iowrapper/config/JdbcIoWrapperConfigGroup.java b/v2/sourcedb-to-spanner/src/main/java/com/google/cloud/teleport/v2/source/reader/io/jdbc/iowrapper/config/JdbcIoWrapperConfigGroup.java new file mode 100644 index 00000000...
1
1
1
[{"id": "G0", "claim": "The plain HashMap holding the dataSources is not thread-safe: when one thread puts a new shard under the lock (a structural modification that can resize the map), another thread's unsynchronized get may return a corrupted value, so a concurrent-safe map should be used.", "category": "correctness...
null
GoogleCloudPlatform__DataflowTemplates__3712
GoogleCloudPlatform/DataflowTemplates
3,712
defect
356f8483b068ae368a6bebfe5ccce079d010d95b
b3d9ad16865829fd3585877f00e157ac4aeb3b0f
Adding MySQL data writer in data generator
# PR Description: Introduce MySqlDataWriter and Refactor Connection Helpers ## Goal This PR introduces the `MySqlDataWriter` and related infrastructure in the `cdc-data-generator` module to support writing generated data to MySQL. Additionally, it refactors database connection helper classes by moving them from `sp...
diff --git a/v2/cdc-data-generator/src/main/java/com/google/cloud/teleport/v2/templates/mysql/MySqlDataWriter.java b/v2/cdc-data-generator/src/main/java/com/google/cloud/teleport/v2/templates/mysql/MySqlDataWriter.java new file mode 100644 index 0000000000..f367f78321 --- /dev/null +++ b/v2/cdc-data-generator/src/main/...
1
1
1
[{"id": "G0", "claim": "The DataWriter API should not take the operation as a String constant; it should use an Enum for type safety or, preferably (per the reviewer's lean), separate Insert/Update/Delete methods that remove the switch case from each dialect implementation.", "category": "design", "verdict": "supported...
null
GoogleCloudPlatform__DataflowTemplates__3729
GoogleCloudPlatform/DataflowTemplates
3,729
defect
797ddbf9d1439508004cb0b43f0afbd06e7a853e
68ad9a654adf668bb0adc2404d23b77979a3398c
Adding pTransform for generate ticks to match specified qps
# PR Description ## Summary This PR introduces a new mechanism to dynamically scale the data generation tick rate to match the total requested QPS for root tables defined in the schema. It adds a new `PTransform` and `DoFn` to handle both rate reduction and amplification at runtime. ## Key Changes #### [NEW] ...
diff --git a/v2/cdc-data-generator/src/main/java/com/google/cloud/teleport/v2/templates/dofn/ScaleTicksFn.java b/v2/cdc-data-generator/src/main/java/com/google/cloud/teleport/v2/templates/dofn/ScaleTicksFn.java new file mode 100644 index 0000000000..d4e0a10133 --- /dev/null +++ b/v2/cdc-data-generator/src/main/java/com...
2
2
1
[{"id": "G0", "claim": "The fixed `baseTickRate` and the rate-reduction logic may not be needed, and the DoFn could be simplified.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G5", "claim": "A zero or negative total root QPS (a configuration error) is currently swall...
null
GoogleCloudPlatform__DataflowTemplates__3738
GoogleCloudPlatform/DataflowTemplates
3,738
defect
39667f8e5505edcdd9fcf9de3789db1b8a1595ca
1958024683b2f56c9127b5b608f9c4c200b748e7
Adding generate primary key transform in data generator
This PR introduces synthetic primary key generation for the CDC Data Generator. ## High-Level Changes (New Files) ### Primary Key Generation - **`GeneratePrimaryKey.java` & `GeneratePrimaryKeyFn.java`**: Introduced a new `PTransform` and associated `DoFn` to generate synthetic primary-key `Row`s for tables. The ge...
diff --git a/v2/cdc-data-generator/pom.xml b/v2/cdc-data-generator/pom.xml index 742269dada..9e0458fe3c 100644 --- a/v2/cdc-data-generator/pom.xml +++ b/v2/cdc-data-generator/pom.xml @@ -43,6 +43,11 @@ <artifactId>commons-math3</artifactId> <version>3.6.1</version> </dependency> + ...
4
3
0
[{"id": "G0", "claim": "When a table has no primary-key columns, the DoFn should perhaps raise an error (and optionally assert and fail the pipeline) instead of only logging and skipping.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "DataGeneratorTable....
null
GoogleCloudPlatform__DataflowTemplates__3746
GoogleCloudPlatform/DataflowTemplates
3,746
defect
00480aba2ed6e724b5de04ae59352541ad602b3a
808367d5ebad4196f39c5b55c8d38aa59f79561f
Apply schema config overrides for data generator
### Description This Pull Request introduces a schema configuration override system and an enhanced schema dependency mapping implementation for the distributed Data Generator pipeline (`v2/cdc-data-generator`). This enables custom data generation rates (QPS limits), Java Faker expressions integration for column-level...
diff --git a/v2/cdc-data-generator/pom.xml b/v2/cdc-data-generator/pom.xml index 742269dada..fdca650756 100644 --- a/v2/cdc-data-generator/pom.xml +++ b/v2/cdc-data-generator/pom.xml @@ -75,6 +75,14 @@ <version>${json.version}</version> </dependency> + + <!-- Java Faker for data generatio...
14
14
5
[{"id": "G0", "claim": "The constructor assigns Integer QPS parameters to int fields, which will throw a NullPointerException during unboxing if any QPS parameter is null; the fields should be Integer with nulls handled during the override process.", "category": "correctness", "verdict": "supported", "priority": "P1", ...
null
GoogleCloudPlatform__DataflowTemplates__3747
GoogleCloudPlatform/DataflowTemplates
3,747
defect
5874e81ddea50304152ed9750425bd737686c84d
2d2a753fa6d88c9e68e4dde760a5bde79dd77bfb
Optimize Schema Processing and Add 5k Table Load Test for Spanner to SourceDb
* **`SpannerToSourceDb.java`**: * Added a new optional template parameter `changeStreamMetadataDatabase` to allow storing change stream connector metadata in a separate database. If not provided, it defaults to `metadataDatabase`. * **`ProcessInformationSchemaFn.java`**: * Refactored to move shadow...
diff --git a/v2/spanner-to-sourcedb/src/main/java/com/google/cloud/teleport/v2/templates/SpannerToSourceDb.java b/v2/spanner-to-sourcedb/src/main/java/com/google/cloud/teleport/v2/templates/SpannerToSourceDb.java index fff701cd9e..8934fb6dff 100644 --- a/v2/spanner-to-sourcedb/src/main/java/com/google/cloud/teleport/v2...
6
3
0
[{"id": "G0", "claim": "The DDL wait timeout in ShadowTableCreator (15 minutes) disagrees with the 30-minute timeout stubbed in ShadowTableCreatorTest, and since creating 5000 shadow tables can be a time-consuming DDL operation the implementation should be aligned with the test at 30 minutes.", "category": "correctness...
null