Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
None
-
None
-
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))