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

   ### Describe the bug
   
   `arrow_cast` does not work within an `insert` statement
   
   ### To Reproduce
   
   ```sql
   statement ok
   create table test as (select arrow_cast([1,2], 'FixedSizeList(2, Int64)') as 
f);
   
   statement ok
   insert into test values ([1, 2]);
   
   statement error # this should be ok
   insert into test values (arrow_cast([1,2], 'FixedSizeList(2, Int64)') );
   # Internal error: Unsupported creation of FixedSizeList(Field { name: 
"item", data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, 
metadata: {} }, 2) array from ScalarValue Some(FixedSizeList([1, 2])).
   # This was likely caused by a bug in DataFusion's code and we would welcome 
that you file an bug report in our issue tracker
   
   ### Expected behavior
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
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