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

Sort candidate functions in case of UDFArgumentException

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.10.0, 0.11.0
    • Fix Version/s: 0.12.0
    • Component/s: Query Processor
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: