You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@carbondata.apache.org by Vimal-Das <gi...@git.apache.org> on 2016/08/31 06:18:14 UTC

[GitHub] incubator-carbondata pull request #110: [CARBONDATA-193]Fix the bug that neg...

Github user Vimal-Das commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/110#discussion_r76929816
  
    --- Diff: core/src/main/java/org/apache/carbondata/core/util/ValueCompressionUtil.java ---
    @@ -78,26 +78,26 @@ private ValueCompressionUtil() {
       private static DataType getDataType(double value, int decimal, byte dataTypeSelected) {
         DataType dataType = DataType.DATA_DOUBLE;
         if (decimal == 0) {
    -      if (value < Byte.MAX_VALUE) {
    +      if (value < Byte.MAX_VALUE && value > Byte.MIN_VALUE) {
    --- End diff --
    
    should we change to value <= Byte.MAX_VALUE && value >= Byte.MIN_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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---