Replies: 1 comment 1 reply
-
you can do it somewhat. you can set the level to IGNORE, which will make the parser much more lenient. happy to collaborate if it makes sense, just let me know what you need. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Hope your holidays are going well.
I was wondering how well SqlGlot can support error recovery. The idea is to lean on this parser for scoping while the SQL author types out their SQL. That way, we can autocomplete with contextual information even though the SQL would currently be in an error state.
If error recovery is not on the radar, I made a parser for Trino with tree-sitter and am wondering if I could leverage SqlGlot as an engine of sorts where I parse my Trino SQL then run the scoping code from SqlGlot. I hope that makes sense.
I will try to open source the parser I have once I get permission to do so, but was wondering if there was a way to collaborate somehow. It could create a baseline for an LSP that others can benefit from.
Beta Was this translation helpful? Give feedback.
All reactions