cloud-fan commented on a change in pull request #30297:
URL: https://github.com/apache/spark/pull/30297#discussion_r521152883



##########
File path: docs/sql-ref-ansi-compliance.md
##########
@@ -111,6 +111,13 @@ SELECT * FROM t;
 
 The behavior of some SQL functions can be different under ANSI mode 
(`spark.sql.ansi.enabled=true`).
   - `size`: This function returns null for null input under ANSI mode.
+  - `element_at`: This function throws `ArrayIndexOutOfBoundsException` if 
using invalid indices. 
+  - `elt`: This function throws `ArrayIndexOutOfBoundsException` if using 
invalid indices.
+
+### SQL Operators
+
+The behavior of some SQL operators can be different under ANSI mode 
(`spark.sql.ansi.enabled=true`).
+  - `GetArrayItem`: This operator throws `ArrayIndexOutOfBoundsException` if 
using invalid indices.

Review comment:
       to be more user facing, `GetArrayItem` -> `array_col[index]`




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to