[
https://issues.apache.org/jira/browse/SPARK-52969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
TIsNotT updated SPARK-52969:
----------------------------
Description:
When I was reading the ORC table based on data source v2, I found that the
execution plan could not generate DPP plan. When checking the reason, it was
found that ORCscan did not implement SupportsRuntimeV2Filtering. Do we have a
plan to do this, or do we have other ways to fulfill this requirement.
```
case (resExp, r @ DataSourceV2ScanRelation(_, scan: SupportsRuntimeV2Filtering,
_, _, _)) =>
val filterAttrs =
V2ExpressionUtils.resolveRefs[Attribute](scan.filterAttributes, r)
if (resExp.references.subsetOf(AttributeSet(filterAttrs))) {
Some(r)
} else {
None
}
```
was:When I was reading the ORC table based on data source v2, I found that
the execution plan could not generate DPP plan. When checking the reason, it
was found that ORCscan did not implement SupportsRuntimeV2Filtering. Do we have
a plan to do this, or do we have other ways to fulfill this requirement
> DataSourceV2 ORCScan should implements SupportsRuntimeV2Filtering to support
> DPP
> --------------------------------------------------------------------------------
>
> Key: SPARK-52969
> URL: https://issues.apache.org/jira/browse/SPARK-52969
> Project: Spark
> Issue Type: New Feature
> Components: SQL
> Affects Versions: 3.4.4, 3.5.5, 4.0.0
> Reporter: TIsNotT
> Priority: Major
>
> When I was reading the ORC table based on data source v2, I found that the
> execution plan could not generate DPP plan. When checking the reason, it was
> found that ORCscan did not implement SupportsRuntimeV2Filtering. Do we have a
> plan to do this, or do we have other ways to fulfill this requirement.
> ```
> case (resExp, r @ DataSourceV2ScanRelation(_, scan:
> SupportsRuntimeV2Filtering, _, _, _)) =>
> val filterAttrs =
> V2ExpressionUtils.resolveRefs[Attribute](scan.filterAttributes, r)
> if (resExp.references.subsetOf(AttributeSet(filterAttrs))) {
> Some(r)
> } else {
> None
> }
> ```
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]