You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Max Gekk (Jira)" <ji...@apache.org> on 2025/05/15 07:29:00 UTC
[jira] [Updated] (SPARK-51289) Internal error on RETURNS TABLE
[ https://issues.apache.org/jira/browse/SPARK-51289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Max Gekk updated SPARK-51289:
-----------------------------
Fix Version/s: 4.0.0
> Internal error on RETURNS TABLE
> -------------------------------
>
> Key: SPARK-51289
> URL: https://issues.apache.org/jira/browse/SPARK-51289
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 4.0.0
> Reporter: Max Gekk
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0
>
>
> While testing the 4.0.0-rc1, I have found the internal error on the new feature:
> {code:sql}
> spark-sql (default)> CREATE TEMPORARY FUNCTION fa(x INT) RETURNS TABLE (a INT) RETURN SELECT x;
> Time taken: 0.325 seconds
> spark-sql (default)> select * from fa(1);
> {code}
> {code:java}
> [INTERNAL_ERROR] SQL table function plan should be rewritten during analysis: SQLTableFunction fa, SQLFunction(fa,Some(StructType(StructField(x,IntegerType,true))),Right(StructType(StructField(a,IntegerType,true))),None,Some(SELECT x),None,Some(true),None,true,HashMap(referredTempFunctionsNames -> [], catalogAndNamespace.part.0 -> spark_catalog, referredTempViewNames -> [], catalogAndNamespace.part.1 -> default, sqlConfig.spark.sql.artifact.isolation.enabled -> false, catalogAndNamespace.numParts -> 2, sqlConfig.spark.sql.datetime.java8API.enabled -> true, referredTempVariableNames -> []),None,1740153099265), [1], [a#3]
> SQLSTATE: XX000
> {code}
--
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