[GitHub] carbondata pull request #1345: Replace BigDecimal to double to improve perfo...

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

[GitHub] carbondata pull request #1345: Replace BigDecimal to double to improve perfo...

qiuchenjian-2
GitHub user ravipesala opened a pull request:

    https://github.com/apache/carbondata/pull/1345

    Replace BigDecimal to double to improve performance

   

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ravipesala/incubator-carbondata adaptive-encode-perf

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/carbondata/pull/1345.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1345
   
----
commit 59e215260dc307896bdda8945c5f4e634c3ad083
Author: Ravindra Pesala <[hidden email]>
Date:   2017-09-10T08:51:15Z

    Replace Bigdecimal to double to improve performance

----


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

[GitHub] carbondata issue #1345: Replace BigDecimal to double to improve performance

qiuchenjian-2
Github user ravipesala commented on the issue:

    https://github.com/apache/carbondata/pull/1345
 
    SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/644/



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

[GitHub] carbondata issue #1345: Replace BigDecimal to double to improve performance

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

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


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

[GitHub] carbondata issue #1345: Replace BigDecimal to double to improve performance

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

    https://github.com/apache/carbondata/pull/1345
 
    SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/659/



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

[GitHub] carbondata issue #1345: [CARBONDATA-1471] Replace BigDecimal to double to im...

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

    https://github.com/apache/carbondata/pull/1345
 
    SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/705/



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

[GitHub] carbondata issue #1345: [CARBONDATA-1471] Replace BigDecimal to double to im...

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

    https://github.com/apache/carbondata/pull/1345
 
    Build Failed  with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/5/



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

[GitHub] carbondata issue #1345: [CARBONDATA-1471] Replace BigDecimal to double to im...

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

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


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

[GitHub] carbondata pull request #1345: [CARBONDATA-1471] Replace BigDecimal to doubl...

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

    https://github.com/apache/carbondata/pull/1345#discussion_r138514001
 
    --- Diff: core/src/main/java/org/apache/carbondata/core/datastore/page/encoding/adaptive/AdaptiveFloatingCodec.java ---
    @@ -98,12 +97,11 @@ protected ColumnPageEncoderMeta getEncoderMeta(ColumnPage inputPage) {
       public ColumnPageDecoder createDecoder(ColumnPageEncoderMeta meta) {
         assert meta instanceof AdaptiveFloatingEncoderMeta;
         AdaptiveFloatingEncoderMeta codecMeta = (AdaptiveFloatingEncoderMeta) meta;
    -    final Compressor compressor = CompressorFactory.getInstance().getCompressor(
    -        codecMeta.getCompressorName());
    +    final Compressor compressor =
    +        CompressorFactory.getInstance().getCompressor(codecMeta.getCompressorName());
         final DataType targetDataType = codecMeta.getTargetDataType();
         return new ColumnPageDecoder() {
    -      @Override
    -      public ColumnPage decode(byte[] input, int offset, int length)
    +      @Override public ColumnPage decode(byte[] input, int offset, int length)
    --- End diff --
   
    move `@Override` to previous line


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

[GitHub] carbondata pull request #1345: [CARBONDATA-1471] Replace BigDecimal to doubl...

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

    https://github.com/apache/carbondata/pull/1345#discussion_r138514170
 
    --- Diff: core/src/main/java/org/apache/carbondata/core/datastore/page/encoding/adaptive/AdaptiveFloatingCodec.java ---
    @@ -211,24 +199,23 @@ public long decodeLong(int value) {
           throw new RuntimeException("internal error: " + debugInfo());
         }
     
    -    @Override
    -    public double decodeDouble(byte value) {
    -      return BigDecimal.valueOf(value).divide(factor).doubleValue();
    +    @Override public double decodeDouble(byte value) {
    --- End diff --
   
    move @Override to previous line


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

[GitHub] carbondata pull request #1345: [CARBONDATA-1471] Replace BigDecimal to doubl...

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

    https://github.com/apache/carbondata/pull/1345#discussion_r138515278
 
    --- Diff: core/src/main/java/org/apache/carbondata/core/datastore/page/encoding/adaptive/AdaptiveFloatingCodec.java ---
    @@ -98,12 +97,11 @@ protected ColumnPageEncoderMeta getEncoderMeta(ColumnPage inputPage) {
       public ColumnPageDecoder createDecoder(ColumnPageEncoderMeta meta) {
         assert meta instanceof AdaptiveFloatingEncoderMeta;
         AdaptiveFloatingEncoderMeta codecMeta = (AdaptiveFloatingEncoderMeta) meta;
    -    final Compressor compressor = CompressorFactory.getInstance().getCompressor(
    -        codecMeta.getCompressorName());
    +    final Compressor compressor =
    +        CompressorFactory.getInstance().getCompressor(codecMeta.getCompressorName());
         final DataType targetDataType = codecMeta.getTargetDataType();
         return new ColumnPageDecoder() {
    -      @Override
    -      public ColumnPage decode(byte[] input, int offset, int length)
    +      @Override public ColumnPage decode(byte[] input, int offset, int length)
    --- End diff --
   
    ok


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

[GitHub] carbondata issue #1345: [CARBONDATA-1471] Replace BigDecimal to double to im...

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

    https://github.com/apache/carbondata/pull/1345
 
    SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/720/



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

[GitHub] carbondata issue #1345: [CARBONDATA-1471] Replace BigDecimal to double to im...

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

    https://github.com/apache/carbondata/pull/1345
 
    LGTM


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

[GitHub] carbondata pull request #1345: [CARBONDATA-1471] Replace BigDecimal to doubl...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user asfgit closed the pull request at:

    https://github.com/apache/carbondata/pull/1345


---