mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-06-27 04:22:05 +00:00
Remove Default: null from columns and let json to pojo handle (#21934)
* Remove Default: null from columns and let json to pojo handle * Remove Setting table columns to null * Fix Failing Tests --------- Co-authored-by: Sriharsha Chintalapani <harshach@users.noreply.github.com>
This commit is contained in:
parent
1e50fc1376
commit
2c696bb1e2
@ -588,8 +588,6 @@ public class TableRepository extends EntityRepository<Table> {
|
|||||||
table.setProfile(tableProfile);
|
table.setProfile(tableProfile);
|
||||||
if (includeColumnProfile) {
|
if (includeColumnProfile) {
|
||||||
setColumnProfile(table.getColumns());
|
setColumnProfile(table.getColumns());
|
||||||
} else {
|
|
||||||
table.setColumns(null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the column tags. Will be used to hide the data
|
// Set the column tags. Will be used to hide the data
|
||||||
|
@ -1443,7 +1443,7 @@ public class TableResourceTest extends EntityResourceTest<Table, CreateTable> {
|
|||||||
table1 = getLatestTableProfile(table1.getFullyQualifiedName(), ADMIN_AUTH_HEADERS);
|
table1 = getLatestTableProfile(table1.getFullyQualifiedName(), ADMIN_AUTH_HEADERS);
|
||||||
verifyTableProfile(table1.getProfile(), table1ProfileList.get(table1ProfileList.size() - 1));
|
verifyTableProfile(table1.getProfile(), table1ProfileList.get(table1ProfileList.size() - 1));
|
||||||
table1 = getLatestTableProfile(table1.getFullyQualifiedName(), false, ADMIN_AUTH_HEADERS);
|
table1 = getLatestTableProfile(table1.getFullyQualifiedName(), false, ADMIN_AUTH_HEADERS);
|
||||||
assertNull(table1.getColumns());
|
assertNotNull(table1.getColumns());
|
||||||
|
|
||||||
// Table profile with column profile as null
|
// Table profile with column profile as null
|
||||||
timestamp = TestUtils.dateToTimestamp("2022-09-09");
|
timestamp = TestUtils.dateToTimestamp("2022-09-09");
|
||||||
|
@ -1003,8 +1003,7 @@
|
|||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/definitions/column"
|
"$ref": "#/definitions/column"
|
||||||
},
|
}
|
||||||
"default": null
|
|
||||||
},
|
},
|
||||||
"tableConstraints": {
|
"tableConstraints": {
|
||||||
"description": "Table constraints.",
|
"description": "Table constraints.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user