Make MySQL support optional (#1248)

This commit is contained in:
ZHAO Chun
2019-06-05 12:28:16 +08:00
committed by Mingyu Chen
parent ece34fb838
commit 934ca2481a
19 changed files with 128 additions and 101 deletions

View File

@ -360,8 +360,12 @@ Status ExecNode::create_node(RuntimeState* state, ObjectPool* pool, const TPlanN
return Status::OK;
case TPlanNodeType::MYSQL_SCAN_NODE:
#ifdef DORIS_WITH_MYSQL
*node = pool->add(new MysqlScanNode(pool, tnode, descs));
return Status::OK;
#else
return Status("Don't support MySQL table, you should rebuild Doris with WITH_MYSQL option ON");
#endif
case TPlanNodeType::ES_SCAN_NODE:
*node = pool->add(new EsScanNode(pool, tnode, descs));