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

[R] Retain schema in new Expressions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.0.0
    • R

    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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h