yaooqinn commented on a change in pull request #28592:
URL: https://github.com/apache/spark/pull/28592#discussion_r428000557



##########
File path: sql/core/src/test/resources/sql-tests/inputs/datetime.sql
##########
@@ -122,3 +122,13 @@ select to_timestamp("2019-10-06T10:11:12'12", 
"yyyy-MM-dd'T'HH:mm:ss''SSSS"); --
 select to_timestamp("2019-10-06T10:11:12'", "yyyy-MM-dd'T'HH:mm:ss''"); -- tail
 select to_timestamp("'2019-10-06T10:11:12", "''yyyy-MM-dd'T'HH:mm:ss"); -- head
 select to_timestamp("P2019-10-06T10:11:12", "'P'yyyy-MM-dd'T'HH:mm:ss"); -- 
head but as single quote
+
+-- Unsupported narrow text style
+select date_format(date '2020-05-23', 'GGGGG');

Review comment:
       For parsing and formatting, throw SparkUpgradeExeception to tell users 
how to restore or update their pattern via our online doc? How about the 
current 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



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to