JingsongLi commented on code in PR #731:
URL: https://github.com/apache/paimon-rust/pull/731#discussion_r3812939324
##########
crates/paimon/src/table/global_index_scanner.rs:
##########
@@ -536,6 +565,27 @@ impl GlobalIndexScanner {
entries: &[GlobalIndexEntry],
predicates: &[(PredicateOperator, &[Datum], &DataType)],
) -> Result<Option<Vec<RowRange>>> {
+ let normalized_predicates = predicates
+ .iter()
+ .map(|(op, literals, data_type)| {
+ let key_type = if is_multivalue_predicate(*op) {
+ let DataType::Array(array) = data_type else {
+ return Err(Error::DataInvalid {
+ message: format!(
+ "Array global-index predicate {op} requires an
ARRAY field type"
+ ),
+ source: None,
+ });
+ };
+ array.element_type()
Review Comment:
This is not a specific issue but a general one that affects all indexes; we
need to consider it separately later.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]