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

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

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment