Repository navigation
Conversation
Clustering and time/range partitioning from a load job were dropped when the destination table was created. This applies them to both the multipart/resumable upload path and the GCS import path, which share uploadContentHandler.Handle. Refs #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A CDC landing
load_table_from_filesends clustering and time-partitioning options along with the load job.uploadContentHandler.Handlecreated the destination table with onlySchemaandTableReference, dropping those options. This forwardsclustering,timePartitioningandrangePartitioningto table insertion.The
400failure surface for this load shape is addressed by the previous rung (#6 / PR #12), which makes the small multipart upload return a terminal job status; this rung completes the load configuration handling by persisting the options on the table.Changes
server/handler.go: destination table created by a load carries the job's clustering and partitioning configuration. The multipart/resumable upload path and the GCS import path both go through this handler, so both are covered.server/server_test.go:TestCDCLoadOptionsAreAppliedsends a Python-client-shaped CDC landing load withcreateDisposition,writeDisposition,decimalTargetTypes,schemaUpdateOptions,clustering,timePartitioningand asserts the table metadata.Verification
go test ./server ./internal/... ./types— all green.Stack
Rung 2, based on
stack/01-load-json-400(PR #12). Next: #8 (NUMERIC parameters).Refs #7