mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
When the parser strips parentheses from `IN (col)` (single element), it produces `IN col` with a bare `ASTIdentifier`. After resolution this becomes a `ColumnNode`, which is not handled by `CollectSets`. Wrap it in `tuple()` so the existing tuple → `has` rewrite path handles it. This fixes queries like `SELECT * FROM t WHERE x IN (col)`. Co-Authored-By: Claude Opus 4.6 <[email protected]>