-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Migrate to BaseConnectorTest in BigQuery #11108
Conversation
eb34826
to
c733190
Compare
c733190
to
30dbed8
Compare
An empty table is sufficient to verify the connector behavior.
876e5c4
to
136c3c9
Compare
@@ -771,7 +771,7 @@ public void testDeleteWithVarcharPredicate() | |||
protected void skipTestUnlessSupportsDeletes() | |||
{ | |||
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))")) { |
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.
Thank you. I was testing for CREATE TABLE but performing CTAS in the test.
testing/trino-testing/src/main/java/io/trino/testing/AbstractTestDistributedQueries.java
Outdated
Show resolved
Hide resolved
@Override | ||
public void testRenameTable() | ||
{ | ||
// Use CREATE TABLE instead of CREATE TABLE AS statement |
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.
Can we fix this in base test? It seems we don't need CTAS to test rename table either?
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.
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.
136c3c9
to
d6b0159
Compare
Description
Migrate to BaseConnectorTest in BigQuery
Documentation
(x) No documentation is needed.
Release notes
(x) No release notes entries required.