You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "L. C. Hsieh (Jira)" <ji...@apache.org> on 2026/04/01 17:43:00 UTC

[jira] [Resolved] (SPARK-56296) Pivot createTableLike to pass full TableInfo including schema, partitioning, constraints, and owner

     [ https://issues.apache.org/jira/browse/SPARK-56296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

L. C. Hsieh resolved SPARK-56296.
---------------------------------
    Fix Version/s: 4.2.0
       Resolution: Fixed

Issue resolved by pull request 55101
[https://github.com/apache/spark/pull/55101]

> Pivot createTableLike to pass full TableInfo including schema, partitioning, constraints, and owner
> ---------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-56296
>                 URL: https://issues.apache.org/jira/browse/SPARK-56296
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 4.2.0
>            Reporter: L. C. Hsieh
>            Assignee: L. C. Hsieh
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.2.0
>
>
> Previously createTableLike(ident, sourceTable, userSpecifiedOverrides) only passed user-specified TBLPROPERTIES to the connector via TableInfo, requiring connectors to (1) call CurrentUserContext.getCurrentUser (a Catalyst internal) to set the owner.
> We should not expose Catalyst internal to connectors. But putting owner to the TableInfo means that we will have to rename userProvidedOverrides to something else, meaning it no longer contains only user overrides.
> So sounds like a better pivot is to earlier approach that sets  all information in TableInfo, except that we won't copy table properties from the source table.



--
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