lirui-apache commented on pull request #12856: URL: https://github.com/apache/flink/pull/12856#issuecomment-656137838
> Thanks @lirui-apache , can you explain what bug in Hive? When we specify a filter like `timestamp '2018-08-08 08:08:09' = p2`, the type of the timestamp literal is `TIMESTAMP(0)`. And when we try to get an object inspector for such type, HiveCatalog will throw exception because the timestamp precision is not supported. Perhaps the root cause is that `FlinkTypeFactory::leastRestrictive` returns the 1st type when we call it with a `List(TIMESTAMP(0), TIMESTAMP(9))`. Therefore, if we change the filter to `p2 = timestamp '2018-08-08 08:08:09'` the query will pass. But anyway, I think it's OK to skip generating filter for timestamp partitions because HMS doesn't support such filters. ---------------------------------------------------------------- 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: us...@infra.apache.org