Skip to content

Commit 462515f

Browse files
committed
Fix TestBigQueryIntegrationSmokeTest.testShowCreateTable
1 parent f689de4 commit 462515f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

plugin/trino-bigquery/src/test/java/io/trino/plugin/bigquery/TestBigQueryIntegrationSmokeTest.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import static io.trino.testing.MaterializedResult.resultBuilder;
3030
import static io.trino.testing.assertions.Assert.assertEquals;
3131
import static java.lang.String.format;
32+
import static org.assertj.core.api.Assertions.assertThat;
3233

3334
@Test
3435
public class TestBigQueryIntegrationSmokeTest
@@ -157,4 +158,21 @@ private static void executeBigQuerySql(BigQuery bigquery, String query)
157158
throw new RuntimeException(e);
158159
}
159160
}
161+
162+
@Override
163+
public void testShowCreateTable()
164+
{
165+
assertThat((String) computeActual("SHOW CREATE TABLE orders").getOnlyValue())
166+
.isEqualTo("CREATE TABLE bigquery.tpch.orders (\n" +
167+
" orderkey bigint NOT NULL,\n" +
168+
" custkey bigint NOT NULL,\n" +
169+
" orderstatus varchar NOT NULL,\n" +
170+
" totalprice double NOT NULL,\n" +
171+
" orderdate date NOT NULL,\n" +
172+
" orderpriority varchar NOT NULL,\n" +
173+
" clerk varchar NOT NULL,\n" +
174+
" shippriority bigint NOT NULL,\n" +
175+
" comment varchar NOT NULL\n" +
176+
")");
177+
}
160178
}

0 commit comments

Comments
 (0)