mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-27 15:38:43 +00:00
Fix Null Columns (#22365)
This commit is contained in:
parent
5b3bb637fb
commit
860694e0af
@ -728,7 +728,7 @@ public class TableRepository extends EntityRepository<Table> {
|
||||
}
|
||||
|
||||
private void setColumnProfile(List<Column> columnList) {
|
||||
for (Column column : columnList) {
|
||||
for (Column column : listOrEmpty(columnList)) {
|
||||
ColumnProfile columnProfile =
|
||||
JsonUtils.readValue(
|
||||
daoCollection
|
||||
|
||||
@ -131,7 +131,7 @@ public class PIIMasker {
|
||||
}
|
||||
|
||||
public static List<Column> getTableProfile(List<Column> columns) {
|
||||
for (Column column : columns) {
|
||||
for (Column column : listOrEmpty(columns)) {
|
||||
if (hasPiiSensitiveTag(column)) {
|
||||
column.setProfile(null);
|
||||
column.setName(flagMaskedName(column.getName()));
|
||||
|
||||
@ -739,7 +739,7 @@ public final class EntityUtil {
|
||||
|
||||
public static <T extends FieldInterface> List<T> getFlattenedEntityField(List<T> fields) {
|
||||
List<T> flattenedFields = new ArrayList<>();
|
||||
fields.forEach(column -> flattenEntityField(column, flattenedFields));
|
||||
listOrEmpty(fields).forEach(column -> flattenEntityField(column, flattenedFields));
|
||||
return flattenedFields;
|
||||
}
|
||||
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "../../entity/data/table.json#/definitions/column"
|
||||
},
|
||||
"default": null
|
||||
}
|
||||
},
|
||||
"dataModel": {
|
||||
"$ref": "../../entity/data/table.json#/definitions/dataModel"
|
||||
|
||||
@ -357,8 +357,7 @@
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/column"
|
||||
},
|
||||
"default": null
|
||||
}
|
||||
},
|
||||
"profile": {
|
||||
"description": "Latest Data profile for a Column.",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user