From 8142a67090108d189ab1ccf7bc6e42e6d739a86b Mon Sep 17 00:00:00 2001 From: Rafael Bey <24432403+rafaelbey@users.noreply.github.com> Date: Mon, 28 Oct 2024 15:27:23 -0400 Subject: [PATCH] Remove starting H2 server as REPL does not use it anymore --- .../relational/RelationalReplExtension.java | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/legend-engine-config/legend-engine-repl/legend-engine-repl-relational/src/main/java/org/finos/legend/engine/repl/relational/RelationalReplExtension.java b/legend-engine-config/legend-engine-repl/legend-engine-repl-relational/src/main/java/org/finos/legend/engine/repl/relational/RelationalReplExtension.java index 8ed446d7587..c71e0923758 100644 --- a/legend-engine-config/legend-engine-repl/legend-engine-repl-relational/src/main/java/org/finos/legend/engine/repl/relational/RelationalReplExtension.java +++ b/legend-engine-config/legend-engine-repl/legend-engine-repl-relational/src/main/java/org/finos/legend/engine/repl/relational/RelationalReplExtension.java @@ -17,7 +17,6 @@ import org.eclipse.collections.api.list.MutableList; import org.eclipse.collections.impl.factory.Lists; import org.finos.legend.engine.plan.execution.result.Result; -import org.finos.legend.engine.plan.execution.stores.relational.AlloyH2Server; import org.finos.legend.engine.plan.execution.stores.relational.result.RealizedRelationalResult; import org.finos.legend.engine.plan.execution.stores.relational.result.RelationalResult; import org.finos.legend.engine.repl.client.Client; @@ -30,27 +29,11 @@ import org.finos.legend.engine.repl.relational.local.LocalConnectionManagement; import org.finos.legend.engine.repl.relational.local.LocalConnectionType; -import java.sql.SQLException; - import static org.finos.legend.engine.plan.execution.stores.relational.result.RelationalResultGridPrintUtility.prettyGridPrint; public class RelationalReplExtension implements ReplExtension { public static String DUCKDB_LOCAL_CONNECTION_BASE_NAME = "DuckDuck"; - - static - { - try - { - int port = AlloyH2Server.startServer(0).getPort(); - System.setProperty("legend.test.h2.port", String.valueOf(port)); - } - catch (SQLException e) - { - throw new RuntimeException(e); - } - } - private Client client; private int maxRowSize = 40; private LocalConnectionManagement localConnectionManagement; @@ -66,7 +49,6 @@ public void initialize(Client client) { this.client = client; this.localConnectionManagement = new LocalConnectionManagement(client); - // this.localConnectionManagement.addLocalConnection(LocalConnectionType.H2, "MyTestH2"); this.localConnectionManagement.addLocalConnection(LocalConnectionType.DuckDB, DUCKDB_LOCAL_CONNECTION_BASE_NAME); }