Describe the bug
Found during fuzz testing.
SQL
SELECT c24, c12, trunc(c24, c12) AS x FROM test1 ORDER BY c24, c12;
[ERROR] Query failed in Comet: Job aborted due to stage failure: Task 21 in stage 6.0 failed 4 times, most recent failure: Lost task 21.3 in stage 6.0 (TID 163) (192.168.86.23 executor 0): org.apache.comet.CometNativeException: InternalError: Unsupported format: "" for function 'date_trunc'.
at org.apache.comet.Native.executePlan(Native Method)
Steps to reproduce
No response
Expected behavior
No response
Additional context
No response