Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
When a new Expression is created, schema should be retained from the expression(s) it was created from. That way, the type() and type_id() methods of the new Expression will work. For example, currently this happens:
> x <- Expression$field_ref("x") > x$schema <- Schema$create(x = int32()) > > y <- Expression$field_ref("y") > y$schema <- Schema$create(y = int32()) > > Expression$create("add_checked", x, y)$type() Error: !is.null(schema) is not TRUE
This is what we want to happen:
> Expression$create("add_checked", x, y)$type()
Int32
int32
Attachments
Issue Links
- is related to
-
ARROW-13119 [R] Set empty schema in scalar Expressions
- Resolved
- links to