Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Issues about use generated case class as Encoders.bean #4
java.lang.UnsupportedOperationException: Cannot infer type for class models.Station because it is not bean-compliant
Attach my code sample as below:
_val hydrologyStationDF = spark.sqlContext.read.format("csv").option("header", true).csv(filePath)
I've used spark with avro before, but never spark sql, and never with csv files, so I don't have a good answer. I'll note a few things, though:
Sorry I can't offer any better insight. Good luck!
Thanks for your kindly detailed explanation.