> > if I do dataset.select("nonExistentColumn") then the Analysis Error is > thrown at compile time right? >
if you do df.as[MyClass].map(_.badFieldName) you will get a compile error. However, if df doesn't have the right columns for MyClass, that error will only be thrown at runtime (whether DF is backed by something in memory or some remote database).