jayzhan211 commented on code in PR #12536: URL: https://github.com/apache/datafusion/pull/12536#discussion_r1776705698
########## datafusion/expr-common/src/columnar_value.rs: ########## @@ -89,7 +91,7 @@ pub enum ColumnarValue { /// Array of values Array(ArrayRef), /// A single value - Scalar(ScalarValue), + Scalar(Scalar), Review Comment: > `ScalarValue` should be used all over datafusion, it is more a **value** and has no logical or physical concept. We just need to bring along with `DataType` so we understand how to decode the value in physical layer and understand what logical type it is to interact within the logical plan And bring along `DataType` could be a transition state, I guess we could get the DataType from schema so we don't even require `DataType` in `ScalarValue` -- 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-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org