Reduce UT binary size (#314)
* Reduce UT binary size Almost every module depend on ExecEnv, and ExecEnv contains all singleton, which make UT binary contains all object files. This patch seperate ExecEnv's initial and destory to anthor file to avoid other file's dependence. And status.cc include debug_util.h which depend tuple.h tuple_row.h, and I move get_stack_trace() to stack_util.cpp to reduce status.cc's dependence. I add USE_RTTI=1 to build rocksdb to avoid linking librocksdb.a Issue: #292 * Update
This commit is contained in:
@ -40,7 +40,6 @@
|
||||
#include "runtime/string_value.hpp"
|
||||
#include "runtime/tuple.h"
|
||||
#include "runtime/tuple_row.h"
|
||||
#include "util/debug_util.h"
|
||||
#include "util/runtime_profile.h"
|
||||
|
||||
using llvm::BasicBlock;
|
||||
@ -207,7 +206,7 @@ Status AggregationNode::open(RuntimeState* state) {
|
||||
for (int i = 0; i < batch.num_rows(); ++i) {
|
||||
TupleRow* row = batch.get_row(i);
|
||||
VLOG_ROW << "id=" << id() << " input row: "
|
||||
<< print_row(row, _children[0]->row_desc());
|
||||
<< row->to_string(_children[0]->row_desc());
|
||||
}
|
||||
}
|
||||
|
||||
@ -291,7 +290,7 @@ Status AggregationNode::get_next(RuntimeState* state, RowBatch* row_batch, bool*
|
||||
row->set_tuple(0, output_tuple);
|
||||
|
||||
if (ExecNode::eval_conjuncts(ctxs, num_ctxs, row)) {
|
||||
VLOG_ROW << "output row: " << print_row(row, row_desc());
|
||||
VLOG_ROW << "output row: " << row->to_string(row_desc());
|
||||
row_batch->commit_last_row();
|
||||
++_num_rows_returned;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user