File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/data Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -59,9 +59,6 @@ public SingletonOrdinalsBuilder endPositionEntry() {
5959 }
6060
6161 BytesRefBlock buildOrdinal () {
62- if (minOrd > maxOrd ) {
63- return buildRegularBlock ();
64- }
6562 int valueCount = maxOrd - minOrd + 1 ;
6663 long breakerSize = ordsSize (valueCount );
6764 blockFactory .adjustBreaker (breakerSize );
@@ -175,7 +172,7 @@ public BytesRefBlock build() {
175172 boolean shouldBuildOrdinalsBlock () {
176173 if (minOrd <= maxOrd ) {
177174 int numOrds = maxOrd - minOrd + 1 ;
178- return ords . length >= 2 * numOrds && ords .length >= 32 ;
175+ return OrdinalBytesRefBlock . isDense ( ords .length , numOrds ) ;
179176 } else {
180177 return false ;
181178 }
You can’t perform that action at this time.
0 commit comments