jayzhan211 commented on PR #12184:
URL: https://github.com/apache/datafusion/pull/12184#issuecomment-2313909494
Should we get Column's relation for Alias in `to_field`?
```rust
Expr::Alias(Alias { expr, name, .. }) => {
let relation = match expr.as_ref() {
Expr::Column(c) => c.relation.to_owned(),
_ => None
};
let (data_type, nullable) =
self.data_type_and_nullable(input_schema)?;
Ok((
relation,
Field::new(name, data_type, nullable)
.with_metadata(self.metadata(input_schema)?)
.into(),
))
}
```
--
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]