osipovartem commented on code in PR #2489:
URL:
https://github.com/apache/datafusion-sqlparser-rs/pull/2489#discussion_r4103691411
##########
tests/sqlparser_snowflake.rs:
##########
@@ -4954,6 +4954,85 @@ fn test_structured_array_type() {
);
}
+#[test]
+fn test_structured_object_type() {
+ snowflake_and_generic().verified_stmt(
+ "SELECT payload::OBJECT(address OBJECT(city VARCHAR NOT NULL), zip
NUMBER) FROM t",
+ );
+ snowflake()
+ .verified_stmt("SELECT payload::OBJECT(tags ARRAY, labels MAP(VARCHAR,
VARCHAR)) FROM t");
Review Comment:
Updated the expected Map casing in 67c962b6.
--
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]