spark-instrumented-optimizer/sql/catalyst/src/main
Maxim Gekk a2a41b7bf2 [SPARK-26978][CORE][SQL] Avoid magic time constants
## What changes were proposed in this pull request?

In the PR, I propose to refactor existing code related to date/time conversions, and replace constants like `1000` and `1000000` by `DateTimeUtils` constants and transformation functions from `java.util.concurrent.TimeUnit._`.

## How was this patch tested?

The changes are tested by existing test suites.

Closes #23878 from MaxGekk/magic-time-constants.

Lead-authored-by: Maxim Gekk <max.gekk@gmail.com>
Co-authored-by: Maxim Gekk <maxim.gekk@databricks.com>
Signed-off-by: Sean Owen <sean.owen@databricks.com>
2019-02-26 09:08:12 -06:00
..
antlr4/org/apache/spark/sql/catalyst/parser [SPARK-26215][SQL] Define reserved/non-reserved keywords based on the ANSI SQL standard 2019-02-23 08:38:47 +09: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-26978][CORE][SQL] Avoid magic time constants 2019-02-26 09:08:12 -06:00