Repository navigation
Destination Bigquery: Replace usages of untyped JsonNode with Typed execution config - #32147
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Before Merging a Connector Pull RequestWow! What a great pull request you have here! 🎉 To merge this PR, ensure the following has been done/considered for each connector added or updated:
If the checklist is complete, but the CI check is failing,
|
| LOGGER.error("BigQuery client Chunk (buffer) size must be a positive number (MB), but was:" + bigQueryClientChunkSize); | ||
| throw new IllegalArgumentException("BigQuery client Chunk (buffer) size must be a positive number (MB)"); | ||
| } | ||
| writer.setChunkSize(bigQueryClientChunkSize * BigQueryConsts.MiB); |
There was a problem hiding this comment.
This logic existed before in BigQueryUtils when extracting the value from JsonNode
| private Map<UploaderType, BigQueryRecordFormatter> formatterMap; | ||
| private boolean isDefaultAirbyteTmpSchema; | ||
| private String datasetLocation; | ||
| private boolean gcsUploadingMode; |
There was a problem hiding this comment.
This seems to be a remnant when this code path was exercised for standard and GCS. now they are split with this as always false.
| def commonRequiredFields = requiredFieldsList.inject {acc, list -> acc.intersect(list)} | ||
| commonRequiredFields.each {fieldname -> | ||
| def requiredObjectFromOneOf = property.value.oneOf.first()['properties'][fieldname as String] | ||
| property.value.properties = [(fieldname):requiredObjectFromOneOf] |
There was a problem hiding this comment.
this could also be represented as an enum with the values of const field, worried it might become too rigid incase we decide to change it later.
|
can you post the generated files to a gist or something? it would help to visualize what's actually happening under the hood |
https://gist.github.com/gisripa/8bfa5cc5b37348c7240c3831a488e637 |
f60039d to
93bac01
Compare
8b543ce to
f30eafd
Compare
917d688 to
ab7bdf1
Compare
f6db7bc to
6c4fc17
Compare
Signed-off-by: Gireesh Sreepathi <gisripa@gmail.com>
Signed-off-by: Gireesh Sreepathi <gisripa@gmail.com>
Signed-off-by: Gireesh Sreepathi <gisripa@gmail.com>
545025a to
8f00a91
Compare
What
Generate typed classes from spec.json and construct any derived fields into ExecutionConfig data object
Enhancement for #31795
Recommended reading order
x.javay.python🚨 User Impact 🚨
Are there any breaking changes? What is the end result perceived by the user?
For connector PRs, use this section to explain which type of semantic versioning bump occurs as a result of the changes. Refer to our Semantic Versioning for Connectors guidelines for more information. Breaking changes to connectors must be documented by an Airbyte engineer (PR author, or reviewer for community PRs) by using the Breaking Change Release Playbook.
If there are breaking changes, please merge this PR with the 🚨🚨 emoji so changelog authors can further highlight this if needed.
Pre-merge Actions
Expand the relevant checklist and delete the others.
New Connector
Community member or Airbyter
./gradlew :airbyte-integrations:connectors:<name>:integrationTest.0.0.1Dockerfilehas version0.0.1README.mdbootstrap.md. See description and examplesdocs/integrations/<source or destination>/<name>.mdincluding changelog with an entry for the initial version. See changelog exampledocs/integrations/README.mdAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
Updating a connector
Community member or Airbyter
Airbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
Connector Generator
-scaffoldin their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:generateScaffoldsthen checking in your changesUpdating the Python CDK
Airbyter
Before merging:
--use-local-cdk --name=source-<connector>as optionsairbyte-ci connectors --use-local-cdk --name=source-<connector> testAfter merging: