diff --git a/be/src/exec/broker_scan_node.h b/be/src/exec/broker_scan_node.h index 68adbf007c4433..e8fb99b24be051 100644 --- a/be/src/exec/broker_scan_node.h +++ b/be/src/exec/broker_scan_node.h @@ -41,29 +41,33 @@ struct ScannerCounter; class BrokerScanNode : public ScanNode { public: BrokerScanNode(ObjectPool* pool, const TPlanNode& tnode, const DescriptorTbl& descs); - virtual ~BrokerScanNode(); + ~BrokerScanNode() override; // Called after create this scan node - virtual Status init(const TPlanNode& tnode, RuntimeState* state = nullptr) override; + Status init(const TPlanNode& tnode, RuntimeState* state = nullptr) override; // Prepare partition infos & set up timer - virtual Status prepare(RuntimeState* state) override; + Status prepare(RuntimeState* state) override; // Start broker scan using ParquetScanner or BrokerScanner. - virtual Status open(RuntimeState* state) override; + Status open(RuntimeState* state) override; // Fill the next row batch by calling next() on the scanner, - virtual Status get_next(RuntimeState* state, RowBatch* row_batch, bool* eos) override; + Status get_next(RuntimeState* state, RowBatch* row_batch, bool* eos) override; + + Status get_next(RuntimeState* state, vectorized::Block* block, bool* eos) override { + return Status::NotSupported("Not Implemented get block"); + } // Close the scanner, and report errors. - virtual Status close(RuntimeState* state) override; + Status close(RuntimeState* state) override; // No use - virtual Status set_scan_ranges(const std::vector& scan_ranges) override; + Status set_scan_ranges(const std::vector& scan_ranges) override; protected: // Write debug string of this into out. - virtual void debug_string(int indentation_level, std::stringstream* out) const override; + void debug_string(int indentation_level, std::stringstream* out) const override; // Update process status to one failed status, // NOTE: Must hold the mutex of this scan node diff --git a/be/src/exec/broker_scanner.h b/be/src/exec/broker_scanner.h index e56fce6bc63316..7906b98ff43130 100644 --- a/be/src/exec/broker_scanner.h +++ b/be/src/exec/broker_scanner.h @@ -56,7 +56,7 @@ class BrokerScanner : public BaseScanner { const TBrokerScanRangeParams& params, const std::vector& ranges, const std::vector& broker_addresses, const std::vector& pre_filter_texprs, ScannerCounter* counter); - virtual ~BrokerScanner(); + ~BrokerScanner() override; // Open this scanner, will initialize information need to Status open() override; @@ -64,6 +64,10 @@ class BrokerScanner : public BaseScanner { // Get next tuple Status get_next(Tuple* tuple, MemPool* tuple_pool, bool* eof, bool* fill_tuple) override; + Status get_next(std::vector& columns, bool* eof) override { + return Status::NotSupported("Not Implemented get columns"); + } + // Close this scanner void close() override;