Complete TVF Port#25032
Closed
mohsaka wants to merge 30 commits into
Closed
Conversation
6 tasks
0af0064 to
aea30cc
Compare
7cc7e90 to
59186db
Compare
|
Codenotify: Notifying subscribers in CODENOTIFY files for diff 369605c...8b21f10.
|
This was referenced May 21, 2025
Changes adapted from trino/PR#11336 Original commit: 2e00c8e64c32d6fdd813999b2e04b3b3415235c8 Author: kasiafi Modifications were made to adapt to Presto including: Addition of KEEP in the parser. Adjustment of the TestSqlParser.java to apply to Presto concepts. Switch from Trino's DataType based datatypes to Presto's String based datatypes. Co-authored-by: kasiafi <30203062+kasiafi@users.noreply.github.com>
Changes adapted from trino/PR#11336, 12350, 12407, 12476, 12531, 12813 Original commits: 395fd91c6480a993241eeabd9599873d0d05b24b 998315075343beecef962657b8cbf440d53cc13b 712b8e98ff8a726f95295ac539159fc532628273 131dc44af97b31a2fa8115028d98d06671641bfa 0da095e14b0855f89af3c4f254a5a60280fc7170 5310671f80291394b12ba2ea746e4e60051aaff4 18bb60262cb0850cf839c2b20b434344921f5122 4a7d72afb64f93a9748a4c6b4defc2d42bbae000 Author: kasiafi Modifications were made to adapt to Presto including: Removal of ConnectorExpression. Co-authored-by: kasiafi <30203062+kasiafi@users.noreply.github.com>
Changes adapted from trino/PR#11336 Original commit: e69a052e570718ca568114e61644946feab4383e Author: kasiafi Modifications were made to adapt to Presto including: Removal of the StatementAnalyzerFacotry calls. Add TransactionManager to all StatementAnalyzer constructor calls. Co-authored-by: kasiafi <30203062+kasiafi@users.noreply.github.com>
Changes adapted from trino/PR#11336 Original commit: 493f639a9daa5e6aaadbb4364587196cb5240fc2 Author: kasiafi Modifications were made to adapt to Presto including: Addition of TableFunctionRegistry into FunctionAndTypeManager Removal of FunctionResolver Addition of toPath to TableFunctionRegistry Co-authored-by: kasiafi <30203062+kasiafi@users.noreply.github.com>
Changes adapted from trino/PR#13602 Original commit: dbef4d9be37494967496230573ab400e54aab0d9 Author: kasiafi Co-authored-by: kasiafi <30203062+kasiafi@users.noreply.github.com> Co-authored-by: Xin Zhang <desertsxin@gmail.com>
Co-authored-by: mohsaka <135669458+mohsaka@users.noreply.github.com>
Changes adapted from trino/PR#13653 Author: kasiafi Co-authored-by: kasiafi <30203062+kasiafi@users.noreply.github.com>
Changes adapted from trino/PR#14115 Author: kasiafi Co-authored-by: kasiafi <30203062+kasiafi@users.noreply.github.com>
Changes adapted from trino/PR#14175 Author: kasiafi Co-authored-by: kasiafi <30203062+kasiafi@users.noreply.github.com>
Changes adapted from trino/PR#15256 Author: kasiafi Co-authored-by: kasiafi <30203062+kasiafi@users.noreply.github.com>
Changes adapted from trino/PR#14566 Author: kasiafi Co-authored-by: mohsaka <135669458+mohsaka@users.noreply.github.com> Co-authored-by: kasiafi <30203062+kasiafi@users.noreply.github.com>
Changes adapted from trino/PR#15575 Author: kasiafi Co-authored-by: mohsaka <135669458+mohsaka@users.noreply.github.com> Co-authored-by: kasiafi <30203062+kasiafi@users.noreply.github.com>
Changes adapted from trino/PR#16010,15653 Original commits: 1ee7785548e3cfe9149736e1d0d3176083ab4019 863d2fceb95097068e8f5378adbaca8434b892a8 Author: kasiafi Optimize plans involving table functions Fix incorrect input columns passed to table function Co-authored-by: kasiafi <30203062+kasiafi@users.noreply.github.com>
Changes adapted from trino/PR#16012 Author: kasiafi Co-authored-by: kasiafi <30203062+kasiafi@users.noreply.github.com> Co-authored-by: Xin Zhang <desertsxin@gmail.com>
Changes adapted from trino/PR#16014 Author: kasiafi Co-authored-by: kasiafi <30203062+kasiafi@users.noreply.github.com>
Changes adapted from trino/PR#16058 Author: kasiafi Co-authored-by: kasiafi <30203062+kasiafi@users.noreply.github.com>
Changes adapted from trino/PR#16584 Author: kasiafi Co-authored-by: kasiafi <30203062+kasiafi@users.noreply.github.com>
Changes adapted from trino/PR#16716 Author: kasiafi Co-authored-by: kasiafi <30203062+kasiafi@users.noreply.github.com>
Changes adapted from trino/PR#17117 Author: kasiafi Co-authored-by: kasiafi <30203062+kasiafi@users.noreply.github.com>
Changes adapted from trino/PR#25493 Author: kasiafi Co-authored-by: kasiafi <30203062+kasiafi@users.noreply.github.com>
Co-authored-by: Xin Zhang <desertsxin@gmail.com>
6 tasks
6 tasks
Contributor
Opened #25559 for this future work. |
6 tasks
Contributor
|
We are splitting this PR into smaller pieces. |
This was referenced Aug 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add TVF implementation into Presto, ported from Trino for consistency.
Prestissimo implementation is currently in the works.
Documentation and E2E Prestissmo testing will be added in a future PR. We will add some more improvements in the future but Trino's documentation can be followed currently until we diverge.
https://trino.io/docs/current/functions/table.html
https://trino.io/docs/current/develop/table-functions.html
Motivation and Context
We want to include table function support in Prestissimo. To allow for this we need support in Presto.
Impact
Test Plan
TestTableFunctionInvocation tests as well as Parser and Analysis tests.
Contributor checklist
Release Notes
Please follow release notes guidelines and fill in the release notes below.