link3280 commented on code in PR #4751:
URL: https://github.com/apache/kyuubi/pull/4751#discussion_r1174500668
##########
externals/kyuubi-flink-sql-engine/src/main/scala/org/apache/kyuubi/engine/flink/schema/RowSet.scala:
##########
@@ -377,4 +398,23 @@ object RowSet {
other.toString
}
}
+
+ /** should stay in sync with
[[org.apache.hadoop.hive.common.type.TimestampTZUtil]] */
+ var TIMESTAMP_LZT_FORMATTER: DateTimeFormatter = {
+ val builder = new DateTimeFormatterBuilder()
+ // Date part
+ builder.append(DateTimeFormatter.ofPattern("uuuu-MM-dd"))
Review Comment:
The format is copied from TimestampTZUtil in `kyuubi-hive-jdbc` module.
IIUC, `uuuu` has better compatibility with years before the era.
--
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]