Skip to content

Commit d9b1453

Browse files
committed
Pass on exception for bin-on-timestamp exception
Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>
1 parent 34985c7 commit d9b1453

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

core/src/main/java/org/opensearch/sql/calcite/utils/CalciteToolsHelper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,8 @@ public RelNode visit(TableScan scan) {
369369
"The 'bins' parameter on timestamp fields requires: (1) pushdown to be enabled"
370370
+ " (controlled by plugins.calcite.pushdown.enabled, enabled by default), and"
371371
+ " (2) the timestamp field to be used as an aggregation bucket (e.g., 'stats"
372-
+ " count() by @timestamp').");
372+
+ " count() by @timestamp').",
373+
e);
373374
}
374375
throw Util.throwAsRuntime(e);
375376
}

0 commit comments

Comments
 (0)