This is an automated email from the ASF dual-hosted git repository.
gurwls223 pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-3.2 by this push:
new 1c52446 [MINOR][SQL][DOCS] Correct typo in sql migration guide
1c52446 is described below
commit 1c52446d7eef0273070afb2403a4bbf80ae46a22
Author: Diego Luis <[email protected]>
AuthorDate: Mon Nov 1 10:01:33 2021 +0900
[MINOR][SQL][DOCS] Correct typo in sql migration guide
### What changes were proposed in this pull request?
Just correct a minor typo in the migration guide. Change from `Double.Nan`
to `Double.NaN`
### Why are the changes needed?
The correct `NaN` representation for `Double` is `Double.NaN`
### Does this PR introduce _any_ user-facing change?
Yes, it corrects a typo in the migration guide.
### How was this patch tested?
Docs change only.
Closes #34452 from dieggoluis/spark-3-migration-guide-docs.
Authored-by: Diego Luis <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
(cherry picked from commit a4382fe8c87dd909833a01fbd1a02b681886157a)
Signed-off-by: Hyukjin Kwon <[email protected]>
---
docs/sql-migration-guide.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/sql-migration-guide.md b/docs/sql-migration-guide.md
index bdb4fe0..9f51c75 100644
--- a/docs/sql-migration-guide.md
+++ b/docs/sql-migration-guide.md
@@ -242,7 +242,7 @@ license: |
| CAST('+inf' AS FLOAT) | NULL | Float.PositiveInfinity |
| CAST('-infinity' AS FLOAT) | NULL | Float.NegativeInfinity |
| CAST('-inf' AS FLOAT) | NULL | Float.NegativeInfinity |
- | CAST('nan' AS DOUBLE) | NULL | Double.Nan |
+ | CAST('nan' AS DOUBLE) | NULL | Double.NaN |
| CAST('nan' AS FLOAT) | NULL | Float.NaN |
- In Spark 3.0, when casting interval values to string type, there is no
"interval" prefix, for example, `1 days 2 hours`. In Spark version 2.4 and
below, the string contains the "interval" prefix like `interval 1 days 2 hours`.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]