Skip to content

Commit

Permalink
Fix failing test related to filesystem migration
Browse files Browse the repository at this point in the history
  • Loading branch information
anusudarsan committed Sep 13, 2024
1 parent cf1d19c commit 46642a9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import io.trino.tpch.TpchTable;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Test;
import org.testcontainers.shaded.com.google.common.collect.ImmutableMap;
import software.amazon.awssdk.services.glue.GlueClient;
import software.amazon.awssdk.services.glue.model.CreateTableRequest;
import software.amazon.awssdk.services.glue.model.TableInput;
Expand Down Expand Up @@ -69,7 +70,7 @@ protected QueryRunner createQueryRunner()

this.glueMetastore = createTestingGlueHiveMetastore(dataDirectory, this::closeAfterClass);
queryRunner.installPlugin(new TestingHivePlugin(dataDirectory, glueMetastore));
queryRunner.createCatalog(HIVE_CATALOG, "hive");
queryRunner.createCatalog(HIVE_CATALOG, "hive", ImmutableMap.of("fs.hadoop.enabled", "true"));

queryRunner.execute("CREATE SCHEMA " + tpchSchema + " WITH (location = '" + dataDirectory.toUri() + "')");
copyTpchTables(queryRunner, "tpch", TINY_SCHEMA_NAME, hiveSession, ImmutableList.of(TpchTable.REGION, TpchTable.NATION));
Expand Down

0 comments on commit 46642a9

Please sign in to comment.