Ted-Jiang commented on code in PR #2389:
URL: https://github.com/apache/arrow-datafusion/pull/2389#discussion_r863558014
##########
datafusion/core/tests/sql/expr.rs:
##########
@@ -510,6 +510,23 @@ async fn test_array_literals() -> Result<()> {
Ok(())
}
+#[tokio::test]
+async fn test_struct_literals() -> Result<()> {
+ test_expression!(
+ "STRUCT(1,2,3,4,5)",
+ "{\"f_0\": 1, \"f_1\": 2, \"f_2\": 3, \"f_3\": 4, \"f_4\": 5}"
Review Comment:
Agree! align with Spark.
--
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]