CatalogDataSourceService.

scan_pdm_and_generate_logical_model

scan_pdm_and_generate_logical_model( data_source_id: str, generate_ldm_request: CatalogGenerateLdmRequest, scan_request: CatalogScanModelRequest, report_warnings: bool ) -> tuple[CatalogDeclarativeModel, CatalogScanResultPdm]

Scan data source and use returned PDM to generate logical data model. If generate_ldm_request

contains PDM already, PDM tables received from the scan are appended without deduplication.

Parameters

nametypedescription
data_source_idstrData Source identification string. e.g. "demo"
generate_ldm_requestCatalogGenerateLdmRequestLDM options. Defaults to CatalogGenerateLdmRequest(separator="__", wdf_prefix="wdf")
scan_requestCatalogScanModelRequestOptions for the Scan Request. Defaults to CatalogScanModelRequest().
report_warningsboolSwitch to turn on warnings. Defaults to False.

Returns

typedescription
CatalogDeclarativeModelObject Containing declarative Logical Data Model CatalogScanResultPdm: An instance of CatalogScanResultPdm. Containing pdm itself and a list of warnings that occurred during scanning.