sdf-jkl opened a new issue, #10093:
URL: https://github.com/apache/arrow-rs/issues/10093
**Is your feature request related to a problem or challenge? Please describe
what you are trying to do.**
Today `VariantArray` APIs follow `StructArray` naming convention.
```rust
/// Return a reference to the metadata field of the [`StructArray`]
pub fn metadata_field(&self) -> &ArrayRef {
&self.metadata
}
/// Return a reference to the value field of the `StructArray`
pub fn value_field(&self) -> Option<&ArrayRef> {
self.shredding_state.value_field()
}
/// Return a reference to the typed_value field of the `StructArray`, if
present
pub fn typed_value_field(&self) -> Option<&ArrayRef> {
self.shredding_state.typed_value_field()
}
```
It is misleading as they never return `Field`.
<!--
A clear and concise description of what the problem is. Ex. I'm always
frustrated when [...]
(This section helps Arrow developers understand the context and *why* for
this feature, in addition to the *what*)
-->
**Describe the solution you'd like**
Rename existing APIs to `_column` instead `_field` and create symmetric APIs
returning `&FieldRef`.
<!--
A clear and concise description of what you want to happen.
-->
**Describe alternatives you've considered**
<!--
A clear and concise description of any alternative solutions or features
you've considered.
-->
**Additional context**
- This will be helpful #10092
<!--
Add any other context or screenshots about the feature request here.
-->
--
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]