@@ -62,18 +62,17 @@ common::Value HeapTable::TupleView::get_value(size_t col_index) const {
6262 // accessible logical columns (it may differ from schema->column_count()
6363 // for SELECT * queries where the projected schema is built before the star
6464 // is expanded into concrete column entries).
65- const size_t logical_count =
66- (column_mapping && !column_mapping-> empty ()) ? column_mapping->size ()
67- : schema->column_count ();
65+ const size_t logical_count = (column_mapping && !column_mapping-> empty ())
66+ ? column_mapping->size ()
67+ : schema->column_count ();
6868 if (col_index >= logical_count) return common::Value::make_null ();
6969
7070 // Resolve the physical column index through the mapping when present.
7171 // col_index is a logical index into the (possibly projected) schema; the
7272 // serialized payload is always laid out in physical table column order.
73- const size_t physical_idx =
74- (column_mapping && col_index < column_mapping->size ())
75- ? (*column_mapping)[col_index]
76- : col_index;
73+ const size_t physical_idx = (column_mapping && col_index < column_mapping->size ())
74+ ? (*column_mapping)[col_index]
75+ : col_index;
7776
7877 // Walk the serialized payload from the beginning to reach physical_idx.
7978 size_t cursor = 0 ;
@@ -855,9 +854,8 @@ executor::Tuple HeapTable::TupleView::materialize(std::pmr::memory_resource* mr)
855854 // Use the same logical_count logic as get_value so that SELECT * views
856855 // (which have column_mapping with more entries than schema->column_count())
857856 // are materialized correctly.
858- const size_t num_cols =
859- (column_mapping && !column_mapping->empty ()) ? column_mapping->size ()
860- : schema->columns ().size ();
857+ const size_t num_cols = (column_mapping && !column_mapping->empty ()) ? column_mapping->size ()
858+ : schema->columns ().size ();
861859
862860 std::pmr::vector<common::Value> values (mr);
863861 values.reserve (num_cols);
0 commit comments