fornwall opened a new issue, #24678:
URL: https://github.com/apache/datafusion/issues/24678
### Describe the bug
`enable_leaf_expression_pushdown` inlines a column's defining expression
into each extracted `get_field` that references it, but performs no volatility
check.
### To Reproduce
Run this:
```
datafusion-cli -c "SELECT s, s['a'] AS field FROM (SELECT named_struct('a',
random()) AS s FROM generate_series(1,3));"
```
### Expected behavior
`field` equals `s.a` on every row.
### Additional context
Setting `enable_leaf_expression_pushdown = false` avoids the bug (makes
`field` equals `s.a` on every row).
--
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]