File tree Expand file tree Collapse file tree 1 file changed +1
-24
lines changed
x-pack/plugin/esql/compute/test/src/main/java/org/elasticsearch/compute/test Expand file tree Collapse file tree 1 file changed +1
-24
lines changed Original file line number Diff line number Diff line change @@ -79,34 +79,11 @@ public static RandomBlock randomBlock(
7979 int maxValuesPerPosition ,
8080 int minDupsPerPosition ,
8181 int maxDupsPerPosition
82- ) {
83- return randomBlock (
84- blockFactory ,
85- elementType ,
86- positionCount ,
87- ESTestCase .randomBoolean (),
88- nullAllowed ,
89- minValuesPerPosition ,
90- maxValuesPerPosition ,
91- minDupsPerPosition ,
92- maxDupsPerPosition
93- );
94- }
95-
96- public static RandomBlock randomBlock (
97- BlockFactory blockFactory ,
98- ElementType elementType ,
99- int positionCount ,
100- boolean bytesRefFromPoints ,
101- boolean nullAllowed ,
102- int minValuesPerPosition ,
103- int maxValuesPerPosition ,
104- int minDupsPerPosition ,
105- int maxDupsPerPosition
10682 ) {
10783 List <List <Object >> values = new ArrayList <>();
10884 Block .MvOrdering mvOrdering = Block .MvOrdering .DEDUPLICATED_AND_SORTED_ASCENDING ;
10985 try (var builder = elementType .newBlockBuilder (positionCount , blockFactory )) {
86+ boolean bytesRefFromPoints = ESTestCase .randomBoolean ();
11087 Supplier <Point > pointSupplier = ESTestCase .randomBoolean () ? GeometryTestUtils ::randomPoint : ShapeTestUtils ::randomPoint ;
11188 for (int p = 0 ; p < positionCount ; p ++) {
11289 if (elementType == ElementType .NULL ) {
You can’t perform that action at this time.
0 commit comments