-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
[native] Add proxygen endpoint for expression evaluation #22927
base: master
Are you sure you want to change the base?
Conversation
822f79f
to
2352cd4
Compare
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.
@pramodsatya : Have done a first round of comments. Will read your tests more closely once you address the comments here.
presto-native-execution/presto_cpp/main/expression/RowExpressionEvaluator.h
Outdated
Show resolved
Hide resolved
presto-native-execution/presto_cpp/main/expression/RowExpressionEvaluator.cpp
Outdated
Show resolved
Hide resolved
presto-native-execution/presto_cpp/main/expression/RowExpressionEvaluator.h
Show resolved
Hide resolved
presto-native-execution/presto_cpp/main/types/PrestoToVeloxExpr.h
Outdated
Show resolved
Hide resolved
presto-native-execution/presto_cpp/main/expression/RowExpressionEvaluator.cpp
Outdated
Show resolved
Hide resolved
presto-native-execution/presto_cpp/main/expression/RowExpressionEvaluator.cpp
Outdated
Show resolved
Hide resolved
presto-native-execution/presto_cpp/main/expression/RowExpressionEvaluator.cpp
Outdated
Show resolved
Hide resolved
presto-native-execution/presto_cpp/main/expression/RowExpressionEvaluator.cpp
Show resolved
Hide resolved
functions::prestosql::registerAllScalarFunctions("presto.default."); | ||
exec::registerFunctionCallToSpecialForms(); | ||
|
||
auto httpServer = std::make_unique<http::HttpServer>( |
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.
You can test RowExpressionEvaluator without all this http stubing if abstracting as suggested. That is cleaner.
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.
Could you please share how to get rid of this http stubbing? I wasn't quite able to follow how it can be refactored.
2352cd4
to
496bbc5
Compare
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.
Thanks for the feedback @aditi-pandit, addressed the comments. Could you please take another look?
presto-native-execution/presto_cpp/main/expression/RowExpressionEvaluator.cpp
Outdated
Show resolved
Hide resolved
void RowExpressionEvaluator::evaluateExpression( | ||
const std::vector<std::unique_ptr<folly::IOBuf>>& body, | ||
proxygen::ResponseHandler* downstream) { | ||
try { |
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.
Thanks for the suggestion, added helper functions and updated accordingly. I could not find a similar utility function in the codebase. Could you please take another look?
presto-native-execution/presto_cpp/main/expression/RowExpressionEvaluator.cpp
Show resolved
Hide resolved
presto-native-execution/presto_cpp/main/expression/RowExpressionEvaluator.cpp
Outdated
Show resolved
Hide resolved
functions::prestosql::registerAllScalarFunctions("presto.default."); | ||
exec::registerFunctionCallToSpecialForms(); | ||
|
||
auto httpServer = std::make_unique<http::HttpServer>( |
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.
Could you please share how to get rid of this http stubbing? I wasn't quite able to follow how it can be refactored.
496bbc5
to
d9c3dcd
Compare
d9c3dcd
to
e19ae51
Compare
e19ae51
to
747ef08
Compare
Adds proxygen endpoint for expression evaluation in the native sidecar, the
expression is delegated to the sidecar by changes in #23331 .
Depends on facebookincubator/velox#10657 .