cambyzju commented on code in PR #14062: URL: https://github.com/apache/doris/pull/14062#discussion_r1018687167
########## be/src/exec/data_sink.cpp: ########## @@ -171,11 +171,13 @@ Status DataSink::create_data_sink(ObjectPool* pool, const TDataSink& thrift_sink return Status::InternalError("Missing data jdbc sink."); } if (is_vec) { -#ifdef LIBJVM - sink->reset(new vectorized::VJdbcTableSink(pool, row_desc, output_exprs)); -#else - return Status::InternalError("Jdbc table sink is disabled since no libjvm is found!"); -#endif + if (config::enable_java_support) { + sink->reset(new vectorized::VJdbcTableSink(pool, row_desc, output_exprs)); + } else { + return Status::InternalError( + "Jdbc table sink is one enabled, you can change be config " Review Comment: ```suggestion "Jdbc table sink is not enabled, you can change be config " ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org