paleolimbot commented on code in PR #16053: URL: https://github.com/apache/datafusion/pull/16053#discussion_r2094213318
########## datafusion/physical-expr/src/expressions/literal.rs: ########## @@ -34,15 +36,37 @@ use datafusion_expr_common::interval_arithmetic::Interval; use datafusion_expr_common::sort_properties::{ExprProperties, SortProperties}; /// Represents a literal value -#[derive(Debug, PartialEq, Eq, Hash)] +#[derive(Debug, PartialEq, Eq)] pub struct Literal { value: ScalarValue, + metadata: Option<HashMap<String, String>>, Review Comment: Interesting - this puts the responsibility for carrying metadata on the `Literal` instead of the `ScalarValue`. I wonder if there are other places (e.g., the `Statistics`) where we'll need a scalar paired with metadata (I was wondering if `ScalarValue::WithMetadata(Box<ScalarValue>, HashMap<String, String>>)` might work as well). -- 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