[GitHub] carbondata pull request #2726: [WIP] Float and Byte DataType support

classic Classic list List threaded Threaded
63 messages Options
1234
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2726: [WIP] Float and Byte DataType support

qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2726
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/328/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2726: [WIP] Float and Byte DataType support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2726
 
    Build Failed  with Spark 2.3.1, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/8574/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2726: [WIP] Float and Byte DataType support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2726
 
    Build Failed with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/504/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2726: [WIP] Float and Byte DataType support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2726
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/345/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2726: [WIP] Float and Byte DataType support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2726
 
    Build Failed  with Spark 2.3.1, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/8592/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2726: [WIP] Float and Byte DataType support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2726
 
    Build Failed with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/522/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2726: [WIP] Float and Byte DataType support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user kunal642 commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2726#discussion_r218715201
 
    --- Diff: core/src/main/java/org/apache/carbondata/core/datastore/page/LazyColumnPage.java ---
    @@ -93,7 +93,22 @@ public double getDouble(int rowId) {
     
       @Override
       public float getFloat(int rowId) {
    -    throw new UnsupportedOperationException("internal error");
    +    DataType dataType = columnPage.getDataType();
    --- End diff --
   
    okay


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2726: [WIP] Float and Byte DataType support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user kunal642 commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2726#discussion_r218715267
 
    --- Diff: core/src/main/java/org/apache/carbondata/core/datastore/page/encoding/adaptive/AdaptiveFloatingCodec.java ---
    @@ -139,15 +139,15 @@ public void encode(int rowId, long value) {
         @Override
         public void encode(int rowId, float value) {
           if (targetDataType == DataTypes.BYTE) {
    -        encodedPage.putByte(rowId, (byte) (value * factor));
    +        encodedPage.putByte(rowId, (byte) (value * (float) factor));
    --- End diff --
   
    added another variable for float


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2726: [WIP] Float and Byte DataType support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user kunal642 commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2726#discussion_r218715345
 
    --- Diff: core/src/main/java/org/apache/carbondata/core/datastore/page/statistics/PrimitivePageStatsCollector.java ---
    @@ -140,6 +149,10 @@ private PrimitivePageStatsCollector(DataType dataType) {
           minDouble = Double.POSITIVE_INFINITY;
           maxDouble = Double.NEGATIVE_INFINITY;
           decimal = 0;
    +    } else if (dataType == DataTypes.FLOAT) {
    +      minFloat = Float.MIN_VALUE;
    --- End diff --
   
    done


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2726: [WIP] Float and Byte DataType support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2726
 
    Build Failed with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/524/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2726: [WIP] Float and Byte DataType support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2726
 
    Build Failed  with Spark 2.3.1, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/8594/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2726: [WIP] Float and Byte DataType support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user kunal642 commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2726#discussion_r218715543
 
    --- Diff: core/src/main/java/org/apache/carbondata/core/datastore/page/encoding/ColumnPageEncoderMeta.java ---
    @@ -132,6 +132,10 @@ private void writeMinMax(DataOutput out) throws IOException {
           out.writeDouble((Double) getMaxValue());
           out.writeDouble((Double) getMinValue());
           out.writeDouble(0d); // unique value is obsoleted, maintain for compatibility
    +    } else if (dataType == DataTypes.FLOAT) {
    +      out.writeDouble((Float) getMaxValue());
    --- End diff --
   
    used writeFloat instead of writeDouble


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2726: [WIP] Float and Byte DataType support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2726
 
    Build Failed  with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/347/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2726: [WIP] Float and Byte DataType support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2726
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/348/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2726: [WIP] Float and Byte DataType support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2726
 
    Build Failed  with Spark 2.3.1, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/8595/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2726: [WIP] Float and Byte DataType support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2726
 
    Build Failed with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/525/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2726: [WIP] Float and Byte DataType support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2726
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/352/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2726: [WIP] Float and Byte DataType support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2726
 
    Build Failed  with Spark 2.3.1, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/8599/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2726: [WIP] Float and Byte DataType support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2726
 
    Build Failed with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/529/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2726: [WIP] Float and Byte DataType support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user kunal642 commented on the issue:

    https://github.com/apache/carbondata/pull/2726
 
    retest this please


---
1234