Hive
  1. Hive
  2. HIVE-2327

Optimize REGEX UDFs with constant parameter information

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0, 2.0.0
    • Component/s: UDF
    • 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.

      1. HIVE-2327.01.patch
        17 kB
        Alexander Pivovarov
      2. HIVE-2327.2.patch
        34 kB
        Alexander Pivovarov

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Alexander Pivovarov
              Reporter:
              Adam Kramer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development