Skip to main content
info

This article lays out basic capabilities and technical specifications of the Amazon Redshift connector. For a full step-by-step guide on how to import Redshift's metadata into Dataedo, see this page

Amazon Redshift

Catalog and documentation​

Data catalog​

Dataedo documents metadata of the following objects:

  • Tables
  • External tables (Redshift Spectrum)
  • Views
  • Materialized views
  • Procedures
  • Functions
  • COPY commands
useful tip

For more details, see the Connector specification section below.

Catalog options summary​

  • Document and enrich metadata: edit descriptions, aliases, and glossary links.
  • Use source comments: import table, view, column, procedure, and function comments from Redshift.
  • Model relationships visually: import primary, foreign, and unique key constraints and build ER diagrams in subject areas.
  • Apply governance features: use profiling, quality checks, lookups, and classification.
  • Track and share changes: publish documentation to Portal and exports.

Linked sources​

Redshift can reach outside of its own database in several ways. Each is imported as a separate Linked Source:

Redshift constructImported as a linked source namedCreated from
External table with an Amazon S3 locationS3 bucket nameExternal table location
COPY commandS3 bucket nameCOPY command location
External schema over AWS Glue Data Catalog or Hivedatabase@hostSVV_EXTERNAL_SCHEMAS
External schema over PostgreSQL (federated query)database@hostSVV_EXTERNAL_SCHEMAS
External schema over Amazon KinesisStream nameSVV_EXTERNAL_SCHEMAS
caution

Dataedo assigns a linked source to an object automatically only when the matching documentation in the repository is an Amazon S3 source or a source created manually. Other external sources have to be mapped to an existing Dataedo source manually. Learn more here.

Connector specification​

Supported scope​

AreaSupportedScopeRequirements
Metadata importTables, external tables, views, materialized views, procedures, functions, COPY commandsSee Required access level
Descriptions and aliasesManual enrichment in Dataedo after importInitial schema import completed
Relationships and diagramsPrimary, foreign, and unique key constraints imported and used in ER diagramsConstraints must be declared in the source schema
Automatic lineageObject-level and column-level for views, materialized views, procedures, functions, external tables, and COPY commandsSee Required access level
Data profiling and qualityProfiling, quality checks, and classification workflowsSELECT on the profiled or tested objects
Table statisticsRow count, query and update timestamps and counters, last load timeSee Table Statistics
Write-back commentsPartialDesktop only — Export comments to databasePermission to comment on the documented objects
Extended propertiesNot available for Redshift
Metadata syncNot available for Redshift

Imported objects​

ObjectImported as
TableTable
External tableTable
ViewView
Materialized viewView
ProcedureProcedure
FunctionFunction
COPY commandSQL Script

Imported metadata​

ImportedEditable
Tables, external tables
  Columns
   Data types
   Nullability
   Default value
   Column comments
  Table comments
  Primary keys
  Foreign keys
  Unique constraints
Views, materialized views
  Script
  Columns
   Data types
   Nullability
   Column comments
  View comments
Procedures, functions
  Script
  Language
  Parameters
  Returned value
  Parameter comments
  Procedure, function comments
COPY commands
  Script

Supported features​

FeatureSupported
Import comments
Write comments backDesktop only
Data profiling
Reference data (import lookups)
Relationships (PK/FK) tester
Generating DDL
Importing from DDL
Importing triggers
Importing extended properties

Lineage support​

SourceMethodSupported
ViewsFrom dependencies
Views, materialized views (column level)From SQL parsing
Procedures, functions (column level)From SQL parsing
External tables (object and column level)From linked sources
COPY commands (object level)From query history

Redshift scripts are parsed with the PostgreSQL dialect. COPY-command lineage requires the Data lineage from query history import option — see Automatic Data Lineage.

Data profiling​

ProfileSupport
Table row count
Table sample data
Column distribution (unique, non-unique, null, empty values)
Min, max values
Average
Variance
Standard deviation
Min-max span
Number of distinct values
Top 10/100/1000 values
10 random values

Read more about profiling in the Data Profiling documentation.

Not supported or limited​

Not supported / LimitedWorkaround
TriggersRedshift has no triggers
IndexesRedshift has no user indexes; primary, foreign, and unique key constraints are imported instead
Check constraintsAdd manual documentation
Extended properties as custom fieldsDocument the values manually in custom fields
Metadata sync (description write-back) in the PortalExport comments from Dataedo Desktop
Incremental importNone — every Redshift import re-reads the full schema (see Known issues below)
Automatic mapping of external schemas to Dataedo sourcesMap the linked source manually before parsing SQL
Parameter commentsRedshift stores no parameter comments; document them in Dataedo

