[
https://issues.apache.org/jira/browse/HIVE-29801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Riju Trivedi reassigned HIVE-29801:
-----------------------------------
Assignee: Riju Trivedi
> 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
> Assignee: Riju Trivedi
> Priority: Major
>
> {{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)