Hi community,

In hive, DEFAULT is a default database, so one can write sql
SELECT * FROM DEFAULT.t

In trino, one can write
SELECT * FROM HIVE.DEFAULT.t

But now Calcite treat DEFAULT as a keyword which will be resolved to
DEFAULT() function.

What should I do to make the parser to support the DEFAULT in the table
identifier?

I tried to add the DEFAULT to non-keywords but it would cause DEFAULT()
function fails.

Now I must tell the user wrap the DEFAULT using quotes like this
SELECT * FROM HIVE."DEFAULT".t

Thanks in advance.

Reply via email to