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 75e296e9e0a..e112dd3158a 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)"), "", "")