This is an automated email from the ASF dual-hosted git repository.
jackie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git
The following commit(s) were added to refs/heads/master by this push:
new 1f726dc6fc Fix the missing BIG_DECIMAL handling in range predicate
evaluator (#10330)
1f726dc6fc is described below
commit 1f726dc6fc11204b46c9485bd49bf40defe0e754
Author: Xiaotian (Jackie) Jiang <[email protected]>
AuthorDate: Fri Feb 24 14:08:45 2023 -0800
Fix the missing BIG_DECIMAL handling in range predicate evaluator (#10330)
---
.../operator/filter/predicate/RangePredicateEvaluatorFactory.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/pinot-core/src/main/java/org/apache/pinot/core/operator/filter/predicate/RangePredicateEvaluatorFactory.java
b/pinot-core/src/main/java/org/apache/pinot/core/operator/filter/predicate/RangePredicateEvaluatorFactory.java
index 346b8440e1..ca8e1f126a 100644
---
a/pinot-core/src/main/java/org/apache/pinot/core/operator/filter/predicate/RangePredicateEvaluatorFactory.java
+++
b/pinot-core/src/main/java/org/apache/pinot/core/operator/filter/predicate/RangePredicateEvaluatorFactory.java
@@ -288,12 +288,14 @@ public class RangePredicateEvaluatorFactory {
return
_rawValueBasedEvaluator.applySV(_dictionary.getFloatValue(dictId));
case DOUBLE:
return
_rawValueBasedEvaluator.applySV(_dictionary.getDoubleValue(dictId));
+ case BIG_DECIMAL:
+ return
_rawValueBasedEvaluator.applySV(_dictionary.getBigDecimalValue(dictId));
case STRING:
return
_rawValueBasedEvaluator.applySV(_dictionary.getStringValue(dictId));
case BYTES:
return
_rawValueBasedEvaluator.applySV(_dictionary.getBytesValue(dictId));
default:
- throw new IllegalStateException();
+ throw new IllegalStateException("Unsupported value type: " +
_dictionary.getValueType());
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]