wenruimeng commented on code in PR #2823:
URL: https://github.com/apache/calcite/pull/2823#discussion_r887437888


##########
core/src/main/codegen/templates/Parser.jj:
##########
@@ -4528,17 +4528,50 @@ SqlLiteral DateTimeLiteral() :
         return SqlParserUtil.parseTimestampLiteral(p, s.end(this));
     }
 |
-    <DATE> { s = span(); } <QUOTED_STRING> {
-        return SqlParserUtil.parseDateLiteral(token.image, s.end(this));
-    }
+    <DATE> { s = span(); } ((<QUOTED_STRING> | <BIG_QUERY_QUOTED_STRING>)
+      {
+          p = SqlParserUtil.stripQuotes(token.image, "'", "'", "\\'",
+              Casing.UNCHANGED);
+          return SqlParserUtil.parseDateLiteralWithoutQuote(p, s.end(this));
+      }
+     | <BIG_QUERY_DOUBLE_QUOTED_STRING>

Review Comment:
   @julianhyde Updated based on your feedback. Let me know whether it's what 
you expected. 



-- 
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]

Reply via email to