[
https://issues.apache.org/jira/browse/HIVE-27687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ramesh Kumar Thangarajan resolved HIVE-27687.
---------------------------------------------
Resolution: Fixed
> Logger variable should be static final as its creation takes more time in
> query compilation
> -------------------------------------------------------------------------------------------
>
> Key: HIVE-27687
> URL: https://issues.apache.org/jira/browse/HIVE-27687
> Project: Hive
> Issue Type: Task
> Components: Hive
> Reporter: Ramesh Kumar Thangarajan
> Assignee: Ramesh Kumar Thangarajan
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0
>
> Attachments: Screenshot 2023-09-12 at 5.03.31 PM.png
>
>
> In query compilation,
> LoggerFactory.getLogger() seems to take up more time. Some of the serde
> classes use non static variable for Logger that forces the getLogger() call
> for each of the class creation.
> Making Logger variable static final will avoid this code path for every serde
> class construction.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)