MaxGekk commented on a change in pull request #31229:
URL: https://github.com/apache/spark/pull/31229#discussion_r559977670



##########
File path: 
sql/core/src/test/scala/org/apache/spark/sql/execution/command/v2/AlterTableAddPartitionSuite.scala
##########
@@ -53,4 +53,19 @@ class AlterTableAddPartitionSuite
       checkAnswer(sql(s"SELECT * FROM $t"), Row(0, "abc"))
     }
   }
+
+  test("SPARK-34149: refresh cache in partition adding") {
+    withNamespaceAndTable("ns", "tbl") { t =>
+      sql(s"CREATE TABLE $t (part int) $defaultUsing PARTITIONED BY (part)")

Review comment:
       No, it exists for any v2 tables but since our v2 table catalog is 
in-memory catalog, and it doesn't support `LOCATION` in `ALTER TABLE .. ADD 
PARTITION` (in fact it doesn't take it into account), the only way to change 
table is to add a partition to fully partitioned table. 




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