Weijun-H commented on code in PR #8344:
URL: https://github.com/apache/arrow-datafusion/pull/8344#discussion_r1458219694
##########
datafusion/sqllogictest/test_files/arrow_typeof.slt:
##########
@@ -384,4 +384,35 @@ LargeList(Field { name: "item", data_type: Int64,
nullable: true, dict_id: 0, di
query T
select arrow_typeof(arrow_cast(make_array([1, 2, 3]),
'LargeList(LargeList(Int64))'));
----
-LargeList(Field { name: "item", data_type: LargeList(Field { name: "item",
data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata:
{} }), nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} })
\ No newline at end of file
+LargeList(Field { name: "item", data_type: LargeList(Field { name: "item",
data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata:
{} }), nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} })
+
+## FixedSizeList
+
+query ?
+select arrow_cast(null, 'FixedSizeList(1, Int64)');
+----
+NULL
+
+#TODO: arrow-rs doesn't support it yet
Review Comment:
I noticed that the List supports casting from UTF8 to List with a single
size. Therefore, I think FixedSizeList should also support it.
```
select arrow_cast('1', 'LargeList(Int64)');
----
[1]
```
--
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]