-
Notifications
You must be signed in to change notification settings - Fork 8
fix: extract out materialization props #223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe pull request involves modifications to the Changes
Possibly related PRs
Suggested Reviewers
Poem
Warning Review ran into problems🔥 ProblemsGitHub Actions: Resource not accessible by integration - https://docs.github.com/rest/actions/workflow-runs#list-workflow-runs-for-a-repository. Please grant the required permissions to the CodeRabbit GitHub App under the organization or repository settings. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ Context from checks skipped due to timeout of 90000ms (2)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
| // todo(tchow): No longer needed after https://github.com/GoogleCloudDataproc/spark-bigquery-connector/pull/1320 | ||
| "temporaryGcsBucket" -> sparkSession.conf.get("spark.chronon.table.gcs.temporary_gcs_bucket"), | ||
| "writeMethod" -> "indirect" | ||
| "writeMethod" -> "direct", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in later versions of the spark-bigquery connector, direct writes do support partitioned tables.
Co-authored-by: Thomas Chow <[email protected]> Co-authored-by: Thomas Chow <[email protected]>
Co-authored-by: Thomas Chow <[email protected]> Co-authored-by: Thomas Chow <[email protected]>
Co-authored-by: Thomas Chow <[email protected]> Co-authored-by: Thomas Chow <[email protected]>
42ca88f to
55945aa
Compare
## Summary Writing to bigquery partitioned tables involves creating bq temp table first. The temp table is created within the specified project + dataset of the destination table however we are running into an issue where the connector is unable to extract those information from the provided destination table id: ``` com.google.cloud.spark.bigquery.repackaged.com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) [Guice/ErrorInCustomProvider]: IllegalArgumentException: Provided dataset is null or empty at BigQueryDataSourceWriterModule.provideDirectDataSourceWriterContext(BigQueryDataSourceWriterModule.java:63) while locating BigQueryDirectDataSourceWriterContext ``` so let's configure this as writeoptions on our side, which allows the connector to pick those up. A successful run: https://console.cloud.google.com/dataproc/jobs/289ba1b4-b029-42b7-912d-4dad109f5dc9/monitoring?region=us-central1&project=canary-443022 ## Checklist - [ ] Added Unit Tests - [ ] Covered by existing CI - [ ] Integration tested - [ ] Documentation update <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Summary by CodeRabbit - **Refactor** - Removed utility methods for table and database management in the application. - Simplified build configuration and dependency management. - Updated data writing configuration for improved integration with BigQuery. - **Chores** - Minor formatting adjustments in build settings for improved readability. - Cleaned up commented dependencies. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- - To see the specific tasks where the Asana app for GitHub is being used, see below: - https://app.asana.com/0/0/1209143482009694 <!-- av pr metadata This information is embedded by the av CLI when creating PRs to track the status of stacks when using Aviator. Please do not delete or edit this section of the PR. ``` {"parent":"main","parentHead":"","trunk":"main"} ``` --> --------- Co-authored-by: Thomas Chow <[email protected]>
## Summary Writing to bigquery partitioned tables involves creating bq temp table first. The temp table is created within the specified project + dataset of the destination table however we are running into an issue where the connector is unable to extract those information from the provided destination table id: ``` com.google.cloud.spark.bigquery.repackaged.com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) [Guice/ErrorInCustomProvider]: IllegalArgumentException: Provided dataset is null or empty at BigQueryDataSourceWriterModule.provideDirectDataSourceWriterContext(BigQueryDataSourceWriterModule.java:63) while locating BigQueryDirectDataSourceWriterContext ``` so let's configure this as writeoptions on our side, which allows the connector to pick those up. A successful run: https://console.cloud.google.com/dataproc/jobs/289ba1b4-b029-42b7-912d-4dad109f5dc9/monitoring?region=us-central1&project=canary-443022 ## Checklist - [ ] Added Unit Tests - [ ] Covered by existing CI - [ ] Integration tested - [ ] Documentation update <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Summary by CodeRabbit - **Refactor** - Removed utility methods for table and database management in the application. - Simplified build configuration and dependency management. - Updated data writing configuration for improved integration with BigQuery. - **Chores** - Minor formatting adjustments in build settings for improved readability. - Cleaned up commented dependencies. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- - To see the specific tasks where the Asana app for GitHub is being used, see below: - https://app.asana.com/0/0/1209143482009694 <!-- av pr metadata This information is embedded by the av CLI when creating PRs to track the status of stacks when using Aviator. Please do not delete or edit this section of the PR. ``` {"parent":"main","parentHead":"","trunk":"main"} ``` --> --------- Co-authored-by: Thomas Chow <[email protected]>
## Summary Writing to bigquery partitioned tables involves creating bq temp table first. The temp table is created within the specified project + dataset of the destination table however we are running into an issue where the connector is unable to extract those information from the provided destination table id: ``` com.google.cloud.spark.bigquery.repackaged.com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) [Guice/ErrorInCustomProvider]: IllegalArgumentException: Provided dataset is null or empty at BigQueryDataSourceWriterModule.provideDirectDataSourceWriterContext(BigQueryDataSourceWriterModule.java:63) while locating BigQueryDirectDataSourceWriterContext ``` so let's configure this as writeoptions on our side, which allows the connector to pick those up. A successful run: https://console.cloud.google.com/dataproc/jobs/289ba1b4-b029-42b7-912d-4dad109f5dc9/monitoring?region=us-central1&project=canary-443022 ## Checklist - [ ] Added Unit Tests - [ ] Covered by existing CI - [ ] Integration tested - [ ] Documentation update <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Summary by CodeRabbit - **Refactor** - Removed utility methods for table and database management in the application. - Simplified build configuration and dependency management. - Updated data writing configuration for improved integration with BigQuery. - **Chores** - Minor formatting adjustments in build settings for improved readability. - Cleaned up commented dependencies. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- - To see the specific tasks where the Asana app for GitHub is being used, see below: - https://app.asana.com/0/0/1209143482009694 <!-- av pr metadata This information is embedded by the av CLI when creating PRs to track the status of stacks when using Aviator. Please do not delete or edit this section of the PR. ``` {"parent":"main","parentHead":"","trunk":"main"} ``` --> --------- Co-authored-by: Thomas Chow <[email protected]>
## Summary Writing to bigquery partitioned tables involves creating bq temp table first. The temp table is created within the specified project + dataset of the destination table however we are running into an issue where the connector is unable to extract those information from the provided destination table id: ``` com.google.cloud.spark.bigquery.repackaged.com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) [Guice/ErrorInCustomProvider]: IllegalArgumentException: Provided dataset is null or empty at BigQueryDataSourceWriterModule.provideDirectDataSourceWriterContext(BigQueryDataSourceWriterModule.java:63) while locating BigQueryDirectDataSourceWriterContext ``` so let's configure this as writeoptions on our side, which allows the connector to pick those up. A successful run: https://console.cloud.google.com/dataproc/jobs/289ba1b4-b029-42b7-912d-4dad109f5dc9/monitoring?region=us-central1&project=canary-443022 ## Checklist - [ ] Added Unit Tests - [ ] Covered by existing CI - [ ] Integration tested - [ ] Documentation update <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Summary by CodeRabbit - **Refactor** - Removed utility methods for table and database management in the application. - Simplified build configuration and dependency management. - Updated data writing configuration for improved integration with BigQuery. - **Chores** - Minor formatting adjustments in build settings for improved readability. - Cleaned up commented dependencies. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- - To see the specific tasks where the Asana app for GitHub is being used, see below: - https://app.asana.com/0/0/1209143482009694 <!-- av pr metadata This information is embedded by the av CLI when creating PRs to track the status of stacks when using Aviator. Please do not delete or edit this section of the PR. ``` {"parent":"main","parentHead":"","trunk":"main"} ``` --> --------- Co-authored-by: Thomas Chow <[email protected]>
## Summary Writing to bigquery partitioned tables involves creating bq temp table first. The temp table is created within the specified project + dataset of the destination table however we are running into an issue where the connector is unable to extract those information from the provided destination table id: ``` com.google.cloud.spark.bigquery.repaour clientsaged.com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) [Guice/ErrorInCustomProvider]: IllegalArgumentException: Provided dataset is null or empty at BigQueryDataSourceWriterModule.provideDirectDataSourceWriterContext(BigQueryDataSourceWriterModule.java:63) while locating BigQueryDirectDataSourceWriterContext ``` so let's configure this as writeoptions on our side, which allows the connector to piour clients those up. A successful run: https://console.cloud.google.com/dataproc/jobs/289ba1b4-b029-42b7-912d-4dad109f5dc9/monitoring?region=us-central1&project=canary-443022 ## Cheour clientslist - [ ] Added Unit Tests - [ ] Covered by existing CI - [ ] Integration tested - [ ] Documentation update <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Summary by CodeRabbit - **Refactor** - Removed utility methods for table and database management in the application. - Simplified build configuration and dependency management. - Updated data writing configuration for improved integration with BigQuery. - **Chores** - Minor formatting adjustments in build settings for improved readability. - Cleaned up commented dependencies. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- - To see the specific tasks where the Asana app for GitHub is being used, see below: - https://app.asana.com/0/0/1209143482009694 <!-- av pr metadata This information is embedded by the av CLI when creating PRs to traour clients the status of staour clientss when using Aviator. Please do not delete or edit this section of the PR. ``` {"parent":"main","parentHead":"","trunk":"main"} ``` --> --------- Co-authored-by: Thomas Chow <[email protected]>
Summary
Writing to bigquery partitioned tables involves creating bq temp table first. The temp table is created within the specified project + dataset of the destination table however we are running into an issue where the connector is unable to extract those information from the provided destination table id:
so let's configure this as writeoptions on our side, which allows the connector to pick those up.
A successful run: https://console.cloud.google.com/dataproc/jobs/289ba1b4-b029-42b7-912d-4dad109f5dc9/monitoring?region=us-central1&project=canary-443022
Checklist
Summary by CodeRabbit
Summary by CodeRabbit
Refactor
Chores