Supported versions and editions​

Supported deploymentsNotes
Amazon Redshift provisioned clusters, Amazon Redshift Serverless workgroupsDataedo reads the cluster version with VERSION(); no minimum version applies

Required access level​

Importing metadata requires a Redshift account with read access to the system catalog of the documented database. Granting USAGE on information_schema and pg_catalog lets a user import every object they can see; alternatively, grant SELECT only on the specific objects you want to document.

Dataedo does not alter source data during synchronization.

Permission / accessUsed forIf missing
Connect privilege on the documented databaseEstablishing the connection and running importConnection and import cannot start
USAGE on information_schema and pg_catalogReading objects, columns, constraints, and definitionsImport is limited to accessible objects; metadata is incomplete
USAGE on the documented schemasObject discoveryObjects in those schemas are not listed at all
SELECT on profiled, tested, and classified objectsData profiling, data quality, classificationProfiling and quality results are partial or fail
Superuser, or SYSLOG ACCESS UNRESTRICTEDCOPY-command import and query-based table statisticsOnly the connecting user's own queries are visible — usually no COPY commands and no query statistics at all
SELECT on SVV_TABLE_INFO (or superuser)Table statisticsQuery and update timestamps and counters are not imported

Amazon Redshift documents that "SYS_QUERY_HISTORY is visible to all users. Superusers can see all rows; regular users can see only their own data", and that SVV_TABLE_INFO is "visible only to superusers". A dedicated read-only Dataedo account therefore imports no COPY commands and no query-based statistics until it is a superuser or is granted the access above:

ALTER USER dataedo_user SYSLOG ACCESS UNRESTRICTED;
GRANT SELECT ON SVV_TABLE_INFO TO dataedo_user;

Plain metadata import (tables, views, procedures, functions, constraints, dependencies) does not need these grants.

The following objects are accessed during import. If access is missing, the import impact is:

Redshift object / viewWhat will be missing in import without access
SVV_TABLESObject discovery baseline for tables, external tables, and views — nothing is imported
SVV_COLUMNSColumn list and core column metadata (names, data types, nullability, defaults, comments)
SVV_EXTERNAL_TABLESExternal-table locations, and the S3 linked sources derived from them
SVV_EXTERNAL_SCHEMASLinked sources for Glue, Hive, PostgreSQL, and Kinesis external schemas
PG_CATALOG.PG_VIEWSView and materialized-view definitions — no scripts and no parser lineage for views
PG_CATALOG.PG_PROC, PG_PROC_INFOProcedures and functions, including their scripts
PG_CATALOG.PG_NAMESPACESchema resolution for procedures, functions, and constraints
PG_CATALOG.PG_LANGUAGEProcedure and function language
PG_CATALOG.PG_DESCRIPTIONProcedure and function comments
PG_CATALOG.PG_CONSTRAINT, PG_CLASS, PG_ATTRIBUTEPrimary, foreign, and unique key constraints and their column mapping
INFORMATION_SCHEMA.ROUTINES, INFORMATION_SCHEMA.PARAMETERSProcedure and function parameters and returned values
INFORMATION_SCHEMA.VIEW_TABLE_USAGE, INFORMATION_SCHEMA.TABLESView dependencies, and the object-level lineage built from them
PG_DATABASEThe list of databases offered when creating the connection
SYS_QUERY_HISTORYCOPY commands and the lineage built from them (only when Data lineage from query history is enabled)
SYS_QUERY_DETAIL, SVV_TABLE_INFO, PG_CLASS, PG_NAMESPACETable statistics

Known issues and limitations​

  • COPY commands are only as complete as the query history. Dataedo reads them from SYS_QUERY_HISTORY, which Redshift purges automatically. COPY commands that have aged out of the query history cannot be imported, and the SQL Script objects created from earlier imports are not refreshed from the source.
  • Every Redshift import is a full re-import. The connector cannot detect changed objects, so each scheduled import re-reads and re-processes the whole selected schema. Narrow the import scope with advanced filters if the import takes too long.
  • Column-level lineage for external tables matches columns by name. Columns that are renamed between the external source and the Redshift external table are not linked.

Tips and tricks​

Dataedo is an end-to-end data governance solution for mid-sized organizations.
Data Lineage • Data Quality • Data Catalog