LiaCastaneda commented on issue #25017:
URL: https://github.com/apache/datafusion/issues/25017#issuecomment-5601459873
the roundtrip (SQL -> substrait -> SQL) for this one will not work though
```
SET datafusion.sql_parser.dialect = 'DuckDB'; -- needed just to parse `x
-> expr` lambda syntax at all
WITH test_data AS (
SELECT named_struct(
'label', 'example',
'items', [
named_struct('name', 'first', 'value', 2),
named_struct('name', 'second', 'value', 5)
]
) AS row_col
)
SELECT
row_col.label,
array_transform(row_col.items, item -> get_field(item, 'value') * 10) AS
scaled_values
FROM test_data;
```
--
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]