Skip to content
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

spark, bigquery: support query option on table read #2556

Merged
merged 1 commit into from Apr 3, 2024

Conversation

mobuchowski
Copy link
Member

This PR adds support for Spark-BigQuery connector's query input option, which executes query directly on BigQuery, storing result in intermediate dataset, bypassing Spark's computation layer. Due to this, the lineage is retrieved using SQL parser, similar to JDBCRelation.

@mobuchowski mobuchowski force-pushed the spark/bigquery-support-query-option branch 2 times, most recently from c1b9a2b to 7d67dfd Compare April 2, 2024 16:36
Copy link
Contributor

@pawel-big-lebowski pawel-big-lebowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hoping this is going to be the last change within this class 💯

integration/spark/build.gradle Outdated Show resolved Hide resolved
String.format("%s.%s.%s_source_query_test", PROJECT_ID, DATASET_ID, VERSION_NAME);
String target_table =
String.format("%s.%s.%s_target_query_test", PROJECT_ID, DATASET_ID, VERSION_NAME);
String source_query = String.format("SELECT * FROM %s", source_table);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like test as it verifier exactly what the PR is doing. tip-top. work Maciej

@mobuchowski mobuchowski force-pushed the spark/bigquery-support-query-option branch from 7d67dfd to a777b0f Compare April 3, 2024 10:32
Signed-off-by: Maciej Obuchowski <obuchowski.maciej@gmail.com>
@mobuchowski mobuchowski force-pushed the spark/bigquery-support-query-option branch from a777b0f to cf23706 Compare April 3, 2024 10:33
@mobuchowski mobuchowski merged commit 9cb16d0 into main Apr 3, 2024
32 checks passed
@mobuchowski mobuchowski deleted the spark/bigquery-support-query-option branch April 3, 2024 11:08
blacklight pushed a commit to blacklight/OpenLineage that referenced this pull request Apr 4, 2024
Signed-off-by: Maciej Obuchowski <obuchowski.maciej@gmail.com>
Signed-off-by: Fabio Manganiello <fabio@manganiello.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants