Tpt opened a new pull request, #27996:
URL: https://github.com/apache/datafusion/pull/27996
```sql
SELECT * FROM (SELECT 'p', a FROM t UNION ALL SELECT 'c', b FROM t) s
```
was unparsed to
```sql
SELECT "s"."Utf8(""p"")" FROM (SELECT 'p', ... UNION ALL ...)
```
it is now emitted as
```sql
SELECT "s"."Utf8(""p"")" FROM (SELECT 'p' AS "Utf8(""p"")", ... UNION ALL
...)
```
same for `DISTINCT ON`, before:
```sql
SELECT "s"."Utf8(""p"")" FROM (SELECT DISTINCT ON ("t"."a") 'p', ...)
```
after:
```sql
SELECT "s"."Utf8(""p"")" FROM (SELECT DISTINCT ON ("t"."a") ('p' AS
"Utf8(""p"")"), ...)
```
--
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]