You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by we...@apache.org on 2020/04/27 05:29:43 UTC
[spark] branch master updated (a911287 -> ebc8fa5)
This is an automated email from the ASF dual-hosted git repository.
wenchen pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git.
from a911287 [SPARK-31557][SQL] Legacy time parser should return Gregorian days rather than Julian days
add ebc8fa5 [SPARK-31527][SQL] date add/subtract interval only allow those day precision in ansi mode
No new revisions were added by this update.
Summary of changes:
.../spark/sql/catalyst/analysis/Analyzer.scala | 27 ++++++----
.../catalyst/expressions/datetimeExpressions.scala | 63 ++++++++++++++++++++++
.../spark/sql/catalyst/util/DateTimeUtils.scala | 16 ++++++
.../expressions/DateExpressionsSuite.scala | 35 ++++++++++++
.../expressions/ExpressionSQLBuilderSuite.scala | 4 ++
.../sql/catalyst/util/DateTimeUtilsSuite.scala | 10 +++-
.../resources/sql-tests/inputs/ansi/datetime.sql | 1 +
.../sql-tests/results/{ => ansi}/datetime.sql.out | 56 ++++++++++++++-----
.../sql-tests/results/ansi/interval.sql.out | 7 +--
.../resources/sql-tests/results/datetime.sql.out | 4 +-
.../resources/sql-tests/results/interval.sql.out | 4 +-
.../typeCoercion/native/dateTimeOperations.sql.out | 6 +--
12 files changed, 198 insertions(+), 35 deletions(-)
create mode 100644 sql/core/src/test/resources/sql-tests/inputs/ansi/datetime.sql
copy sql/core/src/test/resources/sql-tests/results/{ => ansi}/datetime.sql.out (93%)
mode change 100755 => 100644
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org