Uploaded image for project: 'CarbonData'
  1. CarbonData
  2. CARBONDATA-157

for decimal(n,n) column, when filter has int value, then will trow exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.2.0-incubating
    • None
    • None

    Description

      when do as following
      create table Test (c1_int int,c2_Bigint Bigint,c3_Decimal Decimal(38,38)) STORED BY 'org.apache.carbondata.format'
      LOAD DATA INPATH 'hdfs:/Data/Test_Data.csv' INTO table TestOPTIONS('DELIMITER'=',','QUOTECHAR'='','FILEHEADER'='')

      select c3_decimal from Test where c3_decimal =-0.12345678900987654321123456789009876538 or c3_decimal =2345

      then the query will throw exception
      Error: java.lang.RuntimeException: Exception occurred in query execution :: org.carbondata.query.expression.LiteralExpression cannot be cast to org.carbondata.query.expression.conditional.ConditionalExpression (state=,code=0).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Jay357089 Jay
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: