Terry Kim created SPARK-32959: --------------------------------- Summary: Fix the "Relation: view text" test in DataSourceV2SQLSuite Key: SPARK-32959 URL: https://issues.apache.org/jira/browse/SPARK-32959 Project: Spark Issue Type: Bug Components: SQL Affects Versions: 3.1.0 Reporter: Terry Kim
The existing code just defines a function literal and doesn't execute it: {code:java} test("Relation: view text") { val t1 = "testcat.ns1.ns2.tbl" withTable(t1) { withView("view1") { v1: String => sql(s"CREATE TABLE $t1 USING foo AS SELECT id, data FROM source") sql(s"CREATE VIEW $v1 AS SELECT * from $t1") checkAnswer(sql(s"TABLE $v1"), spark.table("source")) } } } {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org