You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/03/29 10:17:46 UTC
[GitHub] [arrow-datafusion] Ted-Jiang commented on a change in pull request #2108: fix df union all bug
Ted-Jiang commented on a change in pull request #2108:
URL: https://github.com/apache/arrow-datafusion/pull/2108#discussion_r837294373
##########
File path: datafusion-common/src/dfschema.rs
##########
@@ -281,6 +281,14 @@ impl DFSchema {
.all(|(dffield, arrowfield)| dffield.name() == arrowfield.name())
}
+ /// Check to see if df field data types in df schema matches with input df schema
+ pub fn matches_arrow_schema_with_type(&self, df_schema: &DFSchema) -> bool {
+ self.fields
+ .iter()
Review comment:
in postgresql union support type cast like below
```
postgres=# select '1.2' as a union select 2.3 as b union select 3 as b ;
a
-----
2.3
3
1.2
(3 rows)
postgres=# \gdesc
Column | Type
--------+---------
a | numeric
(1 row)
```
Maybe we can open a ticket support this ?
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org