### _Why are the changes needed?_ Workaround for #3032, close #3323 There are known some ODBC drivers e.g. [Databricks ODBC driver](https://www.databricks.com/spark/odbc-drivers-download) depending on `TGetInfoType.CLI_DBMS_VER` and `TGetInfoType.CLI_DBMS_NAME` to check server compatibilities and abilities. This PR proposes to introduce a new configuration `kyuubi.server.info.provider=SERVER/ENGINE` to make GetInfo support return either server or engine information. Since beeline will call GetInfo in the initialization phase, to make sure the beeline fast open experience, in async launch mode, when the engine is not ready, return server info regardless `kyuubi.server.info.provider`. ### _How was this patch tested?_ - [x] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [x] Add screenshots for manual tests if appropriate Testing w/ PowerBI  - [x] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #3122 from pan3793/info. Closes #3122 742bdbe3 [Cheng Pan] nit bb85d2ba [Cheng Pan] style fd75238c [Cheng Pan] fix 9ddb2afd [Cheng Pan] nit fd8f7979 [Cheng Pan] fix ut 840205e5 [Cheng Pan] nit f9996d53 [Cheng Pan] GetInfo supports returning engine info Authored-by: Cheng Pan <chengpan@apache.org> Signed-off-by: Cheng Pan <chengpan@apache.org> |
||
|---|---|---|
| .. | ||
| kyuubi-flink-it | ||
| kyuubi-hive-it | ||
| kyuubi-jdbc-it | ||
| kyuubi-kubernetes-it | ||
| kyuubi-trino-it | ||
| pom.xml | ||