Skip to content

Commit 5d93bc7

Browse files
poyrazKgithub-actions[bot]
authored andcommitted
style: automated clang-format fixes
1 parent 145f881 commit 5d93bc7

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

include/storage/heap_table.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,12 @@ class HeapTable {
156156

157157
/**
158158
* @brief Move to the next tuple and return a view into its data.
159-
*
159+
*
160160
* @note The returned TupleView points into the iterator's currently pinned page and
161161
* therefore becomes invalid as soon as the iterator advances to a different page,
162162
* is closed, or is destroyed. Callers must copy data out of the TupleView if they
163163
* need it beyond the iterator's current position (e.g., during materialization).
164-
*
164+
*
165165
* @param out_view Output parameter to store the view.
166166
* @return true if a tuple was found, false if EOF.
167167
*/

src/executor/operator.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -341,11 +341,11 @@ ProjectOperator::ProjectOperator(std::unique_ptr<Operator> child,
341341

342342
bool ProjectOperator::init() {
343343
if (!child_->init()) return false;
344-
344+
345345
is_simple_projection_ = true;
346346
column_mapping_.clear();
347347
auto& child_schema = child_->output_schema();
348-
348+
349349
// Check if we have a single "*" column and expand it
350350
bool has_star = false;
351351
if (columns_.size() == 1 && columns_[0]->type() == parser::ExprType::Column) {
@@ -364,7 +364,7 @@ bool ProjectOperator::init() {
364364
const auto* c_expr = static_cast<const parser::ColumnExpr*>(expr.get());
365365
size_t idx = child_schema.find_column(c_expr->to_string());
366366
if (idx == static_cast<size_t>(-1)) idx = child_schema.find_column(c_expr->name());
367-
367+
368368
if (idx != static_cast<size_t>(-1)) {
369369
column_mapping_.push_back(idx);
370370
} else {
@@ -377,7 +377,7 @@ bool ProjectOperator::init() {
377377
}
378378
}
379379
}
380-
380+
381381
set_state(ExecState::Init);
382382
return true;
383383
}
@@ -974,9 +974,9 @@ bool ProjectOperator::next_view(storage::HeapTable::TupleView& out_view) {
974974
} else {
975975
// Fallback: This is not optimal but satisfies the semantics.
976976
// Future work: Batch materialization or local buffer.
977-
// For now, we dont return true for computed stuff in next_view
977+
// For now, we dont return true for computed stuff in next_view
978978
// to avoid exposing raw data incorrectly.
979-
return false;
979+
return false;
980980
}
981981
}
982982
return false;
@@ -989,7 +989,8 @@ bool FilterOperator::next_view(storage::HeapTable::TupleView& out_view) {
989989
if (!condition_) return true;
990990
// Evaluate condition against the view.
991991
// For performance, we materialize into a thread-local or arena-based Tuple
992-
// if we wanted to avoid allocation per row, but for now we use the operator memory resource.
992+
// if we wanted to avoid allocation per row, but for now we use the operator memory
993+
// resource.
993994
executor::Tuple t = out_view.materialize(get_memory_resource());
994995
if (condition_->evaluate(&t, &child_schema, get_params()).as_bool()) {
995996
return true;

src/storage/heap_table.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -833,11 +833,10 @@ bool HeapTable::Iterator::next_view(TupleView& out_view) {
833833
}
834834
}
835835

836-
837836
executor::Tuple HeapTable::TupleView::materialize(std::pmr::memory_resource* mr) const {
838837
if (!mr) mr = std::pmr::get_default_resource();
839838
size_t num_cols = schema->columns().size();
840-
839+
841840
std::pmr::vector<common::Value> values(mr);
842841
values.reserve(num_cols);
843842
for (size_t i = 0; i < num_cols; ++i) {

0 commit comments

Comments
 (0)