Skip to content

Migrate to BaseConnectorTest in BigQuery#11108

Merged
ebyhr merged 5 commits intomasterfrom
ebi/bigquery-connector-test
Feb 25, 2022
Merged

Migrate to BaseConnectorTest in BigQuery#11108
ebyhr merged 5 commits intomasterfrom
ebi/bigquery-connector-test

Conversation

@ebyhr
Copy link
Copy Markdown
Member

@ebyhr ebyhr commented Feb 19, 2022

Description

Migrate to BaseConnectorTest in BigQuery

Documentation

(x) No documentation is needed.

Release notes

(x) No release notes entries required.

@cla-bot cla-bot bot added the cla-signed label Feb 19, 2022
@ebyhr ebyhr force-pushed the ebi/bigquery-connector-test branch from eb34826 to c733190 Compare February 19, 2022 08:41
@ebyhr ebyhr added maintenance Project maintenance task WIP labels Feb 19, 2022
@ebyhr ebyhr force-pushed the ebi/bigquery-connector-test branch from c733190 to 30dbed8 Compare February 21, 2022 02:30
@ebyhr ebyhr removed the WIP label Feb 21, 2022
An empty table is sufficient to verify the connector behavior.
@ebyhr ebyhr force-pushed the ebi/bigquery-connector-test branch 3 times, most recently from 876e5c4 to 136c3c9 Compare February 25, 2022 00:12
@ebyhr ebyhr requested a review from hashhar February 25, 2022 05:39
{
skipTestUnless(supportsCreateTable());
try (TestTable table = new TestTable(getQueryRunner()::execute, "test_supports_delete", "(col varchar(1))", ImmutableList.of("'a'", "'A'"))) {
try (TestTable table = new TestTable(getQueryRunner()::execute, "test_supports_delete", "(col varchar(1))")) {
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.

Thank you. I was testing for CREATE TABLE but performing CTAS in the test.

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.

Can we fix this in base test? It seems we don't need CTAS to test rename table either?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We could do it, but I hesitated to change in this PR because the test contains assertion for values.

- Allow overriding the table definition
- Set table properties in Kudu to provide table definition
This is a preparatory commit for migrating to BaseConnectorTest.
@ebyhr ebyhr force-pushed the ebi/bigquery-connector-test branch from 136c3c9 to d6b0159 Compare February 25, 2022 06:36
@ebyhr ebyhr merged commit 2b67dc9 into master Feb 25, 2022
@ebyhr ebyhr deleted the ebi/bigquery-connector-test branch February 25, 2022 09:37
@github-actions github-actions bot added this to the 372 milestone Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed maintenance Project maintenance task

Development

Successfully merging this pull request may close these issues.

Migrate BigQuery tests to use BaseConnectorTest

2 participants