Skip to content

Commit

Permalink
DAT-18792: SerializableFieldNamespace added, need more investigation …
Browse files Browse the repository at this point in the history
…on how to enable serializableFieldType as an element against defaulting attribute
  • Loading branch information
Mykhailo Savchenko committed Oct 21, 2024
1 parent f7ef735 commit bcff058
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import liquibase.database.Database;
import liquibase.exception.ValidationErrors;
import liquibase.ext.databricks.database.DatabricksDatabase;
import liquibase.parser.core.xml.StandardNamespaceDetails;
import liquibase.ext.databricks.parser.NamespaceDetailsDatabricks;
import liquibase.servicelocator.PrioritizedService;
import liquibase.statement.core.CreateTableStatement;
import lombok.Setter;
Expand Down Expand Up @@ -73,8 +73,11 @@ public ExtendedTableProperties getExtendedTableProperties() {
}

@Override
public String getSerializedObjectNamespace() {
return StandardNamespaceDetails.GENERIC_EXTENSION_XSD;
public String getSerializableFieldNamespace(String field) {
if("clusterColumns".equalsIgnoreCase(field)) {
return NamespaceDetailsDatabricks.DATABRICKS_NAMESPACE;
}
return getSerializedObjectNamespace();
}

}

0 comments on commit bcff058

Please sign in to comment.