Package org.odpi.openmetadata.adapters.connectors.duckdb.survey


package org.odpi.openmetadata.adapters.connectors.duckdb.survey
Provides the survey action service that surveys a DuckDB database - its schemas, tables and columns, plus the federation relationships (attached databases and external file/object-store scans) that it makes use of.
  • Class
    Description
    DuckDBDatabaseStatsExtractor gathers statistics about the schemas, tables and columns of a DuckDB database using DuckDB's own catalog metadata table functions (duckdb_schemas(), duckdb_tables() and duckdb_columns()) and converts them into the same vendor-neutral measurement beans used by the other database connector suites (RelationalDataManagerMeasurement, RelationalSchemaMeasurement, RelationalTableMeasurement and RelationalColumnMeasurement), tagged with the reused SurveyDatabaseAnnotationType constants.
    DuckDBDatabaseSurveyActionProvider is the OCF connector provider for the DuckDB database survey action service.
    DuckDBDatabaseSurveyActionService surveys the content of a DuckDB database.
    DuckDBFederationExtractor discovers the federation relationships that a DuckDB database makes use of: other databases that have been ATTACH-ed to it, discovered via DuckDB's duckdb_databases() table function views that scan external file/object-store resources (via functions like read_parquet(), read_csv(), read_csv_auto(), read_json(), iceberg_scan() or delta_scan()), discovered via DuckDB's duckdb_views() table function Both queries are wrapped defensively - not every DuckDB database makes use of federation features, and older DuckDB versions may not support every table function used here, so failures are logged and processing continues rather than failing the whole survey/catalog pass.
    Simple, ordered holder for one column's name and DuckDB-reported data type, as read from duckdb_columns().
    The SurveyDuckDBAnnotationType enum describes the annotation types used by the DuckDB database survey action service to describe the federation relationships that a DuckDB database makes use of.