Skip to content

Allow skipping view materialization in BigQuery#12210

Merged
ebyhr merged 1 commit intomasterfrom
ebi/bigquery-skip-view-materialization
May 12, 2022
Merged

Allow skipping view materialization in BigQuery#12210
ebyhr merged 1 commit intomasterfrom
ebi/bigquery-skip-view-materialization

Conversation

@ebyhr
Copy link
Copy Markdown
Member

@ebyhr ebyhr commented May 2, 2022

Description

Allow skipping view materialization in BigQuery.
Also, we can easily support other table types (e.g. MV, wildcard tables) using the new page source.

Documentation

(x) Sufficient documentation is included in this PR.

Release notes

(x) Release notes entries required with the following suggested text:

# BigQuery
* Allow skipping view materialization via `bigquery.skip-view-materialization` config property. ({issue}`12210`)

@cla-bot cla-bot bot added the cla-signed label May 2, 2022
@ebyhr ebyhr requested review from hashhar and wendigo May 2, 2022 14:41
@github-actions github-actions bot added the docs label May 2, 2022
@ebyhr ebyhr requested a review from Praveen2112 May 9, 2022 08:11
Copy link
Copy Markdown
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

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

Skimmed, will revisit. Looks good generally.

import static java.time.temporal.ChronoField.NANO_OF_SECOND;
import static java.util.Objects.requireNonNull;

public class BigQueryQueryPageSource
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Very nice implementation having different page sources for different use-cases. This also means that at some point we can have some logic to decide when to use storage API vs query API.

@ebyhr ebyhr force-pushed the ebi/bigquery-skip-view-materialization branch from 4ac431c to bfedda0 Compare May 10, 2022 08:54
@ebyhr ebyhr requested a review from hashhar May 12, 2022 01:20
Copy link
Copy Markdown
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

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

LGTM % comments

@ebyhr ebyhr force-pushed the ebi/bigquery-skip-view-materialization branch from bfedda0 to cb38f73 Compare May 12, 2022 07:24
@ebyhr ebyhr merged commit 124a689 into master May 12, 2022
@ebyhr ebyhr deleted the ebi/bigquery-skip-view-materialization branch May 12, 2022 08:06
@ebyhr ebyhr mentioned this pull request May 12, 2022
@github-actions github-actions bot added this to the 381 milestone May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants