paleolimbot commented on code in PR #17986:
URL: https://github.com/apache/datafusion/pull/17986#discussion_r2453195473
##########
datafusion/sql/src/planner.rs:
##########
@@ -600,27 +602,54 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
SQLDataType::Array(ArrayElemTypeDef::AngleBracket(inner_sql_type))
=> {
// Arrays may be multi-dimensional.
let inner_data_type = self.convert_data_type(inner_sql_type)?;
- Ok(DataType::new_list(inner_data_type, true))
+
+ // Lists are allowed to have an arbitrarily named field;
Review Comment:
It looks like there is also `Field::LIST_FIELD_DEFAULT_NAME` which was ever
so slightly less verbose (but either works for me!)
--
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]