Skip to content

Query with order by acos(sin(v1)) panic (SQLancer) #11552

@2010YOUY01

Description

@2010YOUY01

Describe the bug

Reproducer in datafusion-cli:

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

To Reproduce

No response

Expected behavior

No response

Additional context

Found by SQLancer #11030

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions