jiacai2050 commented on issue #2994:
URL:
https://github.com/apache/arrow-datafusion/issues/2994#issuecomment-1202540912
alias is one potential solution, when I debug this issue, I find something
strange:
```diff
modified datafusion/expr/src/expr_schema.rs
@@ -223,9 +223,9 @@ impl ExprSchemable for Expr {
)),
_ => Ok(DFField::new(
None,
- &self.name(input_schema)?,
- self.get_type(input_schema)?,
- self.nullable(input_schema)?,
+ &self.name(input_schema).unwrap(),
+ self.get_type(input_schema).unwrap(),
+ self.nullable(input_schema).unwrap(),
)),
}
```
datafusion panic at `self.get_type()` not `self.name()`, if the rewritten
schema is incomplete, why would `self.name` success?
It seems a little strange that `self.name` and `self.get_type` have
different behavior.
--
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]