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

Round, AVG and SUM functions reject char/varch input while accepting string input

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.13.0
    • Component/s: UDF
    • Labels:
      None

      Description

      An error similar to the following will occur:

      hive> create table tabs (c char(8), vc varchar(10)) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t';
      hive> select sum(c), avg(c), sum(vc), avg(vc) from tabs;
      FAILED: UDFArgumentTypeException Only numeric or string type arguments are accepted but char(8) is passed.
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: