public static void checkLocationProperties(Map<String, String> properties) throws DdlException {
        if (properties.containsKey(EXTERNAL_LOCATION_PROPERTY)) {
            throw new DdlException("Can't create non-managed Hive table. " +
                    "Only supports creating hive table under Database location. " +
                    "You could execute command without external_location properties");
        }
    }
@Test
    public void checkLocationProp() {
        Map<String, String> conf = new HashMap<>();
        conf.put("external_location", "xxx");
        ExceptionChecker.expectThrowsWithMsg(DdlException.class,
                "Can't create non-managed Hive table. Only supports creating hive table under Database location. " +
                        "You could execute command without external_location properties",
                () -> HiveWriteUtils.checkLocationProperties(conf));
    }