[
https://issues.apache.org/jira/browse/HIVE-28400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HIVE-28400:
----------------------------------
Labels: newbie pull-request-available (was: newbie)
> Refactor QueryProperties using enumeration for readability and performance
> --------------------------------------------------------------------------
>
> Key: HIVE-28400
> URL: https://issues.apache.org/jira/browse/HIVE-28400
> Project: Hive
> Issue Type: Task
> Components: Query Planning
> Reporter: Stamatis Zampetakis
> Assignee: Manya Mehrotra
> Priority: Minor
> Labels: newbie, pull-request-available
>
> The [QueryProperties
> class|https://github.com/apache/hive/blob/78f577d73e5a49ca0f8f1dcae721f3980162872a/ql/src/java/org/apache/hadoop/hive/ql/QueryProperties.java]
> contains many boolean attributes to indicate if a query has a certain
> feature or not. This implementation is wasteful in terms of memory since
> queries usually have only a few of these features and the majority will
> remain at their default values. Moreover, the class is unnecessarily verbose
> since each feature requires a dedicated getter/setter.
> The readability and efficiency of the class and its callers can be improved
> by using an enumeration to hold each available query feature and a Set
> (EnumSet?) inside QueryProperties to hold all the features that appear in the
> query.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)