From bcff058ba1e56a895b57a83aafcca96a781131eb Mon Sep 17 00:00:00 2001 From: Mykhailo Savchenko Date: Mon, 21 Oct 2024 13:34:36 +0300 Subject: [PATCH] DAT-18792: SerializableFieldNamespace added, need more investigation on how to enable serializableFieldType as an element against defaulting attribute --- .../change/createTable/CreateTableChangeDatabricks.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/liquibase/ext/databricks/change/createTable/CreateTableChangeDatabricks.java b/src/main/java/liquibase/ext/databricks/change/createTable/CreateTableChangeDatabricks.java index bed29359..5cb21a5c 100644 --- a/src/main/java/liquibase/ext/databricks/change/createTable/CreateTableChangeDatabricks.java +++ b/src/main/java/liquibase/ext/databricks/change/createTable/CreateTableChangeDatabricks.java @@ -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; @@ -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(); } }