Skip to content

Commit

Permalink
Fix TestBigQueryIntegrationSmokeTest.testShowCreateTable
Browse files Browse the repository at this point in the history
  • Loading branch information
losipiuk committed Jan 12, 2021
1 parent f689de4 commit 462515f
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import static io.trino.testing.MaterializedResult.resultBuilder;
import static io.trino.testing.assertions.Assert.assertEquals;
import static java.lang.String.format;
import static org.assertj.core.api.Assertions.assertThat;

@Test
public class TestBigQueryIntegrationSmokeTest
Expand Down Expand Up @@ -157,4 +158,21 @@ private static void executeBigQuerySql(BigQuery bigquery, String query)
throw new RuntimeException(e);
}
}

@Override
public void testShowCreateTable()
{
assertThat((String) computeActual("SHOW CREATE TABLE orders").getOnlyValue())
.isEqualTo("CREATE TABLE bigquery.tpch.orders (\n" +
" orderkey bigint NOT NULL,\n" +
" custkey bigint NOT NULL,\n" +
" orderstatus varchar NOT NULL,\n" +
" totalprice double NOT NULL,\n" +
" orderdate date NOT NULL,\n" +
" orderpriority varchar NOT NULL,\n" +
" clerk varchar NOT NULL,\n" +
" shippriority bigint NOT NULL,\n" +
" comment varchar NOT NULL\n" +
")");
}
}

0 comments on commit 462515f

Please sign in to comment.