duongcongtoai commented on issue #6057:
URL: https://github.com/apache/datafusion/issues/6057#issuecomment-2626964540
some work has been going on with unnest, and somehow this bug can no longer
be reproduced
```
async fn test_unnest_used_to_be_broken() {
let ctx = SessionContext::new();
// this works:
// let v = lit("x");
let v = lit(ScalarValue::Dictionary(
Box::new(DataType::Int32),
Box::new(ScalarValue::new_utf8("x")),
));
let make_array_udf_expr = Expr::ScalarFunction(ScalarFunction::new_udf(
make_array_udf(),
vec![col("column1")],
));
let plan = LogicalPlanBuilder::values(vec![vec![v.clone()]])
.unwrap()
.project([make_array_udf_expr.alias("array")])
.unwrap()
.unnest_column("array")
.unwrap()
.build()
.unwrap();
let df = ctx.execute_logical_plan(plan).await.unwrap();
}
```
This works without any error
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]