[ 
https://issues.apache.org/jira/browse/IMPALA-12401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18038963#comment-18038963
 ] 

ASF subversion and git services commented on IMPALA-12401:
----------------------------------------------------------

Commit 068158e495d18fc6c2548dd9868b284870f51bbe in impala's branch 
refs/heads/master from Arnab Karmakar
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=068158e49 ]

IMPALA-12401: Support more info types for HS2 GetInfo() API

This patch adds support for 40+ additional TGetInfoType values in the
HiveServer2 GetInfo() API, improving ODBC/JDBC driver compatibility.

Previously, only 3 info types were supported (CLI_SERVER_NAME,
CLI_DBMS_NAME, CLI_DBMS_VER).

The implementation follows the ODBC CLI specification and matches the
behavior of Hive's GetInfo implementation where applicable.

Testing:
- Added unit tests in test_hs2.py for new info types
- Tests verify correct return values and data types for each info type

Change-Id: I1ce5f2b9dcc2e4633b4679b002f57b5b4ea3e8bf
Reviewed-on: http://gerrit.cloudera.org:8080/23528
Tested-by: Impala Public Jenkins <[email protected]>
Reviewed-by: Csaba Ringhofer <[email protected]>


> 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
>            Assignee: Arnab Karmakar
>            Priority: Major
>              Labels: newbie, ramp-up
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to