Closed LeoniePhiline closed 1 year ago
I think this issue may be resolved when #150 is merged. The issue is that the term
can be a field
and there we have issue when the field
is like scm.tbl.col.
Just to recap the tree here:
invocation
-> _select_expression
-> term
-> _expression
-> field
-> [schema: _alias_identifier
.][table_alias: _alias_identifier
.]identifier
_alias_identifier
-> identifier
-> `_idenfier
`
I am a bit surprised that is does not work at the moment.
EDIT: Ah now I get it. The distinct
is not registered correctly at all. It is interpreted as a field and the column afterwards as alias of that column
Ah yes. I did not pay attention to DISTINCT
, since it did not error out. My mistake in not pointing that out!
DISTINCT
is indeed mis-identified as "field", "identifier"
:
I am preparing a fix right now
Tree-sitter syntax error for
tbl
andfield
in: