izveigor commented on code in PR #6940:
URL: https://github.com/apache/arrow-datafusion/pull/6940#discussion_r1264065890
##########
datafusion/core/tests/sqllogictests/test_files/array.slt:
##########
@@ -562,10 +612,10 @@ select trim_array(make_array(1, 2, 3, 4, 5), 2),
trim_array(['h', 'e', 'l', 'l',
[1, 2, 3] [h, e] [1.0]
# trim_array scalar function #2
-query error DataFusion error: SQL error: ParserError\("Expected an SQL
statement, found: caused"\)
-caused by
-Error during planning: Cannot automatically convert List\(Field \{ name:
"item", data_type: List\(Field \{ name: "item", data_type: List\(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: \{\} \}\), nullable: true, dict_id: 0, dict_is_ordered: false,
metadata: \{\} \}\) to List\(Field \{ name: "item", data_type: Int64, nullable:
true, dict_id: 0, dict_is_ordered: false, metadata: \{\} \}\)
+query ??
select trim_array([[1, 2], [3, 4], [5, 6]], 2), trim_array(array_fill(4, [3,
4, 2]), 2);
Review Comment:
`trim_array` too (See:
https://github.com/apache/arrow-datafusion/discussions/6855#discussioncomment-6429023)
(it will be replaced with `array_slice`).
--
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]