Your SQL parser parses the distinct keyword (when used in the context of a list of columns being selected), but does not retain it in the purposes of the AST.
As an example, take the following test where the query
SELECT DISTINCT username, user_id FROM users
is parsed into the following list of columns, losing the distinct keyword in the process:
[Expr.Ident "username"; Expr.Ident "user_id"]
Is this an artefact of your analyzer not needing the distinct keyword in order to do its type checking? In other words, is this a conscious omission?
Your SQL parser parses the distinct keyword (when used in the context of a list of columns being selected), but does not retain it in the purposes of the AST.
As an example, take the following test where the query
is parsed into the following list of columns, losing the distinct keyword in the process:
Is this an artefact of your analyzer not needing the distinct keyword in order to do its type checking? In other words, is this a conscious omission?