zeroshade commented on issue #34657:
URL: https://github.com/apache/arrow/issues/34657#issuecomment-1492558211
@yevgenypats There's already `GetScalar(arr arrow.Array, i int)` in the
`scalar` package. This is because even if you move the interface into the
`arrow` package, you unfortunately can't actually *construct* the scalar for a
`GetScalar` method without causing a cyclic import problem.
I believe the benefit here would be to have an `UntypedValue` method that
returns the underlying value type. For a nested type, that might be an array
itself (like for a list array) or it might be an `[]interface{}` (like the case
for a struct) etc.
--
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]