imback82 commented on a change in pull request #26183: [SPARK-29513][SQL] 
REFRESH TABLE should look up catalog/table like v2 commands
URL: https://github.com/apache/spark/pull/26183#discussion_r337331833
 
 

 ##########
 File path: 
sql/core/src/test/scala/org/apache/spark/sql/connector/DataSourceV2SQLSuite.scala
 ##########
 @@ -1086,6 +1086,14 @@ class DataSourceV2SQLSuite
     }
   }
 
+  test("REFRESH TABLE: v2 table") {
+    val t = "testcat.ns1.ns2.tbl"
+    withTable(t) {
+      sql(s"CREATE TABLE $t (id bigint, data string) USING foo")
+      sql(s"REFRESH TABLE $t")
 
 Review comment:
   Any suggestion for a reasonable test here?
   
   `ALTER TABLE` doesn't require `REFRESH TABLE` in the following existing 
test, correct?
   ```Scala
         sql(s"CREATE TABLE $t (id int, data string) USING $v2Format")
         sql(s"ALTER TABLE $t DROP COLUMN data")
         val table = getTableMetadata(t) // <- this calls TableCatalog.loadTable
   ```

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


With regards,
Apache Git Services

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

Reply via email to