itholic opened a new pull request, #38652:
URL: https://github.com/apache/spark/pull/38652

   ### What changes were proposed in this pull request?
   
   This PR proposes to rename `LATERAL_JOIN_OF_TYPE` to 
`INVALID_LATERAL_JOIN_TYPE`.
   
   Also remove this from the sub-class under `UNSUPPORTED FEATURE`, and improve 
the error messages.
   
   
   ### Why are the changes needed?
   
   This should not belongs to `UNSUPPORTED FEATURE`, since RIGHT and FULL outer 
join makes no sense for LATERAL joins.
   
   ### Does this PR introduce _any_ user-facing change?
   
   The error message improved
   
   From
   ```
   The feature is not supported: RIGHT OUTER JOIN with LATERAL correlation.
   ```
   
   To
   ```
   The RIGHT OUTER JOIN with LATERAL correlation is not allowed because an 
OUTER subquery cannot correlate to its join partner. Remove the LATERAL 
correlation or use an INNER JOIN, or LEFT OUTER JOIN instead.
   ```
   
   
   ### How was this patch tested?
   
   ```
   ./build/sbt “sql/testOnly org.apache.spark.sql.SQLQueryTestSuite*”
   ```
   


-- 
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]

Reply via email to