gengliangwang commented on a change in pull request #35031:
URL: https://github.com/apache/spark/pull/35031#discussion_r777836723



##########
File path: sql/core/src/test/resources/sql-tests/inputs/array.sql
##########
@@ -92,13 +92,31 @@ select
 from primitive_arrays;
 
 -- index out of range for array elements
+-- return null results if array index in [] operator is out of bound
+set spark.sql.ansi.strictIndexOperator=false;

Review comment:
       sure, updated

##########
File path: sql/core/src/test/resources/sql-tests/inputs/map.sql
##########
@@ -1,9 +1,16 @@
 -- test cases for map functions
 
 -- key does not exist
-select element_at(map(1, 'a', 2, 'b'), 5);
+-- return null results if the map key in [] operator doesn't exist
+set spark.sql.ansi.failOnElementNotExists=false;

Review comment:
       updated




-- 
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.

To unsubscribe, e-mail: [email protected]

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