Skip to content

Commit 878c192

Browse files
committed
[multistage] Catch Throwable To Propagate Proper Error Message
1 parent 0362ad3 commit 878c192

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pinot-query-planner/src/main/java/org/apache/pinot/query/QueryEnvironment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ public QueryPlan planQuery(String sqlQuery, SqlNodeAndOptions sqlNodeAndOptions,
152152
} catch (CalciteContextException e) {
153153
throw new RuntimeException("Error composing query plan for '" + sqlQuery
154154
+ "': " + e.getMessage() + "'", e);
155-
} catch (Exception e) {
156-
throw new RuntimeException("Error composing query plan for: " + sqlQuery, e);
155+
} catch (Throwable t) {
156+
throw new RuntimeException("Error composing query plan for: " + sqlQuery, t);
157157
}
158158
}
159159

0 commit comments

Comments
 (0)