[GitHub] carbondata pull request #1879: [WIP] Fix measure min/max value problem while...

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

[GitHub] carbondata pull request #1879: [WIP] Fix measure min/max value problem while...

qiuchenjian-2
GitHub user manishgupta88 opened a pull request:

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

    [WIP] Fix measure min/max value problem while reading from old store

    Modified code to fix measure min/max problem in old store. Problem in query comes when measure contains a negative value
   
     - [ ] Any interfaces changed?
     
     - [ ] Any backward compatibility impacted?
     
     - [ ] Document update required?
   
     - [ ] Testing done
            Please provide details on
            - Whether new unit test cases have been added or why no new tests are required?
            - How it is tested? Please attach test report.
            - Is it a performance related change? Please attach the performance test report.
            - Any additional information to help reviewers in testing this change.
           
     - [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.
   


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

    $ git pull https://github.com/manishgupta88/carbondata measure_min_max_fix

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

    https://github.com/apache/carbondata/pull/1879.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 #1879
   
----
commit 5c483fff32947c6495e3c231bb350fc816a04de4
Author: manishgupta88 <tomanishgupta18@...>
Date:   2018-01-30T03:26:13Z

    Modified code to fix measure min/max problem in old store

----


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

[GitHub] carbondata issue #1879: [WIP] Fix measure min/max value problem while readin...

qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1879
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/3239/



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

[GitHub] carbondata issue #1879: [WIP] Fix measure min/max value problem while readin...

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

    https://github.com/apache/carbondata/pull/1879
 
    Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/2005/



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

[GitHub] carbondata issue #1879: [WIP] Fix measure min/max value problem while readin...

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

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



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

[GitHub] carbondata issue #1879: [WIP] Fix measure min/max value problem while readin...

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

    https://github.com/apache/carbondata/pull/1879
 
    Can you add testcase for it?


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

[GitHub] carbondata issue #1879: [CARBONDATA-2102] Fix measure min/max value problem ...

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

    https://github.com/apache/carbondata/pull/1879
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/3288/



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

[GitHub] carbondata issue #1879: [CARBONDATA-2102] Fix measure min/max value problem ...

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

    https://github.com/apache/carbondata/pull/1879
 
    Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/2055/



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

[GitHub] carbondata issue #1879: [CARBONDATA-2102] Fix measure min/max value problem ...

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

    https://github.com/apache/carbondata/pull/1879
 
    @manishgupta88 Please rebase it


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

[GitHub] carbondata pull request #1879: [CARBONDATA-2102] Fix measure min/max value p...

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/1879#discussion_r164944758
 
    --- Diff: core/src/main/java/org/apache/carbondata/core/indexstore/blockletindex/BlockletDataRefNodeWrapper.java ---
    @@ -132,13 +132,48 @@ public DimensionRawColumnChunk getDimensionChunk(FileHolder fileReader, int bloc
       public MeasureRawColumnChunk[] getMeasureChunks(FileHolder fileReader, int[][] blockIndexes)
           throws IOException {
         MeasureColumnChunkReader measureColumnChunkReader = getMeasureColumnChunkReader();
    -    return measureColumnChunkReader.readRawMeasureChunks(fileReader, blockIndexes);
    +    MeasureRawColumnChunk[] measureRawColumnChunks =
    +        measureColumnChunkReader.readRawMeasureChunks(fileReader, blockIndexes);
    +    updateMeasureRawColumnChunkMinMaxValues(measureRawColumnChunks);
    +    return measureRawColumnChunks;
       }
     
       @Override public MeasureRawColumnChunk getMeasureChunk(FileHolder fileReader, int blockIndex)
           throws IOException {
         MeasureColumnChunkReader measureColumnChunkReader = getMeasureColumnChunkReader();
    -    return measureColumnChunkReader.readRawMeasureChunk(fileReader, blockIndex);
    +    MeasureRawColumnChunk measureRawColumnChunk =
    --- End diff --
   
    Does it require to change at runtime? is it possible to update those while calling `CarbonUtil.updateMinMaxValues`


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

[GitHub] carbondata pull request #1879: [CARBONDATA-2102] Fix measure min/max value p...

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

    https://github.com/apache/carbondata/pull/1879#discussion_r164953838
 
    --- Diff: core/src/main/java/org/apache/carbondata/core/indexstore/blockletindex/BlockletDataRefNodeWrapper.java ---
    @@ -132,13 +132,48 @@ public DimensionRawColumnChunk getDimensionChunk(FileHolder fileReader, int bloc
       public MeasureRawColumnChunk[] getMeasureChunks(FileHolder fileReader, int[][] blockIndexes)
           throws IOException {
         MeasureColumnChunkReader measureColumnChunkReader = getMeasureColumnChunkReader();
    -    return measureColumnChunkReader.readRawMeasureChunks(fileReader, blockIndexes);
    +    MeasureRawColumnChunk[] measureRawColumnChunks =
    +        measureColumnChunkReader.readRawMeasureChunks(fileReader, blockIndexes);
    +    updateMeasureRawColumnChunkMinMaxValues(measureRawColumnChunks);
    +    return measureRawColumnChunks;
       }
     
       @Override public MeasureRawColumnChunk getMeasureChunk(FileHolder fileReader, int blockIndex)
           throws IOException {
         MeasureColumnChunkReader measureColumnChunkReader = getMeasureColumnChunkReader();
    -    return measureColumnChunkReader.readRawMeasureChunk(fileReader, blockIndex);
    +    MeasureRawColumnChunk measureRawColumnChunk =
    --- End diff --
   
    here I am not calling CarbonUtil.updateMinMaxValues. I am just reversing the min and max values of measures based on oldStore flag. Thsi can be done only during runtime because this min max is at the page level which is read only at the the page level pruning


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

[GitHub] carbondata issue #1879: [CARBONDATA-2102] Fix measure min/max value problem ...

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

    https://github.com/apache/carbondata/pull/1879
 
    SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/3235/



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

[GitHub] carbondata issue #1879: [CARBONDATA-2102] Fix measure min/max value problem ...

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

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



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

[GitHub] carbondata issue #1879: [CARBONDATA-2102] Fix measure min/max value problem ...

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

    https://github.com/apache/carbondata/pull/1879
 
    Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/2073/



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

[GitHub] carbondata issue #1879: [CARBONDATA-2102] Fix measure min/max value problem ...

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

    https://github.com/apache/carbondata/pull/1879
 
    SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/3243/



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

[GitHub] carbondata issue #1879: [CARBONDATA-2102] Fix measure min/max value problem ...

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

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


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

[GitHub] carbondata issue #1879: [CARBONDATA-2102] Fix measure min/max value problem ...

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

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



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

[GitHub] carbondata issue #1879: [CARBONDATA-2102] Fix measure min/max value problem ...

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

    https://github.com/apache/carbondata/pull/1879
 
    Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/2106/



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

[GitHub] carbondata issue #1879: [CARBONDATA-2102] Fix measure min/max value problem ...

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

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



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

[GitHub] carbondata issue #1879: [CARBONDATA-2102] Fix measure min/max value problem ...

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

    https://github.com/apache/carbondata/pull/1879
 
    Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/2127/



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

[GitHub] carbondata pull request #1879: [CARBONDATA-2102] Fix measure min/max value p...

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/1879#discussion_r165294825
 
    --- Diff: core/src/main/java/org/apache/carbondata/core/datastore/block/TableBlockInfo.java ---
    @@ -72,6 +72,11 @@
       private String[] locations;
     
       private ColumnarFormatVersion version;
    +
    +  /**
    +   * flag to determine whether the data block is from old store or current store
    --- End diff --
   
    Mention the version of older store


---
12