code: public static boolean isHiveTableAvroType(Table targetTable) throws IOException {
      String serializationLib = targetTable.getTTable().getSd().getSerdeInfo().getSerializationLib();
      String inputFormat = targetTable.getTTable().getSd().getInputFormat();
      String outputFormat = targetTable.getTTable().getSd().getOutputFormat();
  
      return inputFormat.endsWith("AvroContainerInputFormat") || outputFormat.endsWith("AvroContainerOutputFormat")
          || serializationLib.endsWith("AvroSerDe");
    }
docs: Tell whether a hive table is actually an Avro table
  @param targetTable
  @return
  @throws IOException