Open alamb opened 4 months ago
@mustafasrepo noted that
currently optimize_projections rule doesn't have support for user defined nodes. When plan encounters a user defined node, currently we do not prune any field below it. However, I think we should have this support as demonstrated by your use case.
I believe this is one usecase that @berkaysynnada is planning to address via https://github.com/apache/arrow-datafusion/issues/9111
For sure. Our ultimate goal is to ensure that custom plans benefit from this optimization by implementing the necessary methods.
Describe the bug
Reported in DiscordL https://discord.com/channels/885562378132000778/1166447479609376850/1204466794165706802
My node requests only one column (I defined it as an expression as it stated in UserDefinedLogicalNodeCore), but parquet reader scans all the cols.
The expected behavior is:
However the actual behavior is
Projection Pushdown works with predefined nodes like filter. But not with my custom node
To Reproduce
No response
Expected behavior
No response
Additional context
This came from discord forums: https://discord.com/channels/885562378132000778/1166447479609376850/1204466794165706802
Physical Plan