Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-606

double cast for decimals fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • 0.4.0
    • Functions - Drill
    • None

    Description

      postgres:

      foodmart=# select c_row, c_decimal38, cast(cast(c_decimal38 as decimal(38,10)) as decimal(18,7)) from data where c_row = 9;
      c_row | c_decimal38 | c_decimal38
      -------------------------------------------
      9 | 123456789.123456789 | 123456789.1234568
      (1 row)

      drill:

      0: jdbc:drill:schema=dfs> select c_row, c_decimal38, cast(cast(c_decimal38 as decimal(38,10)) as decimal(18,7)) from data where c_row = 9;
      Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while running query.[error_id: "1314b28c-90ac-4e47-b38e-e7f36bb2ca99"
      endpoint {
      address: "qa-node119.qa.lab"
      user_port: 31010
      control_port: 31011
      data_port: 31012
      }
      error_type: 0
      message: "Failure while running fragment. < UnsupportedOperationException:[ DECIMAL38DENSE ]"
      ]
      Error: exception while executing query (state=,code=0)

      Attachments

        Issue Links

          Activity

            People

              mehant Mehant Baid
              cchang@maprtech.com Chun Chang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: