You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Quanlong Huang (Jira)" <ji...@apache.org> on 2023/08/25 00:48:00 UTC

[jira] [Created] (IMPALA-12401) Support more info types for HS2 GetInfo() API

Quanlong Huang created IMPALA-12401:
---------------------------------------

             Summary: Support more info types for HS2 GetInfo() API
                 Key: IMPALA-12401
                 URL: https://issues.apache.org/jira/browse/IMPALA-12401
             Project: IMPALA
          Issue Type: Improvement
          Components: Backend
            Reporter: Quanlong Huang


Impalad coordinators can act as HiveServer2 since they implement the HS2 APIs.
Currently, we just support 3 info types for the HS2 GetInfo() API: CLI_SERVER_NAME, CLI_DBMS_NAME, CLI_DBMS_VER.
https://github.com/apache/impala/blob/11a9861ec695fe62b39095940514b28a8c684484/be/src/service/impala-hs2-server.cc#L468-L474

We can add more to be compatible with Hive, e.g. CLI_MAX_COLUMN_NAME_LEN, CLI_MAX_TABLE_NAME_LEN, CLI_MAX_SCHEMA_NAME_LEN, CLI_ODBC_KEYWORDS.
https://github.com/apache/hive/blob/4903585a34ae44bb3fec4207b5acab63f6bfc8c1/service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java#L501-L508

Note that CLI_ODBC_KEYWORDS is a new type of emun TGetInfoType added in HIVE-17765 which is not in our common/thrift/hive-1-api/TCLIService.thrift
We can add CLI_ODBC_KEYWORDS and other new types to our TCLIService.thrift file.

New tests can be added in tests/hs2/test_hs2.py



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org