jose-torres opened a new pull request #32371:
URL: https://github.com/apache/spark/pull/32371


   ### What changes were proposed in this pull request?
   The UnsupportedOperationChecker shouldn't allow streaming-batch intersects. 
As described in the ticket, they can't actually be planned correctly, and even 
simple cases like the below will fail:
   
   ```
     test("intersect") {
       val input = MemoryStream[Long]
       val df = input.toDS().intersect(spark.range(10).as[Long])
       testStream(df) (
         AddData(input, 1L),
         CheckAnswer(1)
       )
     }
   ```
   
   ### Why are the changes needed?
   Users will be confused by the cryptic errors produced from trying to run an 
invalid query plan.
   
   ### Does this PR introduce _any_ user-facing change?
   Some queries which previously failed with a poor error will now fail with a 
better one.
   
   ### How was this patch tested?
   modified unit test


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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to