-
Notifications
You must be signed in to change notification settings - Fork 31
Add Presto TVF RFC #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
LGTM, it would be great if we could split the RFC into what is configurable and what needs to be configured and what is built in so that its easier for the users to read the RFC directly |
private final String schema; | ||
private final String name; | ||
private final List<ArgumentSpecification> arguments; | ||
private final ReturnTypeSpecification returnTypeSpecification; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the ReturnTypeSpecification
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had missed the api. Have added it.
I had split the declaration, analysis parts of the API and the execution API with the planning pieces (from the framework) in between. I can see why this is confusing as the user does not have continuity with the API. Have changed the writing now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add more details from the template:
- Adoption plan (I expect this will be simple, opt-in for all connectors and new TVFs)
- Test plan
- Other approaches considered
private final boolean rowSemantics; | ||
private final boolean pruneWhenEmpty; | ||
private final boolean passThroughColumns; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While I can't think of a way to simplify this, this seems complicated to debug if the connector author doesn't get it right. I'm wondering what sort of testing tools we can give to connector authors to validate the behavior of their functions? For example, is it possible to see the plan of a proposed table valued function and validate that the plan is correct? It would seem like any TVF would want to write tests that validate the TVF is correctly planned, right?
No description provided.