boolean indexIsSpatial = columnList.functionType() == IndexColumnList.FunctionType.Z_ORDER_LAT_LON;
// Can't check isSpatialCompatible before the index columns have been added.
if (indexIsSpatial && !Index.isSpatialCompatible(tableIndex)) {
throw new BadSpatialIndexException(tableIndex.getIndexName().getTableName(), null);
}
StorageFormatNode sfn = id.getStorageFormat();
if (sfn != null) {
tableIndex.setStorageDescription(ddl.getStorageFormatRegistry().parseSQL(sfn, tableIndex));
}
return tableIndex.getIndexName().getName();
}