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

Use idiom query runner setup to close on failure #21584

Closed
wants to merge 13 commits into from

Conversation

findepi
Copy link
Member

@findepi findepi commented Apr 17, 2024

No description provided.

findepi added 2 commits April 17, 2024 09:57
Move query runner setup to createQueryRunner in Iceberg MV tests.
@findepi findepi added test no-release-notes This pull request does not require release notes entry labels Apr 17, 2024
@cla-bot cla-bot bot added the cla-signed label Apr 17, 2024
@github-actions github-actions bot added the iceberg Iceberg connector label Apr 17, 2024
@github-actions github-actions bot added delta-lake Delta Lake connector bigquery BigQuery connector mongodb MongoDB connector labels Apr 17, 2024
findepi added 9 commits April 17, 2024 12:48
The method was skipping all the state configured in the builder, so it
was just a hack. Replace with proper setup for custom connector
properties.
Replace dedicated configuration setters (some unused) with connector
configuration properties (as typically done in other query builders).
Typically query runner implementations provide builder as part of the
main query runner class. Adjust `TpchQueryRunner` to follow the suite,
moving `TpchQueryRunnerBuilder` to be an inner class.
Additional setup functionality is provided generically by
DistributedQueryRunner and happened before subclass's build, which
often installs a catalog, copies data. This was a non-intuitive
control flow. Move the additional setup invocation after the query
runner is built by moving the subclass's build logic from build override
to a new configure method.
@github-actions github-actions bot added tests:hive hive Hive connector labels Apr 17, 2024
@findepi findepi closed this Apr 17, 2024
@findepi findepi deleted the findepi/refact branch April 17, 2024 11:12
@findepi
Copy link
Member Author

findepi commented Apr 17, 2024

replaced with a PR that will run with secrets #21588

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bigquery BigQuery connector cla-signed delta-lake Delta Lake connector hive Hive connector iceberg Iceberg connector mongodb MongoDB connector no-release-notes This pull request does not require release notes entry test
Development

Successfully merging this pull request may close these issues.

2 participants