3 ms·
I agree, I wish every vendor would publish an official open source parser for their SQL dialects, or that the community would create a repository of standard pa
by sixdimensional 9y ago
I agree, I wish every vendor would publish an official open source parser for their SQL dialects, or that the community would create a repository of standard parsers or grammars for them all.
We are almost there with ANTLR grammars...
https://github.com/antlr/grammars-v4 https://github.com/antlr/grammars-v4
- dllthomas 9y agoThe trickiest bit isn't parsing per-se, but disambiguating references, so grammar alone isn't enough. And unfortunately, disambiguating references doesn't work the same way everywhere - for instance, tables on Hive will shadow a CTE.