This function constructs converter function for a given sparkSQL datatype.
This function constructs converter function for a given sparkSQL datatype. This is used in writing Avro records out to disk
Returns a function that is used to convert avro types to their corresponding sparkSQL representations.
This function takes an avro schema and returns a sql schema.
* On top level, the converters provide three high level interface. 1. toSqlType: This function takes an avro schema and returns a sql schema. 2. createConverterToSQL: Returns a function that is used to convert avro types to their corresponding sparkSQL representations. 3. convertTypeToAvro: This function constructs converter function for a given sparkSQL datatype. This is used in writing Avro records out to disk