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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.12.0, 0.13.0, 0.13.1
    • 0.14.0
    • None
    • 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

        1. HIVE-7314.1.patch.txt
          1 kB
          Navis Ryu

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: