hive-gitbox mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [hive] wangyum opened a new pull request #2251: HIVE-21563: Improve Table#getEmptyTable performance by disabling registerAllFunctionsOnce
Date Thu, 06 May 2021 00:43:35 GMT

wangyum opened a new pull request #2251:
URL: https://github.com/apache/hive/pull/2251


   ### What changes were proposed in this pull request?
   
   Improve `Table#getEmptyTable` performance by disabling `registerAllFunctionsOnce`.
   
   ### Why are the changes needed?
   
   `Table#getEmptyTable` do not need `registerAllFunctionsOnce` . The stack trace:
   ```java
     at org.apache.hadoop.hive.ql.exec.Registry.registerGenericUDF(Registry.java:177)
     at org.apache.hadoop.hive.ql.exec.Registry.registerGenericUDF(Registry.java:170)
     at org.apache.hadoop.hive.ql.exec.FunctionRegistry.<clinit>(FunctionRegistry.java:209)
     at org.apache.hadoop.hive.ql.metadata.Hive.reloadFunctions(Hive.java:247)
     at org.apache.hadoop.hive.ql.metadata.Hive.registerAllFunctionsOnce(Hive.java:231)
     at org.apache.hadoop.hive.ql.metadata.Hive.<init>(Hive.java:388)
     at org.apache.hadoop.hive.ql.metadata.Hive.create(Hive.java:332)
     at org.apache.hadoop.hive.ql.metadata.Hive.getInternal(Hive.java:312)
     at org.apache.hadoop.hive.ql.metadata.Hive.get(Hive.java:288)
     at org.apache.hadoop.hive.ql.session.SessionState.setAuthorizerV2Config(SessionState.java:913)
     at org.apache.hadoop.hive.ql.session.SessionState.setupAuth(SessionState.java:877)
     at org.apache.hadoop.hive.ql.session.SessionState.getAuthenticator(SessionState.java:1479)
     at org.apache.hadoop.hive.ql.session.SessionState.getUserFromAuthenticator(SessionState.java:1150)
     at org.apache.hadoop.hive.ql.metadata.Table.getEmptyTable(Table.java:180)
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   
   ### How was this patch tested?
   
   Existing test.
   


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org


Mime
View raw message