Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-22943

Metastore JDO pushdown for DATE constants

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0.0
    • Fix Version/s: None
    • Component/s: Standalone Metastore
    • Labels:
      None

      Description

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

      /* 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 }?
          ;
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gopalv Gopal Vijayaraghavan
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: