Skip to content

Commit

Permalink
Minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
davisp committed Mar 3, 2024
1 parent 3c0539d commit 6ea5204
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tiledb/sm/query/ast/query_ast.cc
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,11 @@ void ASTNodeVal::rewrite_enumeration_conditions(
} else {
op_ = QueryConditionOp::ALWAYS_FALSE;
}
data_ = ByteVecValue(val_size);
utils::safe_integral_cast_to_datatype(0, attr->type(), data_);
} else {
data_ = ByteVecValue(val_size);
utils::safe_integral_cast_to_datatype(idx, attr->type(), data_);
idx = 0;
}

data_ = ByteVecValue(val_size);
utils::safe_integral_cast_to_datatype(idx, attr->type(), data_);
} else {
// Buffers and writers for the new data/offsets memory
std::vector<uint8_t> data_buffer(val_size * members_.size());
Expand Down

0 comments on commit 6ea5204

Please sign in to comment.