I have the schema associated with a table to be created fetched from confluent schema-registry in below code:
private val avroSchema = schemaRegistryClient.getLatestSchemaMetadata("topicName").getSchema
private var sparkSchema = SchemaConverters.toSqlType(new Schema.Parser().parse(avroSchema))
sparkSchema=sparkSchema.dataType.asInstanceOf[StructType]
Now I'm trying to define a delta lake table which has the structure that is based on this schema. However I'm not sure how to go about the same. Any help appreciated.