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 ---- --- |
Github user pawanmalwal closed the pull request at:
https://github.com/apache/carbondata/pull/1656 --- |
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 ---- --- |
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/ --- |
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/ --- |
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/ --- |
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 --- |
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 --- |
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 ``` --- |
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. --- |
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. --- |
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. --- |
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/ --- |
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/ --- |
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/ --- |
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/ --- |
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/ --- |
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/ --- |
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/ --- |
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/ --- |
Free forum by Nabble | Edit this page |