Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void setNextReader(LeafReaderContext readerContext) throws IOException {
public boolean advanceExact(int target) throws IOException {
if (sorted.advanceExact(target)) {
if (sorted.docValueCount() > 1) {
throw new IllegalStateException(
throw new IllegalArgumentException(
"failed to extract doc:" + target + ", the grouping field must be single valued"
);
}
Expand All @@ -124,7 +124,7 @@ public long longValue() throws IOException {
};
}
}
default -> throw new IllegalStateException("unexpected doc values type " + type + "` for field `" + field + "`");
default -> throw new IllegalArgumentException("unexpected doc values type " + type + "` for field `" + field + "`");
}
}

Expand Down Expand Up @@ -200,7 +200,7 @@ public void setNextReader(LeafReaderContext readerContext) throws IOException {
public boolean advanceExact(int target) throws IOException {
if (sorted.advanceExact(target)) {
if (sorted.docValueCount() > 1) {
throw new IllegalStateException(
throw new IllegalArgumentException(
"failed to extract doc:" + target + ", the grouping field must be single valued"
);
}
Expand Down Expand Up @@ -233,7 +233,7 @@ public int getValueCount() {
};
}
}
default -> throw new IllegalStateException("unexpected doc values type " + type + "` for field `" + field + "`");
default -> throw new IllegalArgumentException("unexpected doc values type " + type + "` for field `" + field + "`");
}
}

Expand Down