doris icon indicating copy to clipboard operation
doris copied to clipboard

[Bug] When using the hive catalog the hive table name is uppercase, the Doris query is reported wrong

Open LuGuangming opened this issue 2 years ago • 3 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

Version

2.0.3

What's Wrong?

When using the hive catalog the hive table name is uppercase, the Doris query is reported wrong for example: hive create table: create table HIVE_test3(id int, name string) stored as orc; doris query table error: image

What You Expected?

The hive is insensitive and the actual storage HDFS path is lowercase, so we need to support the hive building table with a capital table name

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • [X] Yes I am willing to submit a PR!

Code of Conduct

LuGuangming avatar Jan 20 '24 11:01 LuGuangming

When I test this case, it throws Unknown table 'HIVE_test3'. Can you paste the result of show tables. If there's no hive_test3 in show tables, you can refresh hive catalog; If there's hive_test3 in show tables, you can change select * from HIVE_test3 as select * from hive_test3. Then, Doris will discuss whether case-insensitive hive table name is supported.

AshinGau avatar Jan 23 '24 06:01 AshinGau

Hive create table: create table HIVE_test3(id int, name string) stored as orc; insert into HIVE_test3 values(111, 'aaa'); Doris show tables: image

LuGuangming avatar Jan 26 '24 03:01 LuGuangming

image

LuGuangming avatar Jan 26 '24 03:01 LuGuangming