You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From some recent discussions and changes to the reference implementation + conformance tests, we should revise the bag operator RFC. Relevant PRs / issues:
Specifically, the following things may need changed and/or clarified:
Coercion behavior in permissive vs strict mode (RFC-0007 Bag Operator Coercion Behavior Inconsistencies #76). Decided we want to error in strict mode when a SQL set op or PartiQL bag op is not a collection; apply coercion function in permissive mode.
Coercion of null and missing argument to PartiQL bag op in permissive mode should apply coercion function defined in PartiQL spec related to FROM source coercion. We should coerce null or missing argument to a singleton bag in permissive mode rather than an empty bag.
Allow LIMIT,OFFSET, and ORDER BY clauses to apply to SQL set ops and PartiQL bag ops.
Clarify treatment of null and missing by providing an example. RFC-0007 states
For all operators, member equality is consistent with the GROUP BY clause.
Would be helpful to clarify if the resultant value of the bag op will also coerce missing to null as we currently do for GROUP BY.
The text was updated successfully, but these errors were encountered:
From some recent discussions and changes to the reference implementation + conformance tests, we should revise the bag operator RFC. Relevant PRs / issues:
Specifically, the following things may need changed and/or clarified:
null
andmissing
argument to PartiQL bag op in permissive mode should apply coercion function defined in PartiQL spec related toFROM
source coercion. We should coercenull
ormissing
argument to a singleton bag in permissive mode rather than an empty bag.LIMIT
,OFFSET
, andORDER BY
clauses to apply to SQL set ops and PartiQL bag ops.null
andmissing
by providing an example. RFC-0007 statesWould be helpful to clarify if the resultant value of the bag op will also coerce
missing
tonull
as we currently do forGROUP BY
.The text was updated successfully, but these errors were encountered: