Jackie-Jiang commented on a change in pull request #6929:
URL: https://github.com/apache/incubator-pinot/pull/6929#discussion_r633731073
##########
File path: .gitignore
##########
@@ -26,6 +26,7 @@ docs/_build
**/.env
**/.factorypath
kubernetes/examples/helm/charts/
+examples/
Review comment:
Ignoring this dir can cause new quick start resource files being ignored
##########
File path:
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/partition/ModuloPartitionFunction.java
##########
@@ -53,6 +53,9 @@ public ModuloPartitionFunction(int numPartitions) {
public int getPartition(Object value) {
if (value instanceof Integer) {
return ((Integer) value) % _numPartitions;
+ } else if (value instanceof Long) {
+ // Since _numPartitions is int, the modulo should also be int.
+ return (int) (((Long) value) % _numPartitions);
} else if (value instanceof String) {
return ((Integer.parseInt((String) value)) % _numPartitions);
Review comment:
Should we parse string as long?
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]