Gopal Vijayaraghavan created HIVE-22943:
-------------------------------------------

             Summary: Metastore pushdown for DATE constants
                 Key: HIVE-22943
                 URL: https://issues.apache.org/jira/browse/HIVE-22943
             Project: Hive
          Issue Type: Bug
          Components: Standalone Metastore
    Affects Versions: 4.0.0
            Reporter: Gopal Vijayaraghavan


https://github.com/apache/hive/blame/master/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/parser/Filter.g#L461

{code}
/* When I figure out how to make lexer backtrack after validating predicate, 
dates would be able 
to support single quotes [( '\'' DateString '\'' ) |]. For now, what we do 
instead is have a hack
to parse the string in metastore code from StringLiteral. */
DateLiteral
    :
    KW_DATE? DateString { ExtractDate(getText()) != null }?
    ;
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to