Skip to content

Panic with window function LAST_VALUE #4297

@ZuoTiJia

Description

@ZuoTiJia

Describe the bug
Panic with window function last_value

To Reproduce

DataFusion CLI v14.0.0
❯ CREATE TABLE t1 AS VALUES('A', '1'), ('A', '2'), ('A', '3'), ('B', '1'), ('B', '2'), ('B', '3');
0 rows in set. Query took 0.002 seconds.
❯ SELECT column1, column2, LAST_VALUE(column2) OVER (PARTITION BY column1 ORDER BY column2) FROM t1;
thread 'thread 'tokio-runtime-workertokio-runtime-worker' panicked at '' panicked at 'Iterator must be sizedIterator must be sized', ', /Users/changchengxing/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-array-26.0.0/src/array/string_array.rs:171:24
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
/Users/changchengxing/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-array-26.0.0/src/array/string_array.rs:171:24
+---------+---------+------------------------+
| column1 | column2 | LAST_VALUE(t1.column2) |
+---------+---------+------------------------+
+---------+---------+------------------------+
0 rows in set. Query took 0.004 seconds.
❯

Metadata

Metadata

Assignees

No one assigned

    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