public static boolean doesSupportSchemaInference(Configuration conf, String fileFormat) throws HiveException {
    return SchemaInference.class.isAssignableFrom(getSerde(conf, fileFormat));
  }
Determines if a supplied fileFormat supports Schema Inference for CREATE TABLE LIKE FILE.

@param conf Configuration object used to get class.
@param fileFormat File format to check for Schema Inference support.
@throws HiveException if unable to get SerDe class for fileFormat
ql/src/java/org/apache/hadoop/hive/ql/io/SchemaInferenceUtils.java