Analyzing SQL queries with default catalog/database names

2021-08-16 Thread Zheng Shao
Hi Calcite Dev, What is the recommended way to analyze SQL queries with default catalog/database names? For example, for query like "SELECT * FROM foo" where foo maps to a table in hive.my_database. In Project Coral

Re: Analyzing SQL queries with default catalog/database names

2021-08-17 Thread Julian Hyde
A key step in validation is to fully-quality table names. Thus in your example, mytable would become the string array [“hive”, “my_database”, “mytable”]. Any my_database2.mytable2 would become [“hive”, “my_database2”, “mytable2”]. But foo would remain foo, because it is in the query and is not a