Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@ public static QueryRunner createNativeQueryRunner(
boolean addStorageFormatToPath)
throws Exception
{
// The property "hive.allow-drop-table" needs to be set to true because security is always "legacy" in NativeQueryRunner.
ImmutableMap<String, String> hiveProperties = ImmutableMap.<String, String>builder()
.putAll(getNativeWorkerHiveProperties(storageFormat))
.put("hive.allow-drop-table", "true")
.build();

// Make query runner with external workers for tests
return HiveQueryRunner.createQueryRunner(
ImmutableList.of(),
Expand All @@ -162,7 +168,7 @@ public static QueryRunner createNativeQueryRunner(
.build(),
ImmutableMap.of(),
"legacy",
getNativeWorkerHiveProperties(storageFormat),
hiveProperties,
workerCount,
Optional.of(Paths.get(addStorageFormatToPath ? dataDirectory + "/" + storageFormat : dataDirectory)),
Optional.of((workerIndex, discoveryUri) -> {
Expand Down