Skip to content

Commit

Permalink
Move PostgreSQL schema init to the server
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Mar 23, 2021
1 parent 8caa1d6 commit 32d1977
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -59,8 +59,6 @@ public static DistributedQueryRunner createPostgreSqlQueryRunner(
connectorProperties.putIfAbsent("allow-drop-table", "true");
connectorProperties.putIfAbsent("postgresql.include-system-tables", "true");

server.execute("CREATE SCHEMA tpch");

queryRunner.installPlugin(new PostgreSqlPlugin());
queryRunner.createCatalog("postgresql", "postgresql", connectorProperties);

Expand Down
Expand Up @@ -42,6 +42,8 @@ public TestingPostgreSqlServer()
.withUsername(USER)
.withPassword(PASSWORD);
dockerContainer.start();

execute("CREATE SCHEMA tpch");
}

public void execute(String sql)
Expand Down

0 comments on commit 32d1977

Please sign in to comment.