spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (Jira)" <j...@apache.org>
Subject [jira] [Assigned] (SPARK-31467) Fix test issue with table named `test` in hive/SQLQuerySuite
Date Fri, 01 May 2020 16:52:02 GMT

     [ https://issues.apache.org/jira/browse/SPARK-31467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Apache Spark reassigned SPARK-31467:
------------------------------------

    Assignee: Apache Spark

> Fix test issue with table named `test` in hive/SQLQuerySuite
> ------------------------------------------------------------
>
>                 Key: SPARK-31467
>                 URL: https://issues.apache.org/jira/browse/SPARK-31467
>             Project: Spark
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 3.1.0
>            Reporter: feiwang
>            Assignee: Apache Spark
>            Priority: Major
>
> If we add ut in hive/SQLQuerySuite and use table named `test`. We may meet these exceptions.
> {code:java}
>  org.apache.spark.sql.AnalysisException: Inserting into an RDD-based table is not allowed.;;
> [info] 'InsertIntoTable Project [_1#1403 AS key#1406, _2#1404 AS value#1407], Map(name
-> Some(n1)), true, false
> [info] +- Project [col1#3850]
> [info]    +- LocalRelation [col1#3850]
> {code}
> {code:java}
> org.apache.spark.sql.catalyst.analysis.TableAlreadyExistsException: Table or view 'test'
already exists in database 'default';
> [info]   at org.apache.spark.sql.hive.HiveExternalCatalog$$anonfun$doCreateTable$1.apply$mcV$sp(HiveExternalCatalog.scala:226)
> [info]   at org.apache.spark.sql.hive.HiveExternalCatalog$$anonfun$doCreateTable$1.apply(HiveExternalCatalog.scala:216)
> [info]   at org.apache.spark.sql.hive.HiveExternalCatalog$$anonfun$doCreateTable$1.apply(HiveExternalCatalog.scala:216)
> [info]   at org.apache.spark.sql.hive.HiveExternalCatalog.withClient(HiveExternalCatalog.scala:97)
> [info]   at org.apache.spark.sql.hive.HiveExternalCatalog.doCreateTable(HiveExternalCatalog.scala:216)
> {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


Mime
View raw message