You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2021/05/06 00:43:35 UTC

[GitHub] [hive] wangyum opened a new pull request #2251: HIVE-21563: Improve Table#getEmptyTable performance by disabling registerAllFunctionsOnce

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


[GitHub] [hive] sunchao merged pull request #2251: HIVE-21563: Improve Table#getEmptyTable performance by disabling registerAllFunctionsOnce

Posted by GitBox <gi...@apache.org>.
sunchao merged pull request #2251:
URL: https://github.com/apache/hive/pull/2251


   


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


[GitHub] [hive] wangyum commented on pull request #2251: HIVE-21563: Improve Table#getEmptyTable performance by disabling registerAllFunctionsOnce

Posted by GitBox <gi...@apache.org>.
wangyum commented on pull request #2251:
URL: https://github.com/apache/hive/pull/2251#issuecomment-833144629


   cc @sunchao 


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