paleolimbot commented on code in PR #16170: URL: https://github.com/apache/datafusion/pull/16170#discussion_r2132357484
########## datafusion/expr/src/expr.rs: ########## @@ -274,16 +275,16 @@ use sqlparser::ast::{ /// assert!(rewritten.transformed); /// // to 42 = 5 AND b = 6 /// assert_eq!(rewritten.data, lit(42).eq(lit(5)).and(col("b").eq(lit(6)))); -#[derive(Clone, PartialEq, Eq, PartialOrd, Hash, Debug)] +#[derive(Clone, PartialEq, PartialOrd, Eq, Debug, Hash)] pub enum Expr { /// An expression with a specific name. Alias(Alias), /// A named reference to a qualified field in a schema. Column(Column), /// A named reference to a variable in a registry. ScalarVariable(DataType, Vec<String>), - /// A constant value. - Literal(ScalarValue), + /// A constant value along with associated metadata + Literal(ScalarValue, Option<BTreeMap<String, String>>), Review Comment: Ah I see...if you make this a HashMap the `#[derive(Debug)]` on the enum no longer works out of the box. I don't have a strong opinion about this one! -- 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