Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Closely related to ARROW-13117 is the problem of type() and type_id() not working for scalar expressions. For example, currently this happens:
> Expression$scalar("foo")$type() Error: !is.null(schema) is not TRUE > Expression$scalar(42L)$type() Error: !is.null(schema) is not TRUE
This is what we want to happen:
> Expression$scalar("foo")$type()
Utf8
string
> Expression$scalar(42L)$type()
Int32
int32
This is simple to solve; we just need to set schema to an empty schema for all scalar expressions.
Attachments
Issue Links
- relates to
-
ARROW-13117 [R] Retain schema in new Expressions
- Resolved
- links to