voltrondata / substrait-r

An R Interface to the 'Substrait' Cross-Language Serialization for Relational Algebra
Other
27 stars 7 forks source link

Implement helper functions `as_substrait_expression()` and `as_substrait_type()` #234

Closed thisisnic closed 1 year ago

thisisnic commented 1 year ago

The function as_substrait() handles a lot of different cases. One common one is as_substrait(foo, "substrait.Expression") for converting objects to Substrait Expressions. We should implement a helper function to make it clearer what the code is doing.