protected void validateColumn(Set<String> colNames, ColumnBuilder column) { // FIXME for now, we can't create complex columns if(column.getType() == DataType.COMPLEX_TYPE) { throw new UnsupportedOperationException(withErrorContext( "Complex column creation is not yet implemented")); } column.validate(getFormat()); if(!colNames.add(DatabaseImpl.toLookupName(column.getName()))) { throw new IllegalArgumentException(withErrorContext( "duplicate column name: " + column.getName())); } setColumnSortOrder(column); }