title: "Fivetran" description: "How to use Fivetran to sync data into Materialize" aliases:
{{< private-preview />}}
Fivetran is a cloud-based automated data movement platform for extracting, loading and transforming data from a wide variety of connectors.
You can use Fivetran to sync data into Materialize for the following use cases:
For relational databases like PostgreSQL or MySQL, and event streaming sources like Apache Kafka, you should prefer to use Materialize native sources.
Fivetran syncs data from what they call sources to what they call destinations. Users create connectors to configure the data pipelines that repeatedly sync the data from each source to the destination at a scheduled cadence.
In this setup, Materialize is the destination. The source is whichever data source you're syncing into Materialize, such as Hubspot or Shopify.
Ensure that you have:
CREATE
privileges on the
target database in Materialize.Follow this Materialize-authored guide in the Fivetran docs to set up Materialize as a destination in Fivetran.
Follow the Fivetran guide on connectors to set up your connector(s). Choose your newly created Materialize destination as the destination for the connector.
Schema changes to existing tables is not currently supported. When creating a Connector you should select the option to "Block all" schema changes.
You can see the full list of available Fivetran connectors in their docs.
As we extract your data, we match Fivetran data types to types that Materialize supports. If we don't support a specific data type, we automatically change that type to the closest supported data type.
The data types in Materialize follow Fivetran's standard data type storage.
The following table illustrates how we transform Fivetran data types into Materialize-supported types:
FIVETRAN DATA TYPE | MATERIALIZE DATA TYPE |
---|---|
BOOLEAN | BOOLEAN |
SHORT | INT16 |
INT | INT32 |
LONG | INT64 |
BIGDECIMAL | DOUBLE |
FLOAT | FLOAT |
DOUBLE | DOUBLE |
LOCALDATE | DATE |
LOCALDATETIME | TIMESTAMP |
INSTANT | TIMESTAMP |
STRING | STRING |
JSON | JSONB |
BINARY | STRING |
XML | Unsupported |
The highest sync frequency Fivetran offers is 1 minute for Enterprise and Business Critical plans, and 5 minutes for all other plans. The lowest sync frequency is 24 hours. You can read more about sync scheduling in the Fivetran docs.