kszucs opened a new pull request, #1716:
URL: https://github.com/apache/arrow-go/pull/1716

   ### Rationale for this change
   
   The random array generator lives in `arrow/internal/testing/gen`, so only 
packages under `arrow/` can import it, and its `ArrayOf` only generates 
booleans, integers, floats and strings. The parquet tests need random arrays of 
more types, for example the content-defined chunking tests in #1469.
   
   ### What changes are included in this PR?
   
   - Move the package to `internal/testing/gen`, next to `internal/types`, so 
that both `arrow/` and `parquet/` can use it.
   - `ArrayOf` takes an `arrow.DataType` instead of an `arrow.Type` and also 
generates float16, decimal128/256, date32, time32/64, timestamp, binary, large 
binary, fixed size binary, list, map, struct, dictionary and extension arrays. 
Nested values are null only where their field is nullable, structs themselves 
are never null, and dictionary values are unique.
   - Fix the generated ranges: the integers missed their two largest values, 
`Float64` ignored its range, and the floats of `ArrayOf` were all `+Inf`, as 
the range of the type overflowed.
   
   ### Are these changes tested?
   
   Yes, the generator gets its first tests, and the existing tests using it 
pass.
   
   ### Are there any user-facing changes?
   
   No, the package is internal.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to