-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
feature requestmulti-stageRelated to the multi-stage query engineRelated to the multi-stage query engine
Description
currently the ARG_MIN/ARG_MAX syntax added in #10636 isn't actually the latest supported operand type checker format in Calcite.
Namely, ARG_MIN/ARG_MAX(comp[, comp]*, value) puts the mandatory value column at the end and the optional comparison in the middle. and incompatible with Calcite's syntax ARG_MIN/ARG_MAX(value, comp)
we propose to
- use a new syntax
EXPR_MIN(value, comp[, comp]*)which is inline withARG_MIN/ARG_MAX(value, comp)when no optional secondary comp columns are attached - migrate ARG_MIN/ARG_MAX to the new syntax and
- [optional] if Calcite adopts the optional comp column we can further use
ARG_MIN/ARG_MAXas synonym ofEXPR_MIN/EXPR_MAXin the future.
Metadata
Metadata
Assignees
Labels
feature requestmulti-stageRelated to the multi-stage query engineRelated to the multi-stage query engine