Open aisbergde opened 4 years ago
I'm not sure what's the question here. It's not the job of the parser to figure out the semantics of the query. I'm not aware of an existing library that does this kind of normalization. Implementing this manually should be straightforward, right?
OK, I got this and you are right, it is not part of the parser to manipulate the result but this should be done outside and after parsing.
in views mssqlserver allows 2 ways to define a columns alias. I would like to "normalize" the representation in json. I would like to have the same style in JSON for the same logic. There could be a property to indicate how this was in the original expression to not lost this information.
The best would be, if I could convert the presentation of
B = T1.A
into the presentation ofT1.A AS B
but it would also be OK to convert
T1.C AS D
intoD = T1.C
Serialized as JSON: