fix: preserve Glue column parameters (#1210)

* fix: preserve Glue column parameters

* test: cover Glue column parameters compatibility
This commit is contained in:
David Phillips authored and GitHub committed 2026-06-07 23:19:26 -05:00
1 parent 1ea22d0f60
commit 94a8bdaca1
5 files changed
+23 -2

No files matched your search

@@ -449,6 +449,7 @@ public class GlueService {
columnCopy.setName(column.getName());
columnCopy.setType(column.getType());
columnCopy.setComment(column.getComment());
columnCopy.setParameters(copyMap(column.getParameters()));
copy.add(columnCopy);
}
return copy;
@@ -3,6 +3,9 @@ package io.github.hectorvent.floci.services.glue.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.quarkus.runtime.annotations.RegisterForReflection;
import java.util.LinkedHashMap;
import java.util.Map;
@RegisterForReflection
public class Column {
@JsonProperty("Name")
@@ -11,6 +14,8 @@ public class Column {
private String type;
@JsonProperty("Comment")
private String comment;
@JsonProperty("Parameters")
private Map<String, String> parameters;
public Column() {}
public Column(String name, String type) {
@@ -24,4 +29,6 @@ public class Column {
public void setType(String type) { this.type = type; }
public String getComment() { return comment; }
public void setComment(String comment) { this.comment = comment; }
public Map<String, String> getParameters() { return parameters == null ? null : new LinkedHashMap<>(parameters); }
public void setParameters(Map<String, String> parameters) { this.parameters = parameters == null ? null : new LinkedHashMap<>(parameters); }
}