Github user lion-x commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/90#discussion_r76195202
  
    --- Diff: 
core/src/main/java/org/apache/carbondata/core/util/DataTypeUtil.java ---
    @@ -62,7 +62,12 @@ public static Object 
getMeasureValueBasedOnDataType(String msrValue, DataType da
           case INT:
             return Double.valueOf(msrValue).longValue();
           case LONG:
    -        return Long.valueOf(msrValue);
    +        int index = msrValue.indexOf(".");
    +        if (index != -1) {
    +          return Long.valueOf(msrValue.substring(0,index));
    +        } else {
    +          return Long.valueOf(msrValue);
    +        }
    --- End diff --
    
    @manishgupta88 Hi, in this PR, I want to solve the problem described as 
below:
    
    when the Loding msrValue is decimal like "3.1415926" and the column type is 
Long, the original flow will not work well. It will return us a null value.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to