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 2020/08/23 12:48:16 UTC

[GitHub] [arrow] jorgecarleitao commented on pull request #8024: ARROW-9809: [Rust][DataFusion] Fixed type coercion, supertypes and type checking.

jorgecarleitao commented on pull request #8024:
URL: https://github.com/apache/arrow/pull/8024#issuecomment-678770336


   @alamb , thanks a lot for that insight.
   
   I may have been using the wrong notation here.
   
   I think that we have each columns' type during logical planning: the `LogicalPlanBuilder` always starts with a scan with a well defined (or infered via scan) schema. When a projection is constructed, which requires us to derive a `schema`, we build that schema by deriving the column types from its expressions, via `exprlist_to_fields` (that uses `Expr::to_field` that uses `Expr::get_type(input_schema)`).
   
   As I see it, the type coercer optimizer is casting types being passed to binary operators for the sole purpose of matching numerical types to perform computations, as we do not have kernels for different numerical types (e.g. u16 + u32).


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org