fix: preserve Glue view table fields (#1182)

This commit is contained in:
David Phillips authored and GitHub committed 2026-06-04 22:09:27 -05:00
1 parent 68c9dcc6fb
commit ef65660f3b
4 files changed
+75

No files matched your search

@@ -194,12 +194,15 @@ public class GlueService {
copy.setName(source.getName());
copy.setDatabaseName(source.getDatabaseName());
copy.setDescription(source.getDescription());
copy.setOwner(source.getOwner());
copy.setCreateTime(source.getCreateTime());
copy.setUpdateTime(source.getUpdateTime());
copy.setLastAccessTime(source.getLastAccessTime());
copy.setPartitionKeys(copyColumns(source.getPartitionKeys()));
copy.setStorageDescriptor(copyStorageDescriptor(source.getStorageDescriptor()));
copy.setTableType(source.getTableType());
copy.setViewOriginalText(source.getViewOriginalText());
copy.setViewExpandedText(source.getViewExpandedText());
copy.setParameters(copyMap(source.getParameters()));
return copy;
}
@@ -15,6 +15,8 @@ public class Table {
private String databaseName;
@JsonProperty("Description")
private String description;
@JsonProperty("Owner")
private String owner;
@JsonProperty("CreateTime")
@JsonFormat(shape = JsonFormat.Shape.NUMBER)
private Instant createTime;
@@ -30,6 +32,10 @@ public class Table {
private StorageDescriptor storageDescriptor;
@JsonProperty("TableType")
private String tableType;
@JsonProperty("ViewOriginalText")
private String viewOriginalText;
@JsonProperty("ViewExpandedText")
private String viewExpandedText;
@JsonProperty("Parameters")
private Map<String, String> parameters;
@@ -41,6 +47,8 @@ public class Table {
public void setDatabaseName(String databaseName) { this.databaseName = databaseName; }
public String getDescription() { return description; }
public void setDescription(String description) { this.description = description; }
public String getOwner() { return owner; }
public void setOwner(String owner) { this.owner = owner; }
public Instant getCreateTime() { return createTime; }
public void setCreateTime(Instant createTime) { this.createTime = createTime; }
public Instant getUpdateTime() { return updateTime; }
@@ -53,6 +61,10 @@ public class Table {
public void setStorageDescriptor(StorageDescriptor storageDescriptor) { this.storageDescriptor = storageDescriptor; }
public String getTableType() { return tableType; }
public void setTableType(String tableType) { this.tableType = tableType; }
public String getViewOriginalText() { return viewOriginalText; }
public void setViewOriginalText(String viewOriginalText) { this.viewOriginalText = viewOriginalText; }
public String getViewExpandedText() { return viewExpandedText; }
public void setViewExpandedText(String viewExpandedText) { this.viewExpandedText = viewExpandedText; }
public Map<String, String> getParameters() { return parameters; }
public void setParameters(Map<String, String> parameters) { this.parameters = parameters; }
}