Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
manh9203 committed Mar 29, 2024
1 parent 88fd402 commit 0c1c712
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/include/common/types/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,8 @@ using logical_type_vec_t = std::vector<LogicalType>;

struct VarListType {
static inline LogicalType* getChildType(const LogicalType* type) {
KU_ASSERT(type->getPhysicalType() == PhysicalTypeID::VAR_LIST);
KU_ASSERT(type->getPhysicalType() == PhysicalTypeID::VAR_LIST ||
type->getPhysicalType() == PhysicalTypeID::ARRAY);
auto varListTypeInfo = reinterpret_cast<VarListTypeInfo*>(type->extraTypeInfo.get());
return varListTypeInfo->getChildType();
}
Expand Down

0 comments on commit 0c1c712

Please sign in to comment.