Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-21563

Improve Table#getEmptyTable performance by disable registerAllFunctionsOnce

    XMLWordPrintableJSON

Details

    Description

      We do not need registerAllFunctionsOnce when Table#getEmptyTable. The stack trace:

        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)
      

      Attachments

        1. HIVE-21563.001.patch
          2 kB
          Yuming Wang

        Issue Links

          Activity

            People

              yumwang Yuming Wang
              yumwang Yuming Wang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m