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

CBO wrongly type cast decimal literal to int

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: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • Query Planning
    • None

    Description

      explain select 100.000BD from f
      STAGE PLANS:
        Stage: Stage-0
          Fetch Operator
            limit: -1
            Processor Tree:
              TableScan
                alias: f
                Select Operator
                  expressions: 100 (type: int)
                  outputColumnNames: _col0
                  ListSink
      

      Notice that the expression 100.000BD is of type int instead of decimal.

      Attachments

        1. HIVE-17553.1.patch
          1 kB
          Vineet Garg
        2. HIVE-17553.2.patch
          62 kB
          Vineet Garg

        Issue Links

        Activity

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

          People

            vgarg Vineet Garg Assign to me
            vgarg Vineet Garg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment