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/03/30 23:00:01 UTC

[jira] [Assigned] (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 reassigned SPARK-56296:
-----------------------------------

    Assignee: L. C. Hsieh

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