alamb commented on PR #9513: URL: https://github.com/apache/arrow-datafusion/pull/9513#issuecomment-1986812125
> how do you think of it? I think we can use ScalarUdfImpl::simplify in this case: https://github.com/apache/arrow-datafusion/blob/b1d8082c6271e49c1de6e20002b853ca1503ffde/datafusion/expr/src/udf.rs#L373-L380 Specifically, the `SimplifyInfo` gets passed `ExecutionProps` https://github.com/apache/arrow-datafusion/blob/b1d8082c6271e49c1de6e20002b853ca1503ffde/datafusion/expr/src/simplify.rs#L39 Thus for a function like `now()`, that would look like 1. The `simplify()` call should rewrite now() to a `ScalarValue::TimestampNano` 2. The `invoke()` call should error with a "internal error" Does that make sense? -- 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]
