I have a table with several hundreds of fields. More than the maximum amount of fields allowed for a case class. What this does is that it makes it impossible to turn a generic dataframe into a dataset with more than 254 fields without leaving it as row encoded.
.as[CaseClassNeed > 254 Fields] crashes due to JVM exception
What have people done to work around the issue? Is the only way to start grouping fields together together in a nested fashion? I'd like to avoid that as it causes problems with usability in the sense there is already code that is dependent on the case class not using nested fields.