Hive
  1. Hive
  2. HIVE-2327

Optimize REGEX UDFs with constant parameter information

    Details

    • Type: Improvement Improvement
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      There are a lot of UDFs which would show major performance differences if one assumes that some of its arguments are constant.

      Consider, for example, any UDF that takes a regular expression as input: This can be complied once (fast) if it's a constant, or once per row (wicked slow) if it's not a constant.

      Or, consider any UDF that reads from a file and/or takes a filename as input; it would have to re-read the whole file if the filename changes.

        Issue Links

          Activity

          Hide
          John Sichi added a comment -

          Is this different from HIVE-1360?

          Show
          John Sichi added a comment - Is this different from HIVE-1360 ?
          Hide
          Carl Steinbach added a comment -

          HIVE-1360 made it possible for UDFs to detect constant parameters, but it didn't update any of the regex UDFs to take advantage of this feature.

          Show
          Carl Steinbach added a comment - HIVE-1360 made it possible for UDFs to detect constant parameters, but it didn't update any of the regex UDFs to take advantage of this feature.
          Hide
          John Sichi added a comment -

          OK, then I guess this issue should be renamed?

          Show
          John Sichi added a comment - OK, then I guess this issue should be renamed?

            People

            • Assignee:
              Unassigned
              Reporter:
              Adam Kramer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development