Need to extract table schema (using describe\list columns) into .txt or .csv file and later want to convert those files into .avsc(avro schema) file using python.
sample.txt:
COLUMN_NAME |TYPE_NAME|DEC&|NUM&|COLUM&|COLUMN_DEF|CHAR_OCTE&|IS_NULL&
AIRLINE |CHAR |NULL|NULL|2 |NULL |4 |NO AIRLINE_FULL |VARCHAR |NULL|NULL|24 |NULL |48 |YES
Need to convert sample.txt into sample.avsc