You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2026/09/29 13:32:00 UTC
[jira] [Updated] (SPARK-59861) Propagate trusted DataSource V2 primary keys as Catalyst distinct keys
[ https://issues.apache.org/jira/browse/SPARK-59861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated SPARK-59861:
-----------------------------------
Labels: pull-request-available (was: )
> Propagate trusted DataSource V2 primary keys as Catalyst distinct keys
> ------------------------------------------------------------------------
>
> Key: SPARK-59861
> URL: https://issues.apache.org/jira/browse/SPARK-59861
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 4.4.0
> Reporter: Hemanth Boyina
> Priority: Major
> Labels: pull-request-available
>
> Data Source V2 tables can expose primary-key constraints through Table.constraints(). However, DataSourceV2Relation and DataSourceV2ScanRelation do not currently expose trusted primary keys through Catalyst's distinctKeys.
>
> As a result, existing optimizer rules cannot use DSv2 primary-key metadata to eliminate redundant duplicate-removal operations.
>
--
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