You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2020/09/21 20:25:00 UTC
[jira] [Assigned] (SPARK-32959) Fix the "Relation: view text" test
in DataSourceV2SQLSuite
[ https://issues.apache.org/jira/browse/SPARK-32959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-32959:
------------------------------------
Assignee: Apache Spark
> 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
> Assignee: Apache Spark
> Priority: Minor
>
> 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