You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "jingxiong zhong (Jira)" <ji...@apache.org> on 2022/11/23 06:50:00 UTC

[jira] [Created] (SPARK-41229) When using `db_ name.temp_ table_name`, an exception will be thrown

jingxiong zhong created SPARK-41229:
---------------------------------------

             Summary: When using `db_ name.temp_ table_name`, an exception will be thrown
                 Key: SPARK-41229
                 URL: https://issues.apache.org/jira/browse/SPARK-41229
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 3.2.0
         Environment: spark3.2.0
hadoop2.7.3
hive-ms 2.3.9
            Reporter: jingxiong zhong


```with table_hive1 as(select * from db1.table_hive)
select * from db1.table_hive1;```
It will throw exception `org.apache.spark.sql.AnalysisException: Table or view not found: bigdata_qa.zjx_hive1;`but spark in 2.4.3 work well.
```with table_hive1 as(select * from db1.table_hive)
select * from table_hive1;```
It work well.
I'm a little confused. Is this syntax with database name not supported.





--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org