DataFusion CLI v40.0.0
> create table t1(v1 int);
0 row(s) fetched.
Elapsed 0.073 seconds.
> SELECT * FROM t1 ORDER BY ACOS(SIN(v1));
thread 'main' panicked at /Users/yongting/Desktop/code/my_datafusion/arrow-datafusion/datafusion/common/src/scalar/mod.rs:1089:9:
assertion failed: datatype.is_primitive()
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Describe the bug
Reproducer in datafusion-cli:
To Reproduce
No response
Expected behavior
No response
Additional context
Found by SQLancer #11030