carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anubhav100 <...@git.apache.org>
Subject [GitHub] carbondata pull request #1050: [CARBONDATA -1186]resolved bug for class cast...
Date Fri, 16 Jun 2017 15:17:43 GMT
Github user anubhav100 commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1050#discussion_r122466560
  
    --- Diff: processing/src/main/java/org/apache/carbondata/processing/newflow/sort/SortStepRowUtil.java
---
    @@ -67,8 +67,8 @@
               Object value = data[allCount];
               if (null != value) {
                 if (measureDataType[i] == DataType.DECIMAL) {
    -              BigDecimal decimal = (BigDecimal) value;
    -              measures[index++] = DataTypeUtil.bigDecimalToByte(decimal);
    +              byte [] bytes =(byte[]) value;
    +              measures[index++] = bytes;
    --- End diff --
    
    I faced the class cast exception when I load data byte[] can not be cast to big decimal


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message