Trying to load a csv file without schema inference. Usually we create the schema as StructType within the spark code. Is it possible to save the schema in an external file (may be a property/config file) and read it dynamically while creating the dataframe ?
val customSchema_v2 = new StructType()
.add("PROPERTY_ID_2222", "int" )
.add("OWNER_ID_2222", "int")
Is it possible to save the schema i.e "PROPERTY_ID_2222", "int" and "OWNER_ID_2222", "int" in a file and call the schema from there ?