shameersss1 commented on code in PR #3807:
URL: https://github.com/apache/hive/pull/3807#discussion_r1034468264
##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/parser/Filter.g:
##########
@@ -141,7 +141,11 @@ binOpExpression
(
(key = Identifier op = operator value = DateLiteral)
|
+ (key = Identifier op = operator keyword = KW_DATE value =
StringLiteral)
+ |
Review Comment:
After i did the changes. I wonder the following test case
`create table test_tbl (a int) partitioned by (b string);
insert into table test_tbl partition(b='2020-01-01') values (1);
insert into table test_tbl partition(b='2020-02-01') values (1);
insert into table test_tbl partition(b='2020-03-01') values (1);
select * from test_tbl where b = '2020-03-01';`
The string data type would match the dateString which will lead to result
inconsistency.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]