Copilot commented on code in PR #1735:
URL: https://github.com/apache/arrow-go/pull/1735#discussion_r4807312164
##########
arrow/scalar/scalar_test.go:
##########
@@ -2986,6 +2986,306 @@ func TestFromScalarMetadataDoesNotPrependEmptyEntries(t
*testing.T) {
assert.Equal(t, meta.Values(), out.FieldMeta[0].Values())
}
+func TestFromScalarSlicedMapMetadata(t *testing.T) {
Review Comment:
The new tests check metadata while its Arrow buffers are still alive, so
reverting either string copy to `ValueString` would still pass them. Add an
ownership regression test using the existing `zeroingAllocator`: release all
source owners after conversion, then verify that both metadata keys and values
remain unchanged.
--
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]