rdblue commented on code in PR #9513:
URL: https://github.com/apache/iceberg/pull/9513#discussion_r1471669400


##########
spark/v3.5/spark-extensions/src/test/java/org/apache/iceberg/spark/extensions/TestViews.java:
##########
@@ -1149,6 +1149,159 @@ public void 
createViewWithSubqueryExpressionUsingGlobalTempView() {
                 "because it references to the temporary object 
global_temp.%s", globalTempView));
   }
 
+  @Test
+  public void describeView() {
+    String viewName = "describeView";
+
+    sql("CREATE VIEW %s AS SELECT id, data FROM %s WHERE id <= 3", viewName, 
tableName);
+    assertThat(sql("DESCRIBE %s", viewName))
+        .containsExactlyInAnyOrder(row("id", "int", ""), row("data", "string", 
""));

Review Comment:
   I think `InAnyOrder` is incorrect. Don't we want these to be in the schema 
order?



-- 
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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to