You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/07/09 10:47:10 UTC

[GitHub] [flink] JingsongLi commented on a change in pull request #12856: [FLINK-18529][hive] Query Hive table and filter by timestamp partitio…

JingsongLi commented on a change in pull request #12856:
URL: https://github.com/apache/flink/pull/12856#discussion_r452128711



##########
File path: flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/catalog/hive/util/HiveTableUtil.java
##########
@@ -453,22 +454,16 @@ public String visit(ValueLiteralExpression valueLiteral) {
 			if (value == null) {
 				return "null";
 			}
+			LogicalTypeRoot typeRoot = dataType.getLogicalType().getTypeRoot();
+			if (typeRoot.getFamilies().contains(LogicalTypeFamily.DATETIME)) {
+				// hive not support partition filter push down with these types.

Review comment:
       Minor: Add comments to explain, there are some bugs in below codes.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org