morningman opened a new pull request, #15886: URL: https://github.com/apache/doris/pull/15886
# Proposed changes Issue Number: close #xxx ## Problem summary The inferface of hive metastore changes from version to version. Currently, Doris use hive 2.3.7 as hms client version. When using to connect hive 1.x, some interface such as `get_table_req` does not exist in hive 1.x. So we can't get metadata from hive 1.x. In this PR, I copied the HiveMetastoreClient from hive 2.3.7 release, and modify some of interface's implementation, so that it will use old interface to connect to hive 1.x. And when creating hms catalog, you can specify the hive version, eg: ``` CREATE CATALOG `hive` PROPERTIES ( "hive.metastore.uris" = "thrift://127.0.0.1:9083", "type" = "hms", "hive.version" = "1.1" ); ``` If `hive.version` does not specified, Doris will use hive 2.3.x compatible interface to visit hms. ## Checklist(Required) 1. Does it affect the original behavior: - [ ] Yes - [ ] No - [ ] I don't know 2. Has unit tests been added: - [ ] Yes - [ ] No - [ ] No Need 3. Has document been added or modified: - [ ] Yes - [ ] No - [ ] No Need 4. Does it need to update dependencies: - [ ] Yes - [ ] No 5. Are there any changes that cannot be rolled back: - [ ] Yes (If Yes, please explain WHY) - [ ] No ## Further comments If this is a relatively large or complex change, kick off the discussion at [d...@doris.apache.org](mailto:d...@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc... -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org