catalog_data_source.

scan_schemata

scan_schemata(data_source_id: str)

Returns a list of schemas that exist in the database and can be configured in the data source entity.

Data source managers like Dremio or Drill can work with multiple schemas and schema names can be injected into scan_request to filter out tables stored in the different schemas.

Parameters

nametypedescription
data_source_idstringData source identification string. e.g. "demo"

Returns

typedescription
list[string]List of schema names for the given data source specified by its id.

Example

# Scan schemata
sdk.catalog_data_source.scan_schemata(data_source_id="123")
# [
#   'demo',
# ...
# ]