When loading Movies dataset through Spark, a NPE exception is thrown.
Need to handle null values more gracefully. Since Vegas takes data as a Map[String,Any] we could check if DF cell is null, and then just set value to null (encoder already handles turning this into a Json Null at appropriate time).
More generally withDataFrame should set native values where possible. Currently it turns everything into a Map[String, String].
When loading Movies dataset through Spark, a NPE exception is thrown.
Need to handle null values more gracefully. Since Vegas takes data as a Map[String,Any] we could check if DF cell is null, and then just set value to null (encoder already handles turning this into a Json Null at appropriate time).
More generally withDataFrame should set native values where possible. Currently it turns everything into a Map[String, String].