alamb commented on code in PR #12841:
URL: https://github.com/apache/datafusion/pull/12841#discussion_r1796072537
##########
datafusion/sqllogictest/test_files/struct.slt:
##########
@@ -373,3 +373,52 @@ You reached the bottom!
statement ok
drop view complex_view;
+
+# Test row alias
+
+query ?
+select row('a', 'b');
Review Comment:
BTW there is pretty sweet struct literal syntax like `{ c1: 'a', c2: 'b'}`
as well
```sql
> select { c1: 'a', c2: 'b'};
+---------------------------------------------------------+
| named_struct(Utf8("c1"),Utf8("a"),Utf8("c2"),Utf8("b")) |
+---------------------------------------------------------+
| {c1: a, c2: b} |
+---------------------------------------------------------+
1 row(s) fetched.
Elapsed 0.002 seconds.
```
--
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]