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

CBO wrongly type cast decimal literal to int

    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.2.patch
          62 kB
          Vineet Garg
        2. HIVE-17553.1.patch
          1 kB
          Vineet Garg

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: