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

Wrong results of UDF when hive.cache.expr.evaluation is set

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.12.0, 0.13.0, 0.13.1
    • Fix Version/s: 0.14.0
    • Component/s: None
    • Labels:
      None

      Description

      It seems that the expression caching doesn't work when using UDF inside another UDF or a hive function.

      For example :
      tbl has one row : 'a','b'
      The following query :

       select concat(custUDF(a),' ', custUDF(b)) from tbl; 

      returns 'a a'

      seems to cache custUDF(a) and use it for custUDF(b).
      Same query without the concat works fine.
      Replacing the concat with another custom UDF also returns 'a a'

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                navis Navis
                Reporter:
                dimamah dima machlin
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: