Dmytro Tsyliuryk created SPARK-51219:
----------------------------------------

             Summary: Catalog.listTables fails on temp table when 
non-V2SessionCatalog is in use
                 Key: SPARK-51219
                 URL: https://issues.apache.org/jira/browse/SPARK-51219
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 4.0.0
            Reporter: Dmytro Tsyliuryk


When adding temp table `spark.range(0,2).createOrReplaceTempView("abc")` and 
trying to run `spark.catalog.listTables()` with non-V2SessionCatalog catalog, 
the following error occurs:

{code:none}
org.apache.spark.sql.catalyst.parser.ParseException: 
[PARSE_EMPTY_STATEMENT] Syntax error, unexpected empty statement. SQLSTATE: 
42617 (line 1, pos 0)

== SQL ==

^^^
{code}

It is not self-explanatory and creates confusion, as running the same code 
without temp table would work.




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

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

Reply via email to