Area: Ingestion Issues
Sub-Area: Fivetran Connector, Destination Platform Support
Applies to: OSS + Cloud
Issue
Fivetran replicates your data to a Managed Data Lake destination. The data lands in S3 and Fivetran registers the tables in AWS Glue. You want DataHub to show Fivetran connectors and lineage for these tables.
The Fivetran connector's log_database mode reads the Fivetran Platform Connector log from a warehouse. destination_platform accepts only snowflake, bigquery or databricks. A Managed Data Lake is not one of these. Some teams read the log through a Snowflake catalog-linked database over the Glue catalog instead, and ingestion then fails.
Error Messages
Snowflake returns this error when the connector runs USE SCHEMA on the log schema in a catalog-linked database:
Schema '<your-database>.<FIVETRAN_LOG_SCHEMA>' does not exist or not authorized.
You Might Be Asking
- Does the DataHub Fivetran connector support Fivetran Managed Data Lake destinations backed by AWS Glue?
- Do I need the Fivetran Platform Connector log in Snowflake, BigQuery or Databricks?
- Why does the connector fail on a lowercase schema in a Snowflake catalog-linked database?
- How do I connect Fivetran lineage to the tables the Glue connector ingests?
Cause
In log_database mode with a Snowflake log, the connector checks the database and log_schema values. If a name is a valid unquoted Snowflake identifier (letters, digits and underscores), the connector converts it to uppercase and wraps it in double quotes. Glue registers schemas with lowercase names. So the connector looks for "FIVETRAN_LOG" while the catalog-linked database holds "fivetran_log", and Snowflake reports that the schema does not exist.
Solution
Option 1: Use REST API mode (recommended)
Use a recent acryl-datahub CLI release. Version 1.6.0 and later include REST API mode and Managed Data Lake routing. In REST API mode the connector reads connectors, destinations and table and column lineage from the Fivetran REST API. It does not read a log database, so you need no catalog-linked database and you avoid the casing problem.
- Create a Fivetran API key and secret.
- Set
log_source: rest_apiand add anapi_configblock. Leave outfivetran_log_config.
source:
type: fivetran
config:
log_source: rest_api
api_config:
api_key: "${FIVETRAN_API_KEY}"
api_secret: "${FIVETRAN_API_SECRET}"
The connector looks up each destination through the API. For a Managed Data Lake destination with the Fivetran "maintain tables in Glue" setting (should_maintain_tables_in_glue) turned on, it emits Glue dataset URNs of the form <schema>.<table>. In this setup the Fivetran schema is the Glue database. Without that setting, the default is Iceberg URNs. To force Glue for one destination, pin the platform by destination ID:
destination_to_platform_instance:
<your_fivetran_destination_id>:
platform: glue
You need no database value for Glue. See Fivetran Managed Data Lake Service in the Fivetran source docs.
- Ingest the same tables with the AWS Glue source. The Fivetran Glue URNs match the Glue source URNs when both recipes use the same
platform_instanceandenv. A plain Glue recipe sets noplatform_instance, andenvdefaults toPRODin both. To add lineage from the S3 or Iceberg storage locations to the Glue tables, turn on storage lineage:
source:
type: glue
config:
aws_region: <your-aws-region>
emit_storage_lineage: true
glue_storage_lineage_direction: upstream
REST-only mode has one gap. The Fivetran REST API has no sync history endpoint, so DataHub shows no per-sync run history. If you need run history and the log is readable from Snowflake, BigQuery or Databricks, keep log_source: rest_api and also add a fivetran_log_config block. The connector then reads run history from the log database. If that log sits in a Snowflake catalog-linked database, apply Option 2 to that block.
Option 2: Keep reading the log from a Snowflake catalog-linked database
Set preserve_case: true under fivetran_log_config.snowflake_destination_config. The connector then uses database and log_schema exactly as you write them. The default is false, and upgrading alone does not change the casing behavior.
source:
type: fivetran
config:
fivetran_log_config:
destination_platform: snowflake
snowflake_destination_config:
account_id: <your-snowflake-account>
warehouse: <your-warehouse>
username: <your-username>
password: "${SNOWFLAKE_PASSWORD}"
role: <your-datahub-role>
database: <your-glue-linked-database>
log_schema: <your_fivetran_log_schema>
preserve_case: true
Write the names in the case Glue stores them, which is lowercase.
To confirm the casing mismatch, run these queries in Snowflake as the DataHub role:
USE DATABASE "<your-glue-linked-database>";
-- Succeeds: lowercase name, as Glue created it
SELECT * FROM "<your_fivetran_log_schema>".connection LIMIT 1;
-- Fails: uppercase name, as the connector sends it by default
SELECT * FROM "<YOUR_FIVETRAN_LOG_SCHEMA>".connection LIMIT 1;
Additional Notes
-
destination_platformhas no Managed Data Lake or Glue value. Managed Data Lake support comes fromlog_source: rest_api. - If you leave
log_sourceunset, the connector picks the mode from your config. With onlyapi_configit usesrest_api. Withfivetran_log_configpresent it useslog_database, even ifapi_configis also present. - In the Glue source,
emit_s3_lineageandglue_s3_lineage_directionare old names foremit_storage_lineageandglue_storage_lineage_direction. Column-level lineage between Glue and storage is on by default throughinclude_column_lineage. It needs storage lineage in theupstreamdirection. - These are recipe settings. DataHub Cloud customers make the same changes in their ingestion source. No server change is needed.