The Snowflake source allows you to sync data from Snowflake. It supports both Full Refresh and Incremental syncs. You can choose if this connector will copy only the new or updated data, or all rows in the tables and columns you set up for replication, every time a sync is run.
The Snowflake source does not alter the schema present in your warehouse. Depending on the destination connected to this source, however, the result schema may be altered. See the destination's documentation for more details.
Full Refresh Sync
Incremental - Append Sync
You'll need the following information to configure the Snowflake source:
Create a dedicated read-only Airbyte user and role with access to all schemas needed for replication.
This step is optional but highly recommended to allow for better permission control and auditing. Alternatively, you can use Airbyte with an existing user in your database.
To create a dedicated database user, run the following commands against your database:
-- set variables (these need to be uppercase)SET AIRBYTE_ROLE = 'AIRBYTE_ROLE';SET AIRBYTE_USERNAME = 'AIRBYTE_USER';-- set user passwordSET AIRBYTE_PASSWORD = '-password-';BEGIN;-- create Airbyte roleCREATE ROLE IF NOT EXISTS $AIRBYTE_ROLE;-- create Airbyte userCREATE USER IF NOT EXISTS $AIRBYTE_USERNAMEPASSWORD = $AIRBYTE_PASSWORDDEFAULT_ROLE = $AIRBYTE_ROLEDEFAULT_WAREHOUSE= $AIRBYTE_WAREHOUSE;-- grant Airbyte schema accessGRANT OWNERSHIP ON SCHEMA $AIRBYTE_SCHEMA TO ROLE $AIRBYTE_ROLE;COMMIT;
You can limit this grant down to specific schemas instead of the whole database. Note that to replicate data from multiple Snowflake databases, you can re-run the command above to grant access to all the relevant schemas, but you'll need to set up multiple sources connecting to the same db on multiple schemas.
Your database user should now be ready for use with Airbyte.
Added json config validator