Conversation
c525055 to
b08514e
Compare
24dd8de to
2e31a25
Compare
66ce470 to
bf8ed19
Compare
15aab08 to
6bb4075
Compare
There was a problem hiding this comment.
What is preventing us from being able to pass in a Session?
There was a problem hiding this comment.
I don't see this class anywhere in the PR.
|
In this PR, Some naming suggestions:
|
|
A few issues with the
Here is my proposal:
|
6bb4075 to
d80e9eb
Compare
Ya, it makes less and less sense to have this |
We sort of had a conversation about unifying the metadata and implementation but seems like they should still be two separate interfaces. At the point I'm inclined to have the implementation to be an empty interface. I'm thinking of maybe calling it |
d80e9eb to
ecd86a9
Compare
highker
left a comment
There was a problem hiding this comment.
One comment on ScalarFunctionImplementation; otherwise looks good to me.
presto-main/src/main/java/com/facebook/presto/metadata/FunctionManager.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
This design pattern doesn't look at an "Interface design pattern" but more like a "delegation". FunctionImplementationType should be good enough for caller to decide who to delegate. This interface may not be necessary. In the worst case, presto-main depends on presto-sql-function, parseSqlFunctionExpression can down cast it:
((SqlInvokedRegularSqlFunctionImplementation) functionImplementation).getImplementation()where only SqlInvokedRegularSqlFunctionImplementation needs a String getImplementation() method.
presto-main/src/main/java/com/facebook/presto/sql/relational/SqlFunctionUtils.java
Outdated
Show resolved
Hide resolved
c5a897e to
9b6a769
Compare
|
Addressed comments. Please review. Thanks! @caithagoras @highker |
Since RowExpression could include CallExpression that are defined in sql text, which would be parsed to different expressions depending on SqlFunctionProperties, we need to include SqlFunctionProperties in the cache keys.
9b6a769 to
6563a19
Compare
|
Commit title |
What can I change it to? 🤣 |
Ready for pre-review on high level. I'll probably use some data structures introduced in #13484 and add tests once it's merged.