spark-instrumented-optimizer/sql/catalyst/src/main
Maxim Gekk 331ac60f28 [SPARK-26900][SQL] Simplify truncation to quarter of year
## What changes were proposed in this pull request?

In the PR, I propose to simplify timestamp truncation to quarter of year by using *java.time* API directly. The `LocalDate` instance can be truncation to quarter timestamp via adjusting by chrono field `IsoFields.DAY_OF_QUARTER`.

## How was this patch tested?

This was checked by existing test suite - `DateTimeUtilsSuite`.

Closes #23808 from MaxGekk/date-quarter-of-year.

Authored-by: Maxim Gekk <max.gekk@gmail.com>
Signed-off-by: Sean Owen <sean.owen@databricks.com>
2019-02-20 08:55:08 -06:00
..
antlr4/org/apache/spark/sql/catalyst/parser [SPARK-26435][SQL] Support creating partitioned table using Hive CTAS by specifying partition column names 2018-12-27 16:03:14 +08:00
java/org/apache/spark/sql [SPARK-26621][CORE] Use ConfigEntry for hardcoded configs for shuffle categories. 2019-01-17 12:29:17 -06:00
scala/org/apache/spark/sql [SPARK-26900][SQL] Simplify truncation to quarter of year 2019-02-20 08:55:08 -06:00