Freddie Mac Interview Question

Lazy evaluation in spark meaning

Interview Answer

Anonymous

Mar 4, 2025

So in spark it holds the result before a trigger and then it shows those. For example you can put spark.read.load(path) It will run but it wouldn't show you but if you call .display() it iwill show hence the lazy evaluation