HashGroupingOperator has been updated to close inbound pages. Ordinals needs to do similar.
x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/OperatorTests.java
@Override
                        protected Page process(Page page) {
                            return page.appendBlock(IntBlock.newConstantBlockWith(1, page.getPositionCount()));
                        }
                        @Override
                        public String toString() {
                            return "Add(1)";
                        }
                    },
                        new OrdinalsGroupingOperator(
                            List.of(
                                new ValueSourceInfo(
                                    CoreValuesSourceType.KEYWORD,
                                    randomBoolean() ? getOrdinalsValuesSource(gField) : getBytesValuesSource(gField),
                                    ElementType.BYTES_REF,
                                    reader
                                )
                            ),
                            0,
                            gField,
                            List.of(CountAggregatorFunction.supplier(bigArrays, List.of(1)).groupingAggregatorFactory(INITIAL)),
                            randomPageSize(),
                            bigArrays,
                            driverContext
                        ),
                        new HashAggregationOperator(
                            List.of(CountAggregatorFunction.supplier(bigArrays, List.of(1, 2)).groupingAggregatorFactory(FINAL)),
                            () -> BlockHash.build(
                                List.of(new HashAggregationOperator.GroupSpec(0, ElementType.BYTES_REF)),
                                driverContext,