From 9a63d776b5f75b51c047748a837825b180bb3b77 Mon Sep 17 00:00:00 2001 From: Mayur Singal <39544459+ulixius9@users.noreply.github.com> Date: Wed, 8 Jan 2025 11:18:05 +0530 Subject: [PATCH] Fix #19160: Add Depth Support Part-1 (#19275) (cherry picked from commit e32ad88c813c0077c26f90ca24b34ebc0f62f9f2) --- .../storage/containerMetadataConfig.json | 6 ++++++ .../storage/containerMetadataConfig.ts | 10 ++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/openmetadata-spec/src/main/resources/json/schema/metadataIngestion/storage/containerMetadataConfig.json b/openmetadata-spec/src/main/resources/json/schema/metadataIngestion/storage/containerMetadataConfig.json index 24942df3b96..0cd65ceba3d 100644 --- a/openmetadata-spec/src/main/resources/json/schema/metadataIngestion/storage/containerMetadataConfig.json +++ b/openmetadata-spec/src/main/resources/json/schema/metadataIngestion/storage/containerMetadataConfig.json @@ -31,6 +31,12 @@ }, "default": null }, + "depth":{ + "title": "Depth", + "description": "Depth of the data path in the container", + "type": "integer", + "default": 0 + }, "separator": { "title": "Separator", "description": "For delimited files such as CSV, what is the separator being used?", diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/metadataIngestion/storage/containerMetadataConfig.ts b/openmetadata-ui/src/main/resources/ui/src/generated/metadataIngestion/storage/containerMetadataConfig.ts index 0d872a3154e..90faddfd438 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/metadataIngestion/storage/containerMetadataConfig.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/metadataIngestion/storage/containerMetadataConfig.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 Collate. + * Copyright 2025 Collate. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -10,9 +10,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - - - /** +/** * Definition of the properties contained by an object store container template config file */ export interface ContainerMetadataConfig { @@ -31,6 +29,10 @@ export interface MetadataEntry { * The path where the data resides in the container, excluding the bucket name */ dataPath: string; + /** + * Depth of the data path in the container + */ + depth?: number; /** * Flag indicating whether the container's data is partitioned */