yaooqinn commented on a change in pull request #28592:
URL: https://github.com/apache/spark/pull/28592#discussion_r429117869
##
File path: docs/sql-ref-datetime-pattern.md
##
@@ -26,44 +26,128 @@ There are several common scenarios for datetime usage in
Spark:
- Datetime funct
yaooqinn commented on a change in pull request #28592:
URL: https://github.com/apache/spark/pull/28592#discussion_r429110475
##
File path: sql/core/src/test/resources/sql-tests/results/datetime.sql.out
##
@@ -750,3 +750,164 @@ select to_timestamp("2019 10:10:10", " hh:mm:ss
yaooqinn commented on a change in pull request #28592:
URL: https://github.com/apache/spark/pull/28592#discussion_r429110475
##
File path: sql/core/src/test/resources/sql-tests/results/datetime.sql.out
##
@@ -750,3 +750,164 @@ select to_timestamp("2019 10:10:10", " hh:mm:ss
yaooqinn commented on a change in pull request #28592:
URL: https://github.com/apache/spark/pull/28592#discussion_r429093201
##
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateFormatter.scala
##
@@ -33,6 +34,8 @@ sealed trait DateFormatter extends
yaooqinn commented on a change in pull request #28592:
URL: https://github.com/apache/spark/pull/28592#discussion_r428667113
##
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateFormatter.scala
##
@@ -40,7 +43,23 @@ class Iso8601DateFormatter(
ex
yaooqinn commented on a change in pull request #28592:
URL: https://github.com/apache/spark/pull/28592#discussion_r428667113
##
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateFormatter.scala
##
@@ -40,7 +43,23 @@ class Iso8601DateFormatter(
ex
yaooqinn commented on a change in pull request #28592:
URL: https://github.com/apache/spark/pull/28592#discussion_r428607225
##
File path: sql/core/src/test/resources/sql-tests/inputs/datetime-corrected.sql
##
@@ -0,0 +1,2 @@
+--SET spark.sql.legacy.timeParserPolicy=CORRECTED
yaooqinn commented on a change in pull request #28592:
URL: https://github.com/apache/spark/pull/28592#discussion_r428606030
##
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateFormatter.scala
##
@@ -40,7 +43,23 @@ class Iso8601DateFormatter(
ex
yaooqinn commented on a change in pull request #28592:
URL: https://github.com/apache/spark/pull/28592#discussion_r428604890
##
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateFormatter.scala
##
@@ -77,14 +96,14 @@ trait LegacyDateFormatter extend
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",
"-MM-d
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",
"-MM-d
yaooqinn commented on a change in pull request #28592:
URL: https://github.com/apache/spark/pull/28592#discussion_r427960736
##
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",
"-MM-d
yaooqinn commented on a change in pull request #28592:
URL: https://github.com/apache/spark/pull/28592#discussion_r427956371
##
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",
"-MM-d
13 matches
Mail list logo