If I wanted to create a StructType (i.e. a DataFrame.schema) out of a case class, is there a way to do it without creating a DataFrame? I can easily do:
case class TestCase(id: Long)
val schema = Seq[TestCase]().toDF.schema
But it seems overkill to actually create a DataFrame when all I want is the schema.