Is there a way to get line and column number for nodes in AST #4335
Replies: 1 comment
-
no, there are no plans to do this currently because ast nodes don't always map to text |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using sqlglot to parse SQL using
sqlglot.parse_one
. Currently, the nodes of the AST don't have any line and column number. Is it possible to parse the sql; while preserving the position info.For context, the use case is: I have some post-hoc validation rules. Which I apply on the parsed AST. I would like to show the erroring line and column.
Beta Was this translation helpful? Give feedback.
All reactions