for datafusion, we need to add interface which is used to identify the expr is constant or literal or not.
If we have this interface, we can make more optimization.
But the interface should be better in the logical expr not in the physical expr like sprak fold
Originally posted by @liukun4515 in #2834 (comment)