Zhihua Deng created HIVE-29801:
----------------------------------
Summary: Refactor HMSHandler to use typed execution helpers
Key: HIVE-29801
URL: https://issues.apache.org/jira/browse/HIVE-29801
Project: Hive
Issue Type: Sub-task
Reporter: Zhihua Deng
{{Until today, HMSHandler}} contains a repeated pattern across dozens of Thrift
API methods:
# {{startFunction}} / {{startTableFunction}} / {{startPartitionFunction}}
# {{try}} / {{catch}} with
{{handleException(...).throwIfInstance(...).defaultMetaException()}}
# {{endFunction}} (sometimes with table/constraint name, sometimes via
{{{}endFunctionListeners{}}})
This boilerplate makes methods easy to get subtly wrong (e.g. wrong function
name in {{{}endFunction{}}}, double {{{}startFunction{}}}, inconsistent success
semantics), and discourages consistent exception handling.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)