adriangb commented on code in PR #27524:
URL: https://github.com/apache/datafusion/pull/27524#discussion_r4607040373
##########
datafusion/sql/src/unparser/dialect.rs:
##########
@@ -374,9 +371,25 @@ pub enum DistinctFromStyle {
Spaceship,
}
+/// `ArrayTypeStyle` to use for unparsing Arrow list types
+#[derive(Clone, Copy, PartialEq, Debug)]
+pub enum ArrayTypeStyle {
+ /// `INT[]`, and `INT[3]` for a fixed-size list, as in PostgreSQL and
DuckDB
+ SquareBracket,
+ /// `ARRAY<INT>`, as in BigQuery. A fixed-size list and a list of lists are
+ /// not supported.
+ AngleBracket,
Review Comment:
I reviewed what the agent did. It makes sense to me. It's now it's own
option. What we can't support with angle brackets syntax is a fixed size list.
--
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]