Skip to content

Conversation

@takezoe
Copy link
Member

@takezoe takezoe commented Mar 23, 2025

Description

Rewrite exclude_columns to projection not to block optimizations

Additional context and related issues

#25117

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

## General
* Enable optimizations through exclude_columns table function ({issue}`25117`)

@takezoe takezoe force-pushed the rewrite-exclude-columns branch from d064acd to 300d7b6 Compare March 23, 2025 13:52
@ebyhr ebyhr requested review from kasiafi and martint March 24, 2025 06:28
Copy link
Member

@kasiafi kasiafi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@takezoe thank you for your effort.

Please note that the mapping of projected columns to output symbols is determined by the requiredSymbols property.
Also, we should match the function by the ConnectorTableFunctionHandle rather than by the function name.

Please refer to this code: https://github.com/trinodb/trino/compare/master...kasiafi:544ExcludeColumnsToProject?expand=1 It solves the same issue, I just never opened a PR.

@takezoe
Copy link
Member Author

takezoe commented Mar 29, 2025

@kasiafi Great thanks! Yours should be used.

@takezoe
Copy link
Member Author

takezoe commented Apr 2, 2025

I hope that @kasiafi will create a PR from his branch. Enabling pushdown through exclude_columns would make exclude_columns really useful. 🙏

@takezoe takezoe closed this Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants