mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-30 11:26:23 +00:00
fix: added depth in json and pass in metadata entry (#23332)
This commit is contained in:
parent
d1e829ed8c
commit
1f379a8697
@ -274,6 +274,7 @@ class StorageServiceSource(TopologyRunnerMixin, Source, ABC):
|
|||||||
isPartitioned=entry.isPartitioned,
|
isPartitioned=entry.isPartitioned,
|
||||||
partitionColumns=entry.partitionColumns,
|
partitionColumns=entry.partitionColumns,
|
||||||
separator=entry.separator,
|
separator=entry.separator,
|
||||||
|
depth=entry.depth,
|
||||||
)
|
)
|
||||||
for entry in manifest.entries
|
for entry in manifest.entries
|
||||||
if entry.containerName == container_name
|
if entry.containerName == container_name
|
||||||
|
@ -46,10 +46,17 @@
|
|||||||
"$ref": "../../entity/data/table.json#/definitions/column"
|
"$ref": "../../entity/data/table.json#/definitions/column"
|
||||||
},
|
},
|
||||||
"default": null
|
"default": null
|
||||||
|
},
|
||||||
|
"depth": {
|
||||||
|
"title": "Depth",
|
||||||
|
"description": "Depth level in the storage path hierarchy where data files reside.",
|
||||||
|
"type": "integer",
|
||||||
|
"default": 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"containerName" ,"dataPath"
|
"containerName",
|
||||||
|
"dataPath"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -63,6 +70,8 @@
|
|||||||
"default": null
|
"default": null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["entries"],
|
"required": [
|
||||||
|
"entries"
|
||||||
|
],
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
}
|
}
|
@ -30,6 +30,10 @@ export interface ManifestMetadataEntry {
|
|||||||
* The path where the data resides in the container, excluding the bucket name
|
* The path where the data resides in the container, excluding the bucket name
|
||||||
*/
|
*/
|
||||||
dataPath: string;
|
dataPath: string;
|
||||||
|
/**
|
||||||
|
* Depth level in the storage path hierarchy where data files reside.
|
||||||
|
*/
|
||||||
|
depth?: number;
|
||||||
/**
|
/**
|
||||||
* Flag indicating whether the container's data is partitioned
|
* Flag indicating whether the container's data is partitioned
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user