Port initial set of parser tests from `partiql-lang-kotlin`
alancai98 opened this issue · comments
Alan Cai commented
Port tests from partiql-lang-kotlin
:
- SqlParserTests: https://github.com/partiql/partiql-lang-kotlin/blob/main/lang/test/org/partiql/lang/syntax/SqlParserTest.kt
- ParserErrorTests: https://github.com/partiql/partiql-lang-kotlin/blob/main/lang/test/org/partiql/lang/errors/ParserErrorsTest.kt
- Uncovered test categories from pts: https://github.com/partiql/partiql-lang-kotlin/tree/main/testscript/pts
Alan Cai commented
(following comment ported to a separate file. see partiql-lang-kotlin-omitted-tests.md)
From SqlParserTests.kt
, will not currently import the following tests:
- Custom type cast -- not defined in spec
- Call
date_add
anddate_diff
(special syntax) -- not defined in spec or SQL92 spec ORDER BY
tests testing defaults for sort spec and null spec -- dependent on when parsed ast checking is added to assertions- DML -- not defined in spec
- DDL -- not defined in spec
- Semicolon syntax -- not defined in spec; may not be relevant to all partiql implementations
LET
clause parsing -- not defined in spec yet (though there is a PR open for it: partiql/partiql-spec#21)EXEC
clause parsing -- not defined in spec yet- Many nested
NOT
regression test -- not really a parse conformance test... more so a performance test