lquerel commented on issue #2043:
URL: 
https://github.com/apache/arrow-datafusion/issues/2043#issuecomment-1074285552


   Different approaches to represent a structure in the projection part of a 
SELECT.
   
   **BigQuery syntax:** 
   `STRUCT('Bob' AS name, 38 AS age) AS users`
   `STRUCT<name string, age integer>('Bob', 50) as user          // syntax to 
specify explicitly the type of each field`
   
   **Spark syntax:**
   `NAMED_STRUCT('name', 'Bob', 'age', 50) as users`
   
   **Postgres and Athena syntax:** 
   `CAST(ROW('Bob', 38) AS ROW(name VARCHAR, age INTEGER)) AS users`
   
   **Snowflake syntax:**
   `OBJECT_CONSTRUCT('name', 'Bob'::VARCHAR, 'age',  50::INTEGER)`
   
   


-- 
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]


Reply via email to