SP-121 Fix crash and add validation

This commit is contained in:
Eric Harding committed 2019-07-10 15:02:20 -04:00
1 parent 0b7d18301d
commit 5b6edc455f
4 files changed
+75 -6

No files matched your search

+7 -1
View File
@@ -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