Skip to content

Commit f236651

Browse files
committed
improve ansi doc
1 parent 48f93af commit f236651

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

docs/sql-ref-ansi-compliance.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,18 @@ SELECT * FROM t;
144144

145145
The behavior of some SQL functions can be different under ANSI mode (`spark.sql.ansi.enabled=true`).
146146
- `size`: This function returns null for null input.
147-
- `element_at`: This function throws `ArrayIndexOutOfBoundsException` if using invalid indices.
148-
- `element_at`: This function throws `NoSuchElementException` if key does not exist in map.
147+
- `element_at`:
148+
- This function throws `ArrayIndexOutOfBoundsException` if using invalid indices.
149+
- This function throws `NoSuchElementException` if key does not exist in map.
149150
- `elt`: This function throws `ArrayIndexOutOfBoundsException` if using invalid indices.
150151
- `parse_url`: This function throws `IllegalArgumentException` if an input string is not a valid url.
151-
- `to_date` This function should fail with an exception if the input string can't be parsed, or the pattern string is invalid.
152-
- `to_timestamp` This function should fail with an exception if the input string can't be parsed, or the pattern string is invalid.
153-
- `unix_timestamp` This function should fail with an exception if the input string can't be parsed, or the pattern string is invalid.
154-
- `to_unix_timestamp` This function should fail with an exception if the input string can't be parsed, or the pattern string is invalid.
152+
- `to_date`: This function should fail with an exception if the input string can't be parsed, or the pattern string is invalid.
153+
- `to_timestamp`: This function should fail with an exception if the input string can't be parsed, or the pattern string is invalid.
154+
- `unix_timestamp`: This function should fail with an exception if the input string can't be parsed, or the pattern string is invalid.
155+
- `to_unix_timestamp`: This function should fail with an exception if the input string can't be parsed, or the pattern string is invalid.
156+
- `make_date`: This function should fail with an exception if the result date is invalid.
157+
- `make_timestamp`: This function should fail with an exception if the result timestamp is invalid.
158+
- `make_interval`: This function should fail with an exception if the result interval is invalid.
155159

156160
### SQL Operators
157161

0 commit comments

Comments
 (0)