[GitHub] carbondata pull request #1656: [CARBONDATA-1887] Block pruning not working f...

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

[GitHub] carbondata pull request #1656: [CARBONDATA-1887] Block pruning not working f...

qiuchenjian-2
GitHub user pawanmalwal opened a pull request:

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

    [CARBONDATA-1887] Block pruning not working for date type column

    Block pruning not working for date type column.
    Root Cause : Type casting of String for DateType is not handled
   
    Solution: CastExpressionOptimization should handle the casting of String for DateType
   
    Be sure to do all of the following checklist to help us incorporate
    your contribution quickly and easily:
   
     - [X] Any interfaces changed?
     None
     - [X] Any backward compatibility impacted?
     None
     - [X] Document update required?
    NA
     - [X] 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.
           Done manual testing
     - [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.
    NA
   


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

    $ git pull https://github.com/pawanmalwal/carbondata date_datatype_block_pruning_issue_fix

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

    https://github.com/apache/carbondata/pull/1656.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 #1656
   
----
commit de83c25a03606a42eac049433798b2cfdfc7b5af
Author: Pawan Malwal <[hidden email]>
Date:   2017-12-13T07:31:20Z

    [CARBONDATA-1887] Block pruning not working for date type column

----


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

[GitHub] carbondata pull request #1656: [CARBONDATA-1247] Block pruning not working f...

qiuchenjian-2
Github user pawanmalwal closed the pull request at:

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


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

[GitHub] carbondata pull request #1656: [CARBONDATA-1247] Block pruning not working f...

qiuchenjian-2
In reply to this post by qiuchenjian-2
GitHub user pawanmalwal reopened a pull request:

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

    [CARBONDATA-1247] Block pruning not working for date type column

    Block pruning not working for date type column.
    Root Cause : Type casting of String for DateType is not handled
   
    Solution: CastExpressionOptimization should handle the casting of String for DateType
   
    Be sure to do all of the following checklist to help us incorporate
    your contribution quickly and easily:
   
     - [X] Any interfaces changed?
     None
     - [X] Any backward compatibility impacted?
     None
     - [X] Document update required?
    NA
     - [X] 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.
           Done manual testing
     - [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.
    NA
   


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

    $ git pull https://github.com/pawanmalwal/carbondata date_datatype_block_pruning_issue_fix

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

    https://github.com/apache/carbondata/pull/1656.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 #1656
   
----
commit de83c25a03606a42eac049433798b2cfdfc7b5af
Author: Pawan Malwal <[hidden email]>
Date:   2017-12-13T07:31:20Z

    [CARBONDATA-1887] Block pruning not working for date type column

----


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

[GitHub] carbondata issue #1656: [CARBONDATA-1247] Block pruning not working for date...

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

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



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

[GitHub] carbondata issue #1656: [CARBONDATA-1247] Block pruning not working for date...

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

    https://github.com/apache/carbondata/pull/1656
 
    Build Failed with Spark 2.2.0, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/711/



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

[GitHub] carbondata issue #1656: [CARBONDATA-1247] Block pruning not working for date...

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

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



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

[GitHub] carbondata pull request #1656: [CARBONDATA-1247] Block pruning not working f...

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/1656#discussion_r156841784
 
    --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/execution/CastExpressionOptimization.scala ---
    @@ -67,6 +68,32 @@ object CastExpressionOptimization {
         }
       }
     
    +  def typeCastStringToLongForDateType(v: Any): Any = {
    --- End diff --
   
    code duplicated, extract common code


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

[GitHub] carbondata pull request #1656: [CARBONDATA-1247] Block pruning not working f...

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/1656#discussion_r156841880
 
    --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/execution/CastExpressionOptimization.scala ---
    @@ -82,6 +109,21 @@ object CastExpressionOptimization {
         }
       }
     
    +  def typeCastStringToLongListForDateType(list: Seq[Expression]): Seq[Expression] = {
    --- End diff --
   
    code duplicated, extract common code


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

[GitHub] carbondata pull request #1656: [CARBONDATA-1247] Block pruning not working f...

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/1656#discussion_r156842298
 
    --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/execution/CastExpressionOptimization.scala ---
    @@ -122,6 +164,13 @@ object CastExpressionOptimization {
                 } else {
                   Some(CastExpr(c))
                 }
    +          case d: DateType if t.sameType(StringType) =>
    --- End diff --
   
    Merge the case blocks as follows,
    ```
    case TimestampType | DateType
    ```


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

[GitHub] carbondata pull request #1656: [CARBONDATA-1247] Block pruning not working f...

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

    https://github.com/apache/carbondata/pull/1656#discussion_r156907084
 
    --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/execution/CastExpressionOptimization.scala ---
    @@ -122,6 +164,13 @@ object CastExpressionOptimization {
                 } else {
                   Some(CastExpr(c))
                 }
    +          case d: DateType if t.sameType(StringType) =>
    --- End diff --
   
    Handled comment.  Please review.


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

[GitHub] carbondata pull request #1656: [CARBONDATA-1247] Block pruning not working f...

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

    https://github.com/apache/carbondata/pull/1656#discussion_r156907109
 
    --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/execution/CastExpressionOptimization.scala ---
    @@ -82,6 +109,21 @@ object CastExpressionOptimization {
         }
       }
     
    +  def typeCastStringToLongListForDateType(list: Seq[Expression]): Seq[Expression] = {
    --- End diff --
   
    Handled comments.  Please review.


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

[GitHub] carbondata pull request #1656: [CARBONDATA-1247] Block pruning not working f...

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

    https://github.com/apache/carbondata/pull/1656#discussion_r156907140
 
    --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/execution/CastExpressionOptimization.scala ---
    @@ -67,6 +68,32 @@ object CastExpressionOptimization {
         }
       }
     
    +  def typeCastStringToLongForDateType(v: Any): Any = {
    --- End diff --
   
    Handled comments.  Please review.


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

[GitHub] carbondata issue #1656: [CARBONDATA-1247] Block pruning not working for date...

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

    https://github.com/apache/carbondata/pull/1656
 
    Build Failed with Spark 2.2.0, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/732/



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

[GitHub] carbondata issue #1656: [CARBONDATA-1247] Block pruning not working for date...

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

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



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

[GitHub] carbondata issue #1656: [CARBONDATA-1247] Block pruning not working for date...

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

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



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

[GitHub] carbondata issue #1656: [CARBONDATA-1247] Block pruning not working for date...

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

    https://github.com/apache/carbondata/pull/1656
 
    Build Success with Spark 2.2.0, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/749/



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

[GitHub] carbondata issue #1656: [CARBONDATA-1247] Block pruning not working for date...

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

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



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

[GitHub] carbondata issue #1656: [CARBONDATA-1247] Block pruning not working for date...

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

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



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

[GitHub] carbondata issue #1656: [CARBONDATA-1247] Block pruning not working for date...

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

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



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

[GitHub] carbondata issue #1656: [CARBONDATA-1247] Block pruning not working for date...

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

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



---
12