ZuoTiJia opened a new issue, #4297:
URL: https://github.com/apache/arrow-datafusion/issues/4297

   **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.
   ❯
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to