Ah got it, it makes sense. In my use case, I use substrait to serialize the SQL so a rich UI can display a query plan to the user. In this case, the query is not yet executed, so it would not make sense to constant fold the current_time/current_date. What's missing is substrait is an optional function result for non-deterministic functions.
Ah got it, it makes sense. In my use case, I use substrait to serialize the SQL so a rich UI can display a query plan to the user. In this case, the query is not yet executed, so it would not make sense to constant fold the current_time/current_date. What's missing is substrait is an optional function result for non-deterministic functions.