[FLINK-18529][hive] Query Hive table and filter by timestamp partitio… - #12856
Conversation
|
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit fc30e2c (Wed Jul 08 13:40:48 UTC 2020) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. DetailsThe Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
JingsongLi
left a comment
There was a problem hiding this comment.
Thanks @lirui-apache , can you explain what bug in Hive?
| } | ||
| LogicalTypeRoot typeRoot = dataType.getLogicalType().getTypeRoot(); | ||
| if (typeRoot.getFamilies().contains(LogicalTypeFamily.DATETIME)) { | ||
| // hive not support partition filter push down with these types. |
There was a problem hiding this comment.
Minor: Add comments to explain, there are some bugs in below codes.
When we specify a filter like |
…n can fail This closes #12856
…n can fail
What is the purpose of the change
Fix the issue that querying a Hive table and filter by timestamp partition column can fail.
Brief change log
ExpressionExtractor, because such filters cannot be pushed down anyway.Verifying this change
Existing and added tests
Does this pull request potentially affect one of the following parts:
@Public(Evolving): noDocumentation