-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add support for CREATE and DROP SCHEMA in BigQuery #7543
Conversation
plugin/trino-bigquery/src/main/java/io/trino/plugin/bigquery/BigQueryMetadata.java
Show resolved
Hide resolved
plugin/trino-bigquery/src/main/java/io/trino/plugin/bigquery/BigQueryMetadata.java
Outdated
Show resolved
Hide resolved
plugin/trino-bigquery/src/main/java/io/trino/plugin/bigquery/BigQueryMetadata.java
Outdated
Show resolved
Hide resolved
assertUpdate("DROP SCHEMA " + schemaName); | ||
} | ||
|
||
@Test |
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.
Please add a test when you try to drop schema in case when case insensitive mapping is enabled.
Test a case when only single schema matches DROP
request (it should be allowed).
And a case when there are multiple matching schemas. In that case DROP
should raise an exception.
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.
perhaps instead of adding expicit tests here we could leverage io.trino.testing.BaseConnectorSmokeTest#testCreateSchema
or io.trino.testing.BaseConnectorTest (AbstractTestDistributedQueries)#testCreateSchema
aac5620
to
e12eba4
Compare
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.
LGTM % squash
e12eba4
to
993a711
Compare
No description provided.