SQL aggregation MAX
/MIN
and builtin functions COLL_MAX
/COLL_MIN
should result in a data type mismatch over non-comparable elements
#1094
Labels
bug
Something isn't working
PartiQLSpec
Features from the PartiQL Spec
SQL92Spec
Features from the SQL92 spec
Description
Spec issue partiql/partiql-lang#11 with more context. Kotlin implementation currently allows calling SQL aggregation
MAX
/MIN
and building functionsCOLL_MAX
/COLL_MIN
on collections of non-comparable elements. These should return an error in strict mode (LEGACY typing mode with what Kotlin currently supports) and returnMISSING
in permissive mode.Expected Behavior
The following queries to error in strict/legacy typing mode and return
MISSING
in permissive typing mode:Additional Context
The text was updated successfully, but these errors were encountered: