druid icon indicating copy to clipboard operation
druid copied to clipboard

Handle the sql type named LONG

Open kgyrtkirk opened this issue 2 years ago • 2 comments

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 avatar Oct 28 '24 13:10 kgyrtkirk

@kgyrtkirk Can i work on this.?

naanagon avatar Oct 28 '24 15:10 naanagon

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.

nanjeshramesh avatar Sep 22 '26 07:09 nanjeshramesh