fix: array is null failed(#40686) (#41027)

related: #40686

Signed-off-by: MrPresent-Han <chun.han@gmail.com>
Co-authored-by: MrPresent-Han <chun.han@gmail.com>
This commit is contained in:
Chun Han 2025-04-02 18:20:22 +08:00 committed by GitHub
parent 902f6506ca
commit afa519b4c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -933,7 +933,8 @@ class SegmentExpr : public Expr {
bool access_sealed_variable_column = false;
if constexpr (std::is_same_v<T, std::string_view> ||
std::is_same_v<T, Json>) {
std::is_same_v<T, Json> ||
std::is_same_v<T, ArrayView>) {
if (segment_->type() == SegmentType::Sealed) {
auto [data_vec, valid_data] = segment_->get_batch_views<T>(
field_id_, i, data_pos, size);