shivusondur opened a new pull request #25503: [SPARK-28702]Display useful error 
message (instead of NPE) for invalid Dataset operations 
URL: https://github.com/apache/spark/pull/25503
 
 
   
   ### What changes were proposed in this pull request?
   Added proper message instead of NPE for invalid Dataset operations (e.g. 
calling actions inside of transformations) similar to SPARK-5063 for RDD
   
   ### Why are the changes needed?
   To report the user about the exact issue instead of NPE
   
   ### Does this PR introduce any user-facing change?
   No
   
   ### How was this patch tested?
   manually tested
   test code snap
   "import spark.implicits._
       val ds1 = spark.sparkContext.parallelize(1 to 100, 100).toDS()
       val ds2 = spark.sparkContext.parallelize(1 to 100, 100).toDS()
       ds1.map(x => {
         // scalastyle:off
         println(ds2.count + x)
         x
       }).collect()"
   
   

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

Reply via email to