robinyqiu commented on a change in pull request #12348: URL: https://github.com/apache/beam/pull/12348#discussion_r465388762
########## File path: sdks/java/extensions/sql/src/main/java/org/apache/beam/sdk/extensions/sql/meta/provider/bigquery/BeamBigQuerySqlDialect.java ########## @@ -253,6 +259,11 @@ private void unparseTrim(SqlWriter writer, SqlCall call, int leftPrec, int right writer.endFunCall(trimFrame); } + private void unparseDateTimeLiteralWrapperFunction( + SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) { + writer.literal(call.operand(0).toString().replace("TIMESTAMP", "DATETIME")); Review comment: It's a `SqlAbstractDateTimeLiteral`, a super class of `SqlTimestampLiteral`, but we can cast here because we know what the real type is. I am ok with either approach. ---------------------------------------------------------------- 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