-
Notifications
You must be signed in to change notification settings - Fork 322
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
feat: add external c++ udf #1509
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1509 +/- ##
============================================
- Coverage 67.47% 67.11% -0.36%
Complexity 323 323
============================================
Files 600 600
Lines 114806 114632 -174
Branches 999 998 -1
============================================
- Hits 77462 76939 -523
- Misses 37137 37486 +349
Partials 207 207
Continue to review full report at Codecov.
|
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.
LGTM
src/cmd/sql_cmd_test.cc
Outdated
sr->ExecuteSQL(create_sql, &status); | ||
ASSERT_TRUE(status.IsOK()) << status.msg; | ||
HandleSQL("insert into t1 values ('aab', 11, 1.2);"); | ||
std::string so_path = openmldb::test::GetParentDir(openmldb::test::GetExeDir()) + "/libtest_udf.so"; |
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.
should ensure libtest_udf.so
was built before sql_cmd_test
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.
libtest_udf.so
has been built before sql_cmd_test
run.
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.
LGTM
create function statement as below:
drop function statement:
execute udf function
TODO:
Problems: