You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Daniel Tenedorio (Jira)" <ji...@apache.org> on 2026/01/28 23:19:00 UTC
[jira] [Resolved] (SPARK-55155) Support foldable expression for SET CATALOG
[ https://issues.apache.org/jira/browse/SPARK-55155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Tenedorio resolved SPARK-55155.
--------------------------------------
Fix Version/s: (was: 4.1.2)
Resolution: Fixed
Issue resolved by pull request 53941
[https://github.com/apache/spark/pull/53941]
> Support foldable expression for SET CATALOG
> -------------------------------------------
>
> Key: SPARK-55155
> URL: https://issues.apache.org/jira/browse/SPARK-55155
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 4.2.0, 4.1.2
> Reporter: Yuyuan Tang
> Assignee: Yuyuan Tang
> Priority: Minor
> Labels: pull-request-available
> Fix For: 4.2.0
>
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> Currently, we support using a string literal, a simple identifier, and the IDENTIFIER clause for `SET CATALOG`.
> {code:sql}
> SET CATALOG cat_name;
> SET CATALOG "cat_name";
> SET CATALOG IDENTIFIER(:param); {code}
>
> This ticket is to support foldable expression for `SET CATALOG`, e.g.,
> {code:sql}
> SET CATALOG :declared_var -- if declared_var cannot be resolved, it is treated as a literal catalog name
> SET CATALOG CAST("cat_name"as String);
> SET CATALOG CONCAT('cat_', 'name');{code}
>
> Note: `SET CATALOG` is case-sensitive, meaning that `SET CATALOG CaT_NaMe` will try to set the catalog to `CaT_NaMe` and will throw a NOT_FOUND error if it does not exist.
--
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