alamb commented on code in PR #15652:
URL: https://github.com/apache/datafusion/pull/15652#discussion_r2035118761
##########
datafusion/sqllogictest/test_files/dictionary.slt:
##########
@@ -450,3 +450,10 @@ query I
select dense_rank() over (order by arrow_cast('abc', 'Dictionary(UInt16,
Utf8)'));
----
1
+
Review Comment:
I verified that this does indeed panic on main as reported
```sql
DataFusion CLI v46.0.1
> CREATE TABLE test0 AS VALUES ('foo',1), ('bar',2), ('foo',3);
0 row(s) fetched.
Elapsed 0.007 seconds.
> COPY (SELECT arrow_cast(column1, 'Dictionary(Int32, Utf8)') AS column1,
column2 FROM test0) TO 'test_files/scratch/copy/part_dict_test' STORED AS
PARQUET PARTITIONED BY (column1);
thread 'tokio-runtime-worker' panicked at
datafusion/datasource/src/write/demux.rs:516:31:
index out of bounds: the len is 2 but the index is 2
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]