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 07:01:00 UTC

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

    [ https://issues.apache.org/jira/browse/SPARK-41229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17637595#comment-17637595 ] 

jingxiong zhong commented on SPARK-41229:
-----------------------------------------

[~cloud_fan] Could you help me about this?

> 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
>            Priority: Blocker
>
> SQL1:
> ```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.
> SQL2:
> ```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