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.
The function
as_substrait()
handles a lot of different cases. One common one isas_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.