ColinLeeo commented on code in PR #739:
URL: https://github.com/apache/tsfile/pull/739#discussion_r2954454465
##########
cpp/src/reader/qds_with_timegenerator.h:
##########
@@ -123,6 +123,7 @@ class QDSWithTimeGenerator : public ResultSet {
bool is_null(uint32_t column_index);
RowRecord* get_row_record();
std::shared_ptr<ResultSetMetadata> get_metadata();
+ int get_next_tsblock(common::TsBlock*& block) { return common::E_OK; };
Review Comment:
fixed
##########
cpp/src/reader/table_result_set.cc:
##########
@@ -103,6 +108,35 @@ std::shared_ptr<ResultSetMetadata>
TableResultSet::get_metadata() {
return result_set_metadata_;
}
+int TableResultSet::get_next_tsblock(common::TsBlock*& block) {
+ int ret = common::E_OK;
+ block = nullptr;
+
+ if (!batch_mode_) {
+ return common::E_INVALID_ARG;
+ }
+
+ bool has_next = false;
+ if (RET_FAIL(tsblock_reader_->has_next(has_next))) {
+ return common::E_NO_MORE_DATA;
+ }
Review Comment:
fixed
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]