Rename test methods in AbstractTestHiveClient
And remove an unused method
@@ -2390,7 +2390,7 @@ public abstract class AbstractTestHiveClient
}
@Test
- public void testCompareAndSetTableParameters()
+ public void testUpdateTableParameters()
throws Exception
{
SchemaTableName tableName = temporaryTable("compare_and_set_table_parameters");
@@ -2414,7 +2414,7 @@ public abstract class AbstractTestHiveClient
}
@Test
- public void testCompareAndSetPartitionParameters()
+ public void testUpdatePartitionParameters()
throws Exception
{
SchemaTableName tableName = temporaryTable("compare_and_set_partition_parameters");
@@ -3100,14 +3100,6 @@ public abstract class AbstractTestHiveClient
return partitionName.replaceFirst(((HiveColumnHandle) columnHandle).getName() + "=", "");
}
- private static Constraint<ColumnHandle> createConstraintForPartition(ColumnHandle columnHandle, String partitionName)
- {
- String partitionValue = getPartitionValue(columnHandle, partitionName);
- Domain domain = Domain.singleValue(createUnboundedVarcharType(), utf8Slice(partitionValue));
- TupleDomain<ColumnHandle> tupleDomain = TupleDomain.withColumnDomains(ImmutableMap.of(columnHandle, domain));
- return new Constraint<>(tupleDomain, bindings -> true);
- }
-
private static HiveBasicStatistics getBasicStatisticsForPartition(Transaction transaction, SchemaTableName table, ColumnHandle handle, String partitionName)
{
return HiveBasicStatistics.createFromPartitionParameters(getPartition(transaction, table, handle, partitionName).getParameters());
