Cosmos: remove null semantics compensation for InExpression #31063
Labels
area-cosmos
area-query
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-cleanup
Milestone
Although Cosmos supports a form of SQL, it does not do 3-value logic as standard SQL does; for example,
null = null
returns true. As a result, we don't need to do null semantics compensation. But for some reason, our InExpressionValuesExpandingExpressionVisitor (which expands InExpression values parameters to constants in SQL) adds anOR item IS NULL
compensation.As a verification, given a document containing
Property2: null
, the following SQL query returns the document just fine:The text was updated successfully, but these errors were encountered: