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

Sort candidate functions in case of UDFArgumentException

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.10.0, 0.11.0
    • 0.12.0
    • Query Processor
    • None

    Description

      When Hive provides a list of candidate functions in case of UDFArgumentException such as for the following query:

      create table tbl (a binary);
      select cast (a as tinyint) from tbl limit 1;
      

      the list is not sorted, so the output is not deterministic. Also, we have many test cases depending on the ordering. Thus, it's good to sort the list before emitting it.

      This should fixes quite a few test case failures when Hive runs in JDK7.

      Attachments

        1. HIVE-4873.patch
          10 kB
          Xuefu Zhang

        Issue Links

          Activity

            People

              xuefuz Xuefu Zhang
              xuefuz Xuefu Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: