[
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: [email protected]
For additional commands, e-mail: [email protected]