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

Update Coral #16994

Merged
merged 1 commit into from
Apr 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<dep.errorprone.version>2.18.0</dep.errorprone.version>
<dep.testcontainers.version>1.18.0</dep.testcontainers.version>
<dep.duct-tape.version>1.0.8</dep.duct-tape.version>
<dep.coral.version>2.0.77</dep.coral.version>
<dep.coral.version>2.0.153</dep.coral.version>
<dep.confluent.version>7.3.1</dep.confluent.version>
<dep.kafka-clients.version>3.3.2</dep.kafka-clients.version>
<dep.casandra.version>4.14.0</dep.casandra.version>
Expand Down Expand Up @@ -1165,7 +1165,7 @@
<dependency>
<groupId>com.linkedin.calcite</groupId>
<artifactId>calcite-core</artifactId>
<version>1.21.0.152</version>
<version>1.21.0.160</version>
<classifier>shaded</classifier>
<exclusions>
<exclusion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,13 +293,9 @@ public void testShowCreateView()

String showCreateViewSql = "SHOW CREATE VIEW %s.default.hive_show_view";
String expectedResult = "CREATE VIEW %s.default.hive_show_view SECURITY DEFINER AS\n" +
"SELECT\n" +
" \"n_nationkey\"\n" +
", \"n_name\"\n" +
", \"n_regionkey\"\n" +
", \"n_comment\"\n" +
"SELECT *\n" +
"FROM\n" +
" \"default\".\"nation\"";
" \"default\".\"nation\" \"nation\"";

QueryResult actualResult = onTrino().executeQuery(format(showCreateViewSql, "hive"));
assertThat(actualResult).hasRowsCount(1);
Expand Down Expand Up @@ -386,7 +382,7 @@ public void testHiveViewInInformationSchema()
row("hive", "test_schema", "trino_test_view", "VIEW"));

assertThat(onTrino().executeQuery("SELECT view_definition FROM information_schema.views WHERE table_schema = 'test_schema' and table_name = 'hive_test_view'")).containsOnly(
row("SELECT \"n_nationkey\", \"n_name\", \"n_regionkey\", \"n_comment\"\nFROM \"default\".\"nation\""));
row("SELECT *\nFROM \"default\".\"nation\" AS \"nation\""));

assertThat(onTrino().executeQuery("DESCRIBE test_schema.hive_test_view"))
.contains(row("n_nationkey", "bigint", "", ""));
Expand Down