Ted-Jiang commented on issue #1818: URL: https://github.com/apache/arrow-datafusion/issues/1818#issuecomment-1078778970
@xudong963 @alamb in pg
```
postgres=# select 1 as a union all select 2 as b;
a
---
1
2
(2 rows)
```
in DF
https://github.com/apache/arrow-datafusion/blob/0194a27d0f68108c20b12456e9dafadbb170085e/datafusion/src/logical_plan/builder.rs#L1049
then
https://github.com/apache/arrow-datafusion/blob/634252b44cec8dc904e48926d0aa54feeb4d48af/datafusion-common/src/dfschema.rs#L278-L282
we check field name, according to the below link should we change to check
the filed type are compatible?
https://www.postgresql.org/docs/13/sql-select.html#:~:text=specified%20with%20DISTINCT.-,UNION%20Clause,a%20UNION%20result%20or%20for%20any%20input%20of%20a%20UNION.,-INTERSECT%20Clause
--
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]
