travis-bowen commented on code in PR #1262:
URL: https://github.com/apache/polaris/pull/1262#discussion_r2017116066


##########
regtests/t_pyspark/src/test_spark_sql_s3_with_privileges.py:
##########
@@ -359,6 +359,14 @@ def 
test_spark_creates_table_in_custom_namespace_dir(root_client, snowflake_cata
     entries = spark.sql(
       f"SELECT file FROM 
db1.schema.table_in_custom_namespace_location.metadata_log_entries").collect()
     assert namespace_location in entries[0][0]
+    try:
+        assert spark.sql("SELECT * FROM 
table_in_custom_namespace_location").count() == 0
+        # check the metadata and assert the custom namespace location is used
+        entries = spark.sql(
+            f"SELECT file FROM 
db1.schema.table_in_custom_namespace_location.metadata_log_entries").collect()
+        assert namespace_location in entries[0][0]
+    finally:
+        spark.sql('drop table table_in_custom_namespace_location PURGE')

Review Comment:
   Yeah - each test kind of cases things slightly differently. I went ahead and 
matched the casing at least within this test.



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

Reply via email to