A Try like structure to describe a transformation that can fail with an AnalysisException.
A Try like structure to describe a transformation that can fail with an AnalysisException. Generally speaking when you make a transformation on your dataset, for some transformations, Spark throws an AnalysisException, these transformations are wrapped into a TryAnalysis.
You can ignore the TryAnalysis wrapper (and make Spark fails as usual when a impossible transformation is being build (like selecting a column that don't exist)) using:
scala> import zio.spark.sql.TryAnalysis.syntax.throwAnalysisException
Wrap an effecful spark job into zio-spark.