SP-121 Fix crash and add validation
This commit is contained in:
1 parent
0b7d18301d
commit
5b6edc455f
4 files changed
+75
-6
No files matched your search
@@ -324,8 +324,14 @@ extern "C" void init_spark_plugin(bts::SparkServices &serv) {
|
||||
|
||||
// Associate the descriptor with a builder function and register
|
||||
// that with the Spark server.
|
||||
serv.register_dynamic_algo_order(
|
||||
auto result =
|
||||
serv.register_dynamic_algo_order(
|
||||
join_desc, []() { return std::make_unique<DynamicJoin>(); });
|
||||
|
||||
if (result != bts::AlgoRegistrationResult::SUCCESS) {
|
||||
// The join_desc has errors
|
||||
// Check the error log for more details
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace order_example
|
||||
|
||||
Reference in new issue
Block a user