Scala case class creation run time or load case class from external file




I need to construct/create case class run time as there can be a list of parameter changes each time I run the program. I will use the same case class to bind with RDD in order to build the dataframe. Please can you provide example/inputs for the same.

Can we load case classes at run time in the scala application, if yes please provide the simple example.

Thank you in advance :slight_smile: