Skip to content

Commit a0d1fe3

Browse files
committed
fix
1 parent 4a9c50f commit a0d1fe3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore

standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestObjectStore.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -817,8 +817,10 @@ public void testDirectSQLDropPartitionsRejectsSqlInjectionInPartName()
817817
throws Exception {
818818
createPartitionedTable(false, false, new HashSet<>());
819819

820-
objectStore.dropPartitionsInternal(DEFAULT_CATALOG_NAME, DB1, TABLE1,
821-
Collections.singletonList(SQLI_PART_NAME), true, false);
820+
try (DirectSqlConfigurator configurator = new DirectSqlConfigurator(conf, true)) {
821+
objectStore.unwrap(TableStore.class).dropPartitions(new TableName(DEFAULT_CATALOG_NAME, DB1, TABLE1),
822+
Collections.singletonList(SQLI_PART_NAME));
823+
}
822824

823825
List<Partition> partitions;
824826
try (AutoCloseable c = deadline()) {

0 commit comments

Comments
 (0)