You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR implements `$.Expression` and `[[.Expression` methods, such that if the Expression is a FieldRef, it returns a nested FieldRef. This required revising some assumptions in a few places, particularly that if an Expression is a FieldRef, it has a `name`, and that all FieldRefs correspond to a Field in a Schema. In the case where the Expression is not a FieldRef, it will create an Expression call to `struct_field` to extract the field, iff the Expression has a knowable `type`, the type is `StructType`, and the field name exists in the struct.
Things not done because they weren't needed to get this working:
* `Expression$field_ref()` take a vector to construct a nested ref
* Method to return vector of nested components of a field ref in R
Next steps for future PRs:
* Wrap this in [tidyr::unpack()](https://tidyr.tidyverse.org/reference/pack.html) method (but unfortunately, unpack() is not a generic)
* #33756
* #33757
* #33760
* Closes: #18818
Authored-by: Neal Richardson <neal.p.richardson@gmail.com>
Signed-off-by: Neal Richardson <neal.p.richardson@gmail.com>
See also ARROW-11259. This probably needs to be a
$
and[[
method onExpression
Reporter: Neal Richardson / @nealrichardson
Related issues:
Note: This issue was originally created as ARROW-13858. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: