druid
druid copied to clipboard
Handle the sql type named LONG
Motivation
People using the native engine may write CAST( some AS LONG ) because they used to work with those types - however the sql parser doesn't know that type and returns an error.
Description
It could be handled as an alias to BIGINT
@kgyrtkirk Can i work on this.?
I would like to take this. Plan: add LONG as a non-reserved alias for BIGINT in the SQL grammar (sql/src/main/codegen/config.fmpp and Parser.jj), following the same pattern already used for OVERWRITE/PARTITIONED/EXTERN, plus a CalciteQueryTest covering CAST(col AS LONG) and a docs note.