Skip to content
Permalink
Browse files
[chore] Fix compilation errors reported by clang (#9584)
  • Loading branch information
adonis0147 committed May 16, 2022
1 parent c731e84 commit 5660815dc6a1f954cb9179008a81e70095b94cb0
Showing 2 changed files with 5 additions and 13 deletions.
@@ -44,8 +44,6 @@ VJsonScanner::VJsonScanner(RuntimeState* state, RuntimeProfile* profile,
: JsonScanner(state, profile, params, ranges, broker_addresses, pre_filter_texprs, counter),
_cur_vjson_reader(nullptr) {}

VJsonScanner::~VJsonScanner() {}

Status VJsonScanner::get_next(vectorized::Block* output_block, bool* eof) {
SCOPED_TIMER(_read_timer);
const int batch_size = _state->batch_size();
@@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.

#ifndef BE_SRC_VJSON_SCANNER_H_
#define BE_SRC_VJSON_SCANNER_H_
#pragma once

#include <rapidjson/document.h>
#include <rapidjson/error/en.h>
@@ -32,14 +31,8 @@

#include "common/status.h"
#include "exec/base_scanner.h"
#include "exec/exec_node.h"
#include "exec/json_scanner.h"
#include "exprs/expr_context.h"
#include "runtime/descriptors.h"
#include "runtime/mem_pool.h"
#include "runtime/mem_tracker.h"
#include "runtime/row_batch.h"
#include "runtime/tuple.h"
#include "util/runtime_profile.h"

namespace doris {
@@ -55,8 +48,10 @@ class VJsonScanner : public JsonScanner {
const std::vector<TNetworkAddress>& broker_addresses,
const std::vector<TExpr>& pre_filter_texprs, ScannerCounter* counter);

~VJsonScanner();

Status get_next(doris::Tuple* tuple, MemPool* tuple_pool, bool* eof,
bool* fill_tuple) override {
return Status::NotSupported("Not Implemented get tuple");
}
Status get_next(vectorized::Block* output_block, bool* eof) override;

private:
@@ -117,4 +112,3 @@ class VJsonReader : public JsonReader {

} // namespace vectorized
} // namespace doris
#endif

0 comments on commit 5660815

Please sign in to comment.