Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-13119

[R] Set empty schema in scalar Expressions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.0.0
    • R
    • 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

          Activity

            People

              icook Ian Cook
              icook Ian Cook
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: