Skip to content

Commit

Permalink
Fix TestHiveIntegrationSmokeTest affected by TestNG bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturGajowy authored and lucesape committed Apr 13, 2017
1 parent 90b5c54 commit 82a8e47
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
import static com.facebook.presto.spi.type.DoubleType.DOUBLE;
import static com.facebook.presto.spi.type.SmallintType.SMALLINT;
import static com.facebook.presto.spi.type.TinyintType.TINYINT;
import static com.facebook.presto.spi.type.VarcharType.VARCHAR;
import static com.facebook.presto.spi.type.VarcharType.createUnboundedVarcharType;
import static com.facebook.presto.spi.type.VarcharType.createVarcharType;
import static com.facebook.presto.testing.MaterializedResult.resultBuilder;
Expand Down Expand Up @@ -1315,7 +1316,8 @@ public void testShowColumnsPartitionKey()
"WITH (partitioned_by = ARRAY['apple', 'pineapple'])");

MaterializedResult actual = computeActual("SHOW COLUMNS FROM test_show_columns_partition_key");
MaterializedResult expected = resultBuilder(getSession(), canonicalizeType(createUnboundedVarcharType()), canonicalizeType(createUnboundedVarcharType()), canonicalizeType(createUnboundedVarcharType()))
Type unboundedVarchar = canonicalizeType(VARCHAR);
MaterializedResult expected = resultBuilder(getSession(), unboundedVarchar, unboundedVarchar, unboundedVarchar, unboundedVarchar)
.row("grape", canonicalizeTypeName("bigint"), "", "")
.row("orange", canonicalizeTypeName("bigint"), "", "")
.row("pear", canonicalizeTypeName("varchar(65535)"), "", "")
Expand Down

0 comments on commit 82a8e47

Please sign in to comment.