HyukjinKwon commented on a change in pull request #35454:
URL: https://github.com/apache/spark/pull/35454#discussion_r805333400



##########
File path: python/pyspark/sql/tests/test_types.py
##########
@@ -118,8 +118,9 @@ def test_infer_schema(self):
 
         with self.tempView("test"):
             df.createOrReplaceTempView("test")
-            result = self.spark.sql("SELECT l[0].a from test where d['key'].d 
= '2'")
-            self.assertEqual(1, result.head()[0])
+            with self.sql_conf({"spark.sql.ansi.enabled": False}):

Review comment:
       Can you explain why we set this as `False`, and can we create another 
DataFrame that fails only when `spark.sql.ansi.enabled` is `False` instead of 
disabling it for all?




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