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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.13.0
    • UDF
    • 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

        1. HIVE-6039.patch
          5 kB
          Xuefu Zhang

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: