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

Optimize REGEX UDFs with constant parameter information

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0, 2.0.0
    • UDF
    • 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.

      Attachments

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

        Issue Links

          Activity

            People

              apivovarov Alexander Pivovarov
              akramer Adam Kramer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: