From 82a8e4793354678a14d099ec00d7ae491d8c180a Mon Sep 17 00:00:00 2001 From: Artur Gajowy Date: Mon, 23 Jan 2017 08:59:26 +0100 Subject: [PATCH] Fix TestHiveIntegrationSmokeTest affected by TestNG bug See https://github.com/cbeust/testng/issues/543. --- .../facebook/presto/hive/TestHiveIntegrationSmokeTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/presto-hive/src/test/java/com/facebook/presto/hive/TestHiveIntegrationSmokeTest.java b/presto-hive/src/test/java/com/facebook/presto/hive/TestHiveIntegrationSmokeTest.java index 75e296e9e0af..e112dd3158a1 100644 --- a/presto-hive/src/test/java/com/facebook/presto/hive/TestHiveIntegrationSmokeTest.java +++ b/presto-hive/src/test/java/com/facebook/presto/hive/TestHiveIntegrationSmokeTest.java @@ -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; @@ -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)"), "", "")