From a warehouse table
Segment, PostHog and Amplitude can each copy every event into a table in Databricks, Amazon Redshift or Snowflake:- Segment: add the Databricks destination, with the workspace host starting
https://, the Redshift destination, which needs a provisioned cluster, not Redshift Serverless, or the Snowflake destination. It writes one table per event name, plusidentifiesfor user traits, on Segment’s sync schedule (once a day on the free plan). - PostHog: create a Databricks batch export, with the workspace host without
https://, a Redshift batch export or a Snowflake batch export. It writes one events table. DataFramer reads PostHog’s Snowflake table by event time, as it reads its Redshift table. If every row of the table hassnowflake_ingested_timestamp, you can name it as the load-time column instead: PostHog fills it only on rows it exports after the column exists, and never on the rows before. - Amplitude: add the Databricks destination, the Redshift destination or the Snowflake destination. It writes one events table.
- Databricks: with a service principal. Give the principal
USE CATALOG,USE SCHEMAandSELECTon the tables, and Can use on a SQL warehouse. - Amazon Redshift: with a database user that has
USAGEon the schema andSELECTon the tables. The tool creates its tables itself, Segment one per new event name, so grantSELECTon future tables too, withALTER DEFAULT PRIVILEGESfor the tool’s user. As for the tools’ own Redshift exports, the endpoint must be publicly accessible, and its security group must allow DataFramer’s address35.83.1.227on the port. In a customer-hosted deployment your data plane connects instead: allow your data plane’s network, and the endpoint need not be public. - Snowflake: with a
SERVICEuser that signs in with a key pair. Its role needsUSAGEon a warehouse, the database and the schema, andSELECTon the tables, including future ones. Imports run every few minutes, and each one that finds the warehouse suspended starts it, so give DataFramer its own X-Small warehouse withAUTO_SUSPEND = 60to keep the cost low. If your account or the user has a network policy, it must allow DataFramer’s address35.83.1.227, or, in a customer-hosted deployment, your data plane’s outbound address.
dataframer_key.p8 into DataFramer as the private key, and keep it out of version control:
BEGIN and END lines as RSA_PUBLIC_KEY, and your own database and schema names:
orgname-account_name, as Account details in Snowsight shows it, without https:// or .snowflakecomputing.com. Instead of the private key, you can paste a programmatic access token for the user.
Then, in DataFramer, open Sources, select Add a warehouse table, and follow its steps. Four things to know:
- Choose Other table for an events table of your own; you then name its columns.
- One login has one secret: a new secret saved on one import is also saved on every import that uses the same login.
- For Segment, list the event tables, not
tracks, which has no properties. - An empty Only these events imports every event, which for PostHog includes its automatic events such as
$pageviewand$autocapture.
From Segment’s webhook
Segment can also send DataFramer a copy of each event as it arrives. This needs no warehouse, but only events from then on arrive. Add one webhook for each Segment source:- In Sources, select Add Segment webhook, give it a name, such as the name of the Segment source, and copy its address and shared secret. The name shows as the source of its events, such as “Segment webhook · web app”.
- In Segment, add a Webhooks (Actions) destination to your source. In its Settings, paste the secret into Shared Secret and turn on Enable Destination.
- In its Mappings, add a Send mapping for the event types you want, with the address as URL and POST as Method. Keep the default Data, the whole event. Batching can be on.
Next steps
Fields and Linking
Choose how imported events link to your AI traces.

