Tpt opened a new pull request, #27997:
URL: https://github.com/apache/datafusion/pull/27997
The following query:
```sql
SELECT a FROM t UNION ALL (SELECT b FROM u 1)
```
unparsed to
```sql
SELECT t.a FROM t UNION ALL SELECT u.b FROM u LIMIT 1
```
applying the limit to the whole union
We now parentheses the sub query if any modifier is used
```sql
SELECT t.a FROM t UNION ALL (SELECT u.b FROM u LIMIT 1)
```
--
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]