spark-instrumented-optimizer/R/pkg
Max Gekk 1b60ff5afe [MINOR][DOCS] Document when current_date and current_timestamp are evaluated
### What changes were proposed in this pull request?
Explicitly document that `current_date` and `current_timestamp` are executed at the start of query evaluation. And all calls of `current_date`/`current_timestamp` within the same query return the same value

### Why are the changes needed?
Users could expect that `current_date` and `current_timestamp` return the current date/timestamp at the moment of query execution but in fact the functions are folded by the optimizer at the start of query evaluation:
0df8dd6073/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/finishAnalysis.scala (L71-L91)

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
by running `./dev/scalastyle`.

Closes #29892 from MaxGekk/doc-current_date.

Authored-by: Max Gekk <max.gekk@gmail.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
2020-09-29 05:20:12 +00:00
..
inst [SPARK-32073][R] Drop R < 3.5 support 2020-06-24 11:05:27 +09:00
R [MINOR][DOCS] Document when current_date and current_timestamp are evaluated 2020-09-29 05:20:12 +00:00
src-native [SPARK-6811] Copy SparkR lib in make-distribution.sh 2015-05-23 00:04:01 -07:00
tests [SPARK-32949][R][SQL] Add timestamp_seconds to SparkR 2020-09-21 22:32:25 -07:00
vignettes [SPARK-30819][SPARKR][ML] Add FMRegressor wrapper to SparkR 2020-04-09 19:38:11 -05:00
.lintr [SPARK-29936][R] Fix SparkR lint errors and add lint-r GitHub Action 2019-11-17 21:01:01 -08:00
.Rbuildignore [SPARK-20877][SPARKR][FOLLOWUP] clean up after test move 2017-06-11 03:00:44 -07:00
DESCRIPTION [SPARK-32452][R][SQL] Bump up the minimum Arrow version as 1.0.0 in SparkR 2020-07-27 14:21:15 +09:00
NAMESPACE [SPARK-32949][R][SQL] Add timestamp_seconds to SparkR 2020-09-21 22:32:25 -07:00