simonvandel opened a new issue, #8819:
URL: https://github.com/apache/arrow-datafusion/issues/8819
### Describe the bug
Optimizing a `LogicalPlan` with a placeholder fails with the error:
"Placeholder type could not be resolved".
### To Reproduce
```rust
#[tokio::test]
async fn fails() {
let ctx = SessionContext::new();
let df = ctx
.read_empty()
.unwrap()
.with_column("a", lit(1))
.unwrap()
.filter(col("a").eq(placeholder(":0")))
.unwrap();
let logical_plan = df.logical_plan();
// Fails with: Placeholder type could not be resolved
ctx.state().optimize(logical_plan).unwrap();
}
```
### Expected behavior
The optimizer does not fail at the placeholder, but optimizes as much as it
can with the info it has.
### Additional context
_No response_
--
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]