Destinations
Connect Amazon Redshift as a destination
Connect Artie to Amazon Redshift with a dedicated service account, choose the schema your tables land in, and control how JSON and long strings are stored.
Required settings
Artie needs these values to write to Redshift. Each field name matches its label in the Artie dashboard.
| Field | What to enter |
|---|---|
| Redshift endpoint | Your cluster endpoint, in the format HOSTNAME:PORT/DATABASE. |
| Username | The username of the service account Artie connects as. |
| Password | The password of that service account. |
| Schema name | The schema Artie writes to. Pick one from the list or create one. |
The dashboard calls the last part of the endpoint the namespace. Artie connects to it as the database, for example redshift-test-cluster.us-east-1.redshift.amazonaws.com:5439/dev.
Find your Redshift endpoint
On your cluster’s page in the Amazon Redshift console, copy Endpoint from General information.
Artie rejects an endpoint that doesn’t contain exactly one : and one /, or whose port isn’t a number.
1. Create a service account
Run this in Redshift to create the user Artie connects as and grant it access:
CREATE USER artie_transfer WITH PASSWORD 'PASSWORD';
GRANT SELECT, INSERT, UPDATE, DELETE, DROP, ALTER ON ALL TABLES IN SCHEMA SCHEMA_NAME TO artie_transfer;
GRANT CREATE, USAGE ON SCHEMA SCHEMA_NAME TO artie_transfer;
GRANT CREATE ON DATABASE DATABASE_NAME TO artie_transfer;Replace PASSWORD with a password, SCHEMA_NAME with the schema Artie writes to, and DATABASE_NAME with the database in your endpoint.
The last statement lets Artie create missing schemas, including its staging schema.
2. Choose how Artie reaches Redshift
When you create a pipeline, the Network access step offers three connection methods.
| Method | How Artie connects |
|---|---|
| SSH tunnel | Through a bastion host you control. See SSH tunnels. |
| Allowlist Artie IPs | Directly, through your firewall or security group. Add Artie’s fixed IP addresses to your allowlist. |
| PrivateLink | Over a private network link. See AWS PrivateLink. |
PrivateLink is available on Enterprise plans, on data planes that support it. Artie connects to Redshift with sslmode=require.
3. Add Redshift in Artie
These steps create the destination in the pipeline setup flow.
- On the Choose destination step, select Redshift.
- On the Network access step, select a connection method and complete its page.
- Select Continue.
- On the Prepare destination step, select Continue.
- On the Connect and verify step, enter Redshift endpoint, Username and Password.
- In Schema name, select a schema. To create one, type its name and select Create “NAME”.
NAME is the schema name you typed. Prepare destination shows the service account SQL from Create a service account, in case you haven’t run it.
The schema list loads once Artie has a valid endpoint, username and password. A schema the service account can’t read is disabled, with the message “More permissions are required to read from this schema”.
Write to one schema or several
If your source has schemas, a Schema control appears with One schema and Multiple schemas.
- One schema writes every table to the schema you select. For a source table outside the default schema, Artie adds the source schema name to the front of the table name.
- Multiple schemas writes each table to a schema named after its source schema. Schema name prefix (optional) adds a prefix to each of those names.
With Multiple schemas, a Create missing schemas setting appears. Turn it on if some of those schemas don’t exist in Redshift yet. Artie creates them when the pipeline deploys.
Reuse an existing Redshift connector
If you choose an existing Redshift connector on Choose destination, Artie skips Network access and Prepare destination. The connector’s endpoint and credentials stay as they are, and you set only the schema.
Verify the connection
On the Connect and verify step, select Verify destination. Artie shows “Destination verified” when the check passes. Select Continue.
The check confirms that each schema Artie writes to exists, and that the service account has CREATE and USAGE on it. It also checks the service account’s permissions on the pipeline’s tables.
The check needs tables. If a source with a Choose tables step has none chosen, the button reads Test connection. Artie then shows “Choose tables before verifying the destination.” Test connection checks the connection only, so choose tables and then verify.
To verify at a later time, select Verify later.
Advanced
These settings are optional. Each is off by default, and Staging schema is unset. The first column is the label in pipeline setup. The second is the label on the pipeline page.
| Setting in pipeline setup | Label on the pipeline page | What it does |
|---|---|---|
| Staging schema | Put staging tables in a different schema | Keeps Artie’s temporary staging tables in a separate schema, out of the one your tables land in. |
| Create missing schemas | Dynamically create namespaces | Creates destination schemas that don’t exist yet when the pipeline deploys, instead of failing verification on them. |
| JSON as VARCHAR | Store JSON as VARCHAR | Stores new JSON columns as VARCHAR(MAX) instead of SUPER. |
| Truncate oversized values | Truncate exceeded values | Trims a value longer than its column allows, instead of replacing it with __artie_exceeded_value. |
| Truncate long strings in JSON | Truncate long strings in JSON | Trims strings inside SUPER values that are over Redshift’s limit, instead of failing the load. |
When you create a pipeline, expand Advanced options on the Connect and verify step.
For an existing pipeline, select Edit pipeline, open the Destination: Redshift tab, then expand Advanced settings. The two schema settings are under General, and the other three are under Data handling. Select Deploy to apply a change.
Type mapping
Artie creates these Redshift types for new columns:
| Source data | Redshift type |
|---|---|
| JSON objects | SUPER, or VARCHAR(MAX) with Store JSON as VARCHAR on |
| Arrays | SUPER |
Geometry values, for example PostGIS geometry | GEOMETRY, with the source SRID |
Geography values, for example PostGIS geography | SUPER, holding GeoJSON |
| UUIDs and intervals | VARCHAR(MAX) |
| Binary values | VARCHAR(MAX), holding Base64 text |
| Timestamps | TIMESTAMP WITH TIME ZONE or TIMESTAMP WITHOUT TIME ZONE, to the microsecond |
Artie also loads into GEOMETRY and GEOGRAPHY columns you create yourself. It writes GEOGRAPHY values with SRID 4326, since Redshift only supports WGS84 for that type.
Redshift caps a GEOMETRY or GEOGRAPHY value at 1,048,447 bytes. A larger value can’t be stored. An insert writes NULL, and an update keeps the geometry the row already has.
Artie also loads binary values into VARBYTE columns you create yourself. It sends values of up to 1,024,000 bytes, so create the column as VARBYTE(1024000). A plain VARBYTE holds 64,000 bytes, Redshift’s default. For a value over 1,024,000 bytes, Truncate exceeded values decides what’s stored. Off, Artie writes __artie_exceeded_value as bytes. On, it keeps the first 1,024,000 bytes.
Artie also loads time values into TIME WITH TIME ZONE (TIMETZ) columns you create yourself. Redshift converts each value with the session time zone, so the result is correct only when that zone is UTC, Redshift’s default. In another zone, the stored times are off by that zone’s offset. To check, run SHOW timezone; as the service account. If it isn’t UTC, run ALTER USER artie_transfer SET timezone TO 'UTC';.
JSON data as SUPER
Artie creates JSON columns as SUPER. Redshift stores a SUPER value in a parsed binary form, so a query can read nested fields and arrays directly with PartiQL, without calling JSON_PARSE first.
Two limits apply to SUPER values:
- The whole value: Artie writes JSON values up to 16,000,000 bytes. A larger value is replaced with
{"key":"__artie_exceeded_value"}. - Each string inside the value: Redshift caps strings inside a
SUPERvalue at 65,535 bytes. The cap is 16,000,000 bytes if your cluster hasenable_large_strings_opt_inturned on. See SUPER limitations.
A string over that cap makes Redshift reject the load for the whole batch, so none of the batch’s rows reach the table. Turn on Truncate long strings in JSON so Redshift trims those strings to the cap and the load goes through.
JSON and string settings
Three of the Advanced settings change how Artie stores JSON and long strings. Each heading here uses the pipeline page label, with the pipeline setup label in parentheses.
Store JSON as VARCHAR (JSON as VARCHAR)
Artie creates new JSON columns as VARCHAR(MAX) instead of SUPER. Columns that are already SUPER stay SUPER, and arrays are always SUPER.
A VARCHAR(MAX) column holds up to 65,535 bytes, so a longer JSON value follows the Truncate exceeded values rule.
Truncate exceeded values (Truncate oversized values)
This setting decides what happens to a string longer than its column allows, for example more than 65,535 bytes in a VARCHAR(MAX) column.
The setting has two states:
- Off (default): Artie writes
__artie_exceeded_valuein place of the value. - On: Artie trims the value to the column’s length in bytes, cut back to the last whole character.
A binary value in a VARBYTE column follows the same setting once it’s over 1,024,000 bytes. With the setting on, it keeps the first 1,024,000 bytes.
Truncate long strings in JSON
Artie runs each load with Redshift’s json_parse_truncate_strings turned on. A string inside a SUPER value that’s over Redshift’s cap is trimmed instead of failing the load. The setting is off by default. See SUPER configurations.
Was this page helpful?
- Need help? Message us on Slack or email [email protected].
- Want a walkthrough? Book a demo.
- LLM? Read llms.txt.