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

UDF configure not called when fetch task conversion occurs

    XMLWordPrintableJSON

Details

    Description

      When hive.fetch.task.conversion kicks in - UDF configure is not called.

      This is likely due to MapredContext not being available when this conversion occurs.

      The approach I suggest is to create a dummy MapredContext and provide it with the current configuration from ExprNodeGenericFuncEvaluator.

      It is slightly unfortunate that the UDF API relies on MapredContext since some aspects of the context do not apply to the variety of engines and invocation paths for UDFs which makes it difficult to make a fully formed dummy object such as the Reporter objects and the boolean around if it is a Map context.

      Attachments

        Issue Links

          Activity

            People

              jfs John Sherman
              jfs John Sherman
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 1h 50m
                  1h 50m