From 07d9f6f7264d14a72d1264341be1b22ef9894f66 Mon Sep 17 00:00:00 2001 From: Rafael Bey <24432403+rafaelbey@users.noreply.github.com> Date: Mon, 28 Oct 2024 12:00:22 -0400 Subject: [PATCH] Throw exception rather than wrap on ErrorResult --- .../execution/stores/relational/result/RelationalResult.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-execution/legend-engine-xt-relationalStore-executionPlan/src/main/java/org/finos/legend/engine/plan/execution/stores/relational/result/RelationalResult.java b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-execution/legend-engine-xt-relationalStore-executionPlan/src/main/java/org/finos/legend/engine/plan/execution/stores/relational/result/RelationalResult.java index ff1394aa737..7cf5b37d315 100644 --- a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-execution/legend-engine-xt-relationalStore-executionPlan/src/main/java/org/finos/legend/engine/plan/execution/stores/relational/result/RelationalResult.java +++ b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-execution/legend-engine-xt-relationalStore-executionPlan/src/main/java/org/finos/legend/engine/plan/execution/stores/relational/result/RelationalResult.java @@ -600,7 +600,7 @@ public Result realizeInMemory() } catch (SQLException e) { - return new ErrorResult(-1, "Error realizing the relational result in memory : " + e.getMessage()); + throw new RuntimeException("Failed to realize in memory", e); } } @@ -719,4 +719,4 @@ public List getResultSetColumns() throw new RuntimeException(e); } } -} \ No newline at end of file +}