maropu commented on a change in pull request #28139: [SPARK-31362][SQL][DOCS] Document Set Operators in SQL Reference URL: https://github.com/apache/spark/pull/28139#discussion_r404467875
########## File path: docs/sql-ref-syntax-qry-select-setops.md ########## @@ -19,4 +19,125 @@ license: | limitations under the License. --- -**This page is under construction** +Set operators are used to combine the results of two queries into a single result. Spark SQL supports three types of set operators: +- `EXCEPT` and `EXCEPT ALL` +- `INTERSECT` and `INTERSECT ALL` +- `UNION` and `UNION ALL` + +Note that the queries' result sets must have the same number of columns and compatible data types for the respective columns. Review comment: `Note that the queries' result sets must have...` -> `Note that input relations must have...`? ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
