Skip to content

Commit

Permalink
[SPARK-33719][DOC] Add make_date/make_timestamp/make_interval into th…
Browse files Browse the repository at this point in the history
…e doc of ANSI Compliance

### What changes were proposed in this pull request?

Add make_date/make_timestamp/make_interval into the doc of ANSI Compliance

### Why are the changes needed?

Users can know that these functions throw runtime exceptions under ANSI mode if the result is not valid.
### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Build doc and check it in browser:
![image](https://user-images.githubusercontent.com/1097932/101608930-34a79e80-39bb-11eb-9294-9d9b8c3f6faa.png)

Closes apache#30683 from gengliangwang/improveDoc.

Authored-by: Gengliang Wang <gengliang.wang@databricks.com>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
  • Loading branch information
gengliangwang authored and xuanyuanking committed Sep 29, 2021
1 parent 79a6e00 commit 8c16d5c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/sql-ref-ansi-compliance.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ The behavior of some SQL functions can be different under ANSI mode (`spark.sql.
- `make_date`: This function should fail with an exception if the result date is invalid.
- `make_timestamp`: This function should fail with an exception if the result timestamp is invalid.
- `make_interval`: This function should fail with an exception if the result interval is invalid.
- `next_day`: This function throws `IllegalArgumentException` if input is not a valid day of week.

### SQL Operators

Expand Down

0 comments on commit 8c16d5c

Please sign in to comment.