433160 {
433161 auto &children = column_id.GetChildIndexes();
433162
433166
433167 D_ASSERT(type.id() != LogicalTypeId::INVALID);
433168 if (type.id() == LogicalTypeId::VALIDITY) {
433169
433170 return;
433171 }
433172
433173 if (type.id() == LogicalTypeId::VARIANT) {
433174
433175
433178 return;
433179 }
433181 if (scan_type.id() != LogicalTypeId::VARIANT) {
433182 PushDownCast(type, scan_type);
433183 }
433184 return;
433185 }
433186
433189
433190 auto &struct_children = StructType::GetChildTypes(type);
433192 for (
idx_t i = 0; i <= struct_children.size(); i++) {
433194 }
433195
433196 if (children.empty()) {
433197
433199 for (
idx_t i = 0; i < struct_children.size(); i++) {
433201 }
433202 } else {
433206 D_ASSERT(children.size() == 1);
433207 auto &child = children[0];
433208 auto child_index = child.GetPrimaryIndex();
433209 auto &child_type = StructType::GetChildTypes(type)[child_index].second;
433210 if (!child.HasChildren() && child_type != child.GetType()) {
433211 PushDownCast(child_type, child.GetType());
433212 }
433213 child_states[1].Initialize(
context, struct_children[child_index].second, child, options);
433214 } else {
433215
433217 for (
idx_t i = 0; i < children.size(); i++) {
433218 auto &child = children[i];
433219 auto index = child.GetPrimaryIndex();
433222 }
433223 }
433224 }
433227
433228 for (
idx_t i = 0; i < 2; i++) {
433230 }
433233 } else if (type.InternalType() == PhysicalType::ARRAY) {
433234
433235 for (
idx_t i = 0; i < 2; i++) {
433237 }
433240 } else {
433241
433244 }
433245}
@ LIST
A list of some logical data type.
Definition duckdb.hpp:2813
@ STRUCT
Struct of logical types.
Definition duckdb.hpp:2816
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
optional_ptr< TableScanOptions > scan_options
Contains TableScan level config for scanning.
Definition duckdb.cpp:74938
unsafe_vector< ColumnScanState > child_states
Child states of the vector.
Definition duckdb.cpp:74925
StorageIndex storage_index
Storage index of the current column that's being scanned.
Definition duckdb.cpp:74921
vector< bool > scan_child_column
Whether or not we should scan a specific child column.
Definition duckdb.cpp:74936