public static HudiTableType fromInputFormat(String inputFormat) {
        switch (inputFormat) {
            case COW_INPUT_FORMAT:
            case COW_INPUT_FORMAT_LEGACY:
                return HudiTableType.COW;
            case MOR_RT_INPUT_FORMAT:
            case MOR_RT_INPUT_FORMAT_LEGACY:
                return HudiTableType.MOR;
            default:
                return HudiTableType.UNKNOWN;
        }
    }
@Test
    public void testInputFormat() {
        Assert.assertEquals(HudiTable.HudiTableType.COW,
                HudiTable.fromInputFormat("org.apache.hudi.hadoop.HoodieParquetInputFormat"));
        Assert.assertEquals(HudiTable.HudiTableType.COW,
                HudiTable.fromInputFormat("com.uber.hoodie.hadoop.HoodieInputFormat"));
        Assert.assertEquals(HudiTable.HudiTableType.MOR,
                HudiTable.fromInputFormat("org.apache.hudi.hadoop.realtime.HoodieParquetRealtimeInputFormat"));
        Assert.assertEquals(HudiTable.HudiTableType.MOR,
                HudiTable.fromInputFormat("com.uber.hoodie.hadoop.realtime.HoodieRealtimeInputFormat"));
        Assert.assertEquals(HudiTable.HudiTableType.UNKNOWN,
                HudiTable.fromInputFormat("org.apache.hadoop.hive.ql.io.HiveInputFormat"));
    }