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

[Rust] [DataFusion] AggregateExpression name inconsistency

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • None
    • None
    • Rust - DataFusion
    • None

    Description

      I have an aggregate query and the AggregateExpr has this name

       SUM(l_extendedprice Multiply Int64(1))

      This is hiding the fact that the expression has a CAST operation:

       expr: BinaryExpr { left: Column { name: "l_extendedprice" }, op: Multiply, right: CastExpr { expr: Literal { value: Int64(1) }, cast_type: Float64 } }, nullable: true }

      In Ballista, this causes a problem with serde because after a rountrip, the expression has a name that includes the CAST and this causes a schema mismatch.

      SUM(l_extendedprice Multiply CAST(Int64(1) AS Float64)) 

      Attachments

        Activity

          People

            Unassigned Unassigned
            andygrove Andy Grove
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: