alamb commented on issue #122: URL: https://github.com/apache/arrow-datafusion/issues/122#issuecomment-977031001
https://github.com/apache/arrow-datafusion/blob/master/datafusion/src/physical_plan/expressions/coercion.rs and https://github.com/apache/arrow-datafusion/blob/4687899957463ce81c4795a6d35d31320db0252b/datafusion/src/physical_plan/type_coercion.rs are the two places I know of in DataFusion today that do this type coercion On Mon, Nov 22, 2021 at 9:33 PM Kun Liu ***@***.***> wrote: > In order to implement decimal in datafusion, we should ref some data type > rules, like spark data type > <https://spark.apache.org/docs/3.2.0/sql-ref-datatypes.html> and type > coercion > <https://spark.apache.org/docs/3.2.0/sql-ref-ansi-compliance.html#type-promotion-and-precedence> > . > Now, the numerical data type just support some native type and the type > coercion rules are simple. if we add the decimal data type, the type > checking, type cast, type promotion and precision checking are all need to > be considered. > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/apache/arrow-datafusion/issues/122#issuecomment-976109767>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AADXZMNH25DW2NQZKCQ75BDUNL4OBANCNFSM43S4FY3Q> > . > Triage notifications on the go with GitHub Mobile for iOS > <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> > or Android > <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>. > > -- 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]
