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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to