You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Terry Kim (Jira)" <ji...@apache.org> on 2020/09/21 20:22:00 UTC

[jira] [Created] (SPARK-32959) Fix the "Relation: view text" test in DataSourceV2SQLSuite

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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org