◆ VariantShreddingState()
| duckdb::VariantShreddingState::VariantShreddingState |
( |
const LogicalType & | type, |
|
|
idx_t | total_count ) |
|
explicit |
252978}
SelectionVector values_index_sel
'values_index' of the shredded value
Definition duckdb.cpp:252641
SelectionVector shredded_sel
row that is shredded
Definition duckdb.cpp:252639
const LogicalType & type
The type the field is shredded on.
Definition duckdb.cpp:252637
SelectionVector result_sel
result row of the shredded value
Definition duckdb.cpp:252643
◆ ~VariantShreddingState()
| virtual duckdb::VariantShreddingState::~VariantShreddingState |
( |
| ) |
|
|
inlinevirtual |
◆ ValueIsShredded()
252980 {
252981 auto type_id = variant.GetTypeId(row, values_index);
252982 if (!GetVariantTypes().
count(type_id)) {
252983 return false;
252984 }
252985 if (type_id == VariantLogicalType::DECIMAL) {
252986 auto physical_type =
type.InternalType();
252987 auto decimal_data = VariantUtils::DecodeDecimalData(variant, row, values_index);
252988 auto decimal_physical_type = decimal_data.GetPhysicalType();
252989 return physical_type == decimal_physical_type;
252990 }
252991 return true;
252992}
idx_t count
The amount of rows that are shredded on.
Definition duckdb.cpp:252645
◆ SetShredded()
◆ ObjectFields()
| case_insensitive_string_set_t duckdb::VariantShreddingState::ObjectFields |
( |
| ) |
|
253001 {
253002 D_ASSERT(
type.id() == LogicalTypeId::STRUCT);
253003 case_insensitive_string_set_t res;
253004 auto &child_types = StructType::GetChildTypes(
type);
253005 for (auto &entry : child_types) {
253006 auto &
type = entry.first;
253008 }
253009 return res;
253010}
The documentation for this struct was generated from the following file: