For the complete documentation index, see llms.txt. This page is also available as Markdown.

Redshift

Redshift is Amazon's fully managed, petabyte-scale data warehouse service. With Coupler.io, you can automatically export data from your Redshift tables, views, or custom SQL queries to Google Sheets, Excel, BigQuery, Data Studio, or even AI destinations like Claude and ChatGPT — all on a schedule you control.

Why connect Redshift to Coupler.io?

  • No code required — Select a table or write a SQL query; Coupler.io handles the rest

  • Flexible exports — Send data to spreadsheets, data warehouses, or AI platforms

  • Scheduled automation — Set it and forget it; your data updates on your timeline

  • Transform as you go — Use Join, Append, and Aggregate transformations to reshape your Redshift data before it lands in your destination

Prerequisites

  • An active Redshift cluster

  • A Redshift user account with read access to the tables or schemas you want to export

  • Host, port, database name, username, and password for your Redshift cluster

  • Outbound access from your Redshift cluster to Coupler.io's IP addresses (your Coupler.io support team can provide these)

How to connect

1

Log in to Coupler.io and create a new data flow. Click Add source and search for Redshift.

2

Enter your Redshift connection details:

  • Host — Your Redshift cluster endpoint (e.g., my-cluster.123456789.us-east-1.redshift.amazonaws.com)

  • Port — Default is 5439

  • Database — The database name you want to connect to

  • Username — Your Redshift username

  • Password — Your Redshift password

Click Test connection to verify the credentials work.

3

Choose your report type:

  • Select Table or view if you want to export an entire table or materialized view. Then pick the schema and table name from the dropdowns.

  • Select Custom SQL if you need to write a query to filter, aggregate, or join data. Paste your SQL query in the text field.

4

Select your destination. Choose where your Redshift data should land — Google Sheets, Excel, BigQuery, Data Studio, Claude, ChatGPT, Cursor, Gemini, Perplexity, OpenClaw, or another supported platform.

5

Run the data flow. Click Run to execute a manual test. Coupler.io will fetch your data and send it to the destination. Once this completes successfully, you can set up a schedule.

Redshift data overview

Redshift is a queryable data warehouse, so the data you can export depends entirely on what tables, views, and schemas exist in your cluster.

What data can you export?

Coupler.io connects directly to your Redshift cluster and can export:

  • Any table — Public or private tables in any schema you have read access to

  • Any view — Materialized or regular views

  • Custom query results — The output of any SELECT statement you write

Report types

Report type
Best for
Output

Table or view

One-to-one export of a Redshift table or view

All rows and columns from the selected table

Custom SQL

Filtered, aggregated, or transformed data

Results of your SQL query

Building custom SQL queries

Filter data

Aggregate metrics

Join multiple tables

Window functions

Common use cases

Sales dashboards

Export order, customer, and revenue data to Data Studio or Google Sheets for real-time sales tracking.

Finance reporting

Aggregate transaction data by account, region, or time period and send it to BigQuery for further analysis.

Customer insights

Join customer metadata with behavioral data and export to Claude or ChatGPT for AI-powered analysis.

Data warehouse consolidation

Use Coupler.io to combine Redshift data with data from other sources (Salesforce, Stripe, etc.) via Append or Join transformations.

Platform-specific notes

  • Redshift supports standard SQL syntax; if you're familiar with PostgreSQL, most queries will work directly

  • Use LIMIT in your Custom SQL query to test large datasets before full export

  • Redshift may compress or transform data types on export; verify column formats in your destination

  • If your query returns more than 10 million rows, consider adding filters or aggregation to stay within destination limits

  • Temporary tables (created with CREATE TEMP TABLE) are not accessible between connections; use permanent tables or views instead

  • Redshift's UNLOAD command is not required — Coupler.io handles data extraction directly via SQL queries

Redshift common issues

Connection issues

Connection test fails with "timeout" or "could not connect"

Redshift clusters are often deployed in private VPCs. Coupler.io needs network access to reach your cluster.

Solutions:

  • Confirm your Redshift cluster is publicly accessible (or has a public endpoint enabled)

  • Verify the host, port, and database name are correct

  • Check your Redshift security group allows inbound traffic on port 5439 (or your custom port)

  • Ask your Coupler.io support team for the IP addresses to whitelist in your security group

  • If your cluster is in a private VPC, consider using a public endpoint or an SSH tunnel (contact support)

"Invalid username or password" error

The credentials you entered don't match your Redshift user account.

Solutions:

  • Double-check your Redshift username and password

  • Verify the user has read access to the database and schema you're querying

  • Confirm you're using the correct database name

  • Reset your Redshift password in the AWS console and re-test

Missing data

Data in Coupler.io doesn't match Redshift

If the data pulled into your destination differs from what you see in Redshift, several things could be at play.

Solutions:

  • Run your SQL query directly in Redshift and verify the results match what Coupler.io exported

  • Check for NULL values or unexpected data types in your columns

  • Confirm no other processes are modifying your Redshift tables between the query and export

  • If using a Custom SQL query with a WHERE clause, verify the filter conditions are correct

  • Review your Coupler.io data flow logs for any warnings or truncation messages

Column values are NULL or blank in the destination

This can happen if your Redshift data contains NULL values or if there's a data type mismatch.

Solutions:

  • Check your Redshift table for NULL values using SELECT COUNT(*) FROM table WHERE column IS NULL

  • Use COALESCE() in your Custom SQL to replace NULLs with a default value: SELECT COALESCE(column_name, 'N/A') FROM table

  • Verify column data types in Redshift match what your destination expects

  • If using formulas in your destination (Google Sheets, Excel), test with non-NULL values first

Not pulling recent data

Your data flow might be querying a stale view or cached results.

Solutions:

  • Confirm new data is actually being written to your Redshift table (check the last_modified or insertion timestamps)

  • If using a materialized view, verify it's been refreshed recently

  • Run a manual refresh of your data flow to trigger an immediate pull

  • Check Coupler.io's data flow logs for any query errors or unexpected row counts

  • If data is inserted into Redshift after your scheduled refresh time, adjust your schedule or add a slight delay

Permission errors

"Permission denied" when querying a table

Your Redshift user account lacks read access to the table or schema.

Solutions:

  • Verify your Redshift user has SELECT privileges on the table: GRANT SELECT ON table_name TO user_name;

  • Confirm the schema is accessible: GRANT USAGE ON SCHEMA schema_name TO user_name;

  • If the table is in a different schema, include the schema name in your query: SELECT * FROM schema_name.table_name

  • Contact your Redshift administrator to grant the necessary permissions

Data discrepancies

Data in preview doesn't match exported data

The preview in Coupler.io might show a subset of rows (often the first 100), while your full export contains all rows.

Solutions:

  • This is expected behavior. The preview is a sample; the export includes all rows matching your query

  • To verify, check the row count in your destination and compare it to the Redshift table row count

  • If row counts differ significantly, review your Custom SQL query for unintended filters or joins

Numeric precision lost or decimals truncated

Data types in your destination (Google Sheets, Excel) may not support the full precision of Redshift's numeric columns.

Solutions:

  • Use CAST() or :: in your Custom SQL to convert high-precision numbers to text if needed: SELECT amount::VARCHAR FROM orders

  • Check your destination's column format settings (e.g., decimal places in Excel)

  • For very large or precise numbers, export as text to preserve full precision

Rate limits

Data flow times out or runs slowly

Redshift queries can time out if they're complex, access very large tables, or run during peak cluster usage.

Solutions:

  • Add a LIMIT clause to your Custom SQL to test with a smaller dataset first

  • Add filters or WHERE clauses to reduce the number of rows returned

  • Check your Redshift cluster's CPU and memory usage; consider scaling up if usage is high

  • Run the data flow during off-peak hours

  • If your query involves large joins or aggregations, test it directly in Redshift first to measure execution time

  • For tables with millions of rows, consider using Redshift's SORTKEY and DISTKEY settings to optimize query performance

Redshift FAQ

Can I connect to a Redshift cluster in a private VPC?

Redshift clusters in private VPCs are not directly accessible from the internet. However, there are a few options:

  • Enable a public endpoint for your cluster (then use the standard connection method)

  • Use an SSH tunnel or bastion host to bridge the connection (contact Coupler.io support for assistance)

  • Use a VPN to make the cluster accessible

Talk to your Coupler.io support team about which option works best for your setup.

Can I use a Custom SQL query with JOIN or UNION?

Yes, absolutely. Custom SQL in Coupler.io supports the full range of Redshift's SQL syntax, including JOINs, UNIONs, CTEs (WITH clauses), window functions, and aggregations. Just paste your query and click Test to verify it works.

How do I export only recent data (last 30 days, this month, etc.)?

Use date functions in your Custom SQL query. Here are some common patterns:

These queries use Redshift's current date, so they dynamically adjust each time the data flow runs.

Can I combine Redshift data with data from other sources?

Yes. After creating a Redshift data flow, you can add a second source (Salesforce, Stripe, Google Ads, etc.) to the same data flow. Then use Coupler.io's Append transformation to merge rows from both sources, or Join to combine data by a common key. Learn more in the Coupler.io transformations documentation.

What happens if my Redshift query returns NULL values?

NULL values will be exported as-is to your destination (blank cells in Google Sheets or Excel, NULLs in BigQuery, etc.). If you want to replace NULLs with a default value, use the COALESCE() function in your Custom SQL:

Alternatively, if you're working in Google Sheets or Excel, you can clean up NULLs after import using formulas.

How many rows can I export?

Coupler.io has a limit of 10 million cells per data flow (not rows). The exact row limit depends on your column count. For example:

  • 100 columns × 100,000 rows = 10 million cells ✓

  • 10 columns × 1 million rows = 10 million cells ✓

  • 5 columns × 2.1 million rows = 10.5 million cells ✗

If you hit this limit, filter your query or split the data across multiple data flows.

Can I schedule my data flow to run every hour, or only daily?

Scheduling options depend on your Coupler.io plan. You can typically schedule data flows to run at intervals ranging from hourly to weekly. Check your plan's features or contact support to confirm what's available.

How do I know if my data flow ran successfully?

After you schedule a data flow, Coupler.io displays the run history in your dashboard. Each run shows:

  • Start and end times

  • Status (Success, Failed, Timeout)

  • Row count (if successful)

Click on a run to see detailed logs, including any errors or warnings. You can also enable email notifications for failed runs.

Can I use Redshift data as input for an AI model like Claude or ChatGPT?

Yes. Coupler.io supports AI destinations including Claude, ChatGPT, Cursor, Gemini, Perplexity, and OpenClaw. Export your Redshift data to one of these platforms for analysis, summarization, or other AI-powered tasks. Your data flow will send the query results directly to the AI model.

For more details on available transformations, visit the Best Practices section. For detailed data structure information, see Data Overview. If you encounter errors, check Common Issues for troubleshooting steps.

Last updated

Was this helpful?