public static String getAvroSchema ( Record metadataRecord ) throws HiveStageCheckedException { if ( metadataRecord . has ( SEP + AVRO_SCHEMA ) ) { return metadataRecord . get ( SEP + AVRO_SCHEMA ) . getValueAsString ( ) ; } throw new HiveStageCheckedException ( Errors . HIVE_17 , AVRO_SCHEMA , metadataRecord ) ; }
Get Avro Schema from Metadata Record .