Repository navigation
Conversation
sqlglot parses eight of the fifteen expressions in compliance/expressions/invalid.txt, so validate.py printed Validation PASSED for portable sql that the grammar and expression_language.md reject: juxtaposition (`a b`, `a IS`), an empty IN list, INTERVAL date arithmetic, and DISTINCT with no argument. The grammar tests already run both fixture files. Wire them into the validator tests too, and after a successful parse of OSSIE_SQL_2026 walk the tree for those constructs. SELECT a FROM t stays deferred. Vendor dialects are left alone, so a Postgres INTERVAL or BigQuery DATE_ADD with INTERVAL still passes.
jbonofre
self-requested a review
November 20, 2026 13:37
jbonofre
approved these changes
Nov 20, 2026
jbonofre
left a comment
Member
There was a problem hiding this comment.
LGTM, thanks @vigneshio!
That's cool to close these OSSIE_SQL_2026 gaps and wiring compliance/expressions/ into validation/tests/.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
sqlglot parses eight of the fifteen expressions in
compliance/expressions/invalid.txt, sovalidate.pyaccepted portablesqlthat the grammar andexpression_language.mdreject: juxtaposition (a b,a IS), an emptyINlist, INTERVAL date arithmetic, andDISTINCTwith no argument.This walks the tree after a successful
OSSIE_SQL_2026parse and rejects those constructs. Both fixture files are now run fromvalidation/tests/.SELECT a FROM tstays deferred (#698). PostgresINTERVALand BigQueryDATE_ADD(..., INTERVAL ...)dialect entries are unchanged.