ORDER BY
spec could make more clear behavior with DESC
#34
Labels
enhancement
New feature or request
ORDER BY
spec could make more clear behavior with DESC
#34
The PartiQL spec section 12.2 currently only defines the
order-by-less-than
function (used forASC
) and does not explicitly mention theDESC
behavior. This can be confusing for implementers as experienced in the Kotlin implementation ofORDER BY
partiql/partiql-lang-kotlin#554. The behavior with respect toDESC
comparison between different data types could be made clearer (whether it should compare different data types using theorder-by-less-than
function or the reverse/converse).The SQL-92 spec (page 373) makes this distinction for
DESC
more clear:Similarly this distinction is made more clear in Couchbase's N1QL online reference: https://docs.couchbase.com/server/current/n1ql/n1ql-language-reference/orderby.html
The text was updated successfully, but these errors were encountered: