You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ma...@apache.org on 2022/03/01 15:11:57 UTC
[spark] branch master updated (615c5d8 -> 6cd5803)
This is an automated email from the ASF dual-hosted git repository.
maxgekk pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git.
from 615c5d8 [MINOR] Clean up an unnecessary variable
add 6cd5803 [SPARK-38284][SQL] Add the `TIMESTAMPDIFF()` function
No new revisions were added by this update.
Summary of changes:
docs/sql-ref-ansi-compliance.md | 1 +
.../apache/spark/sql/catalyst/parser/SqlBase.g4 | 4 +
.../sql/catalyst/analysis/FunctionRegistry.scala | 1 +
.../catalyst/expressions/datetimeExpressions.scala | 86 +++++++++++++++++++++-
.../spark/sql/catalyst/parser/AstBuilder.scala | 11 +++
.../spark/sql/catalyst/util/DateTimeUtils.scala | 36 ++++++++-
.../spark/sql/errors/QueryExecutionErrors.scala | 6 ++
.../expressions/DateExpressionsSuite.scala | 63 ++++++++++++++++
.../sql/catalyst/util/DateTimeUtilsSuite.scala | 54 ++++++++++++++
.../sql-functions/sql-expression-schema.md | 3 +-
.../resources/sql-tests/inputs/timestamp-ntz.sql | 6 ++
.../test/resources/sql-tests/inputs/timestamp.sql | 6 ++
.../sql-tests/results/ansi/timestamp.sql.out | 34 ++++++++-
.../sql-tests/results/datetime-legacy.sql.out | 34 ++++++++-
.../sql-tests/results/timestamp-ntz.sql.out | 34 ++++++++-
.../resources/sql-tests/results/timestamp.sql.out | 34 ++++++++-
.../results/timestampNTZ/timestamp-ansi.sql.out | 34 ++++++++-
.../results/timestampNTZ/timestamp.sql.out | 34 ++++++++-
.../sql/errors/QueryExecutionErrorsSuite.scala | 24 ++++--
19 files changed, 489 insertions(+), 16 deletions(-)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org