private String getDefaultLocation(String dbName, String tableName, boolean isExt) throws SemanticException {
    String tblLocation;
    try {
      Warehouse wh = new Warehouse(conf);
      tblLocation = wh.getDefaultTablePath(db.getDatabase(dbName), tableName, isExt).toUri().getPath();
    } catch (MetaException | HiveException e) {
      throw new SemanticException(e);
    }
    return tblLocation;
  }
Throw an error if the user tries to use the DDL with
hive.internal.ddl.list.bucketing.enable set to false.
ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java