Overview
The OneSignal + Trino integration enables syncing of custom events from your Trino cluster to OneSignal to trigger automated messaging campaigns and Journeys based on user behavior. Trino is a distributed SQL query engine designed for running fast analytics queries against large datasets from multiple sources.Requirements
- Access to Custom Events (currently in beta)
- Updated Account Plan (not available on free apps).
Trino
- Trino cluster with network access
- User credentials with appropriate permissions
- TLS connection support (required by OneSignal)
- Event data accessible through Trino catalogs
Setup
1
Configure Trino connection
In OneSignal, go to Data > Integrations and click Add Integration.Select Trino and provide the following connection details:
- Host: Your Trino cluster hostname
- Username: Your Trino username
- Password: Your Trino password
- Port: 443 (default) or your custom port
OneSignal requires a TLS connection to Trino. If your instance doesn’t run on port 443, specify your custom port.
2
Configure Advanced Sync Engine (Optional)
For enhanced performance, set up a dedicated CENSUS catalog:
- Create a catalog named
CENSUS
containing a schema namedCENSUS
- Ensure your connector supports:
CREATE TABLE
andDROP TABLE
operations- Table writes (INSERT, DELETE, UPDATE)
CREATE OR REPLACE TABLE
statement
- Grant full permissions on the
CENSUS.CENSUS
schema to your OneSignal user
Tested configurations include MySQL, PostgreSQL, Snowflake, Iceberg, and Delta Lake connectors.
Event data mapping
Map your to OneSignal’s custom events format:OneSignal Field | Description | Required | |
---|---|---|---|
name | event_name | Event identifier | Yes |
external_id | user_id | User identifier | Yes |
timestamp | event_timestamp | When event occurred | No |
properties | event_data | No |
Example Event Query
Cross-Catalog Event Queries
Sync Engine Options
Basic Sync Engine
- Works with any Trino catalog and connector
- State tracking managed by OneSignal infrastructure
- Simpler setup with no additional requirements
Advanced Sync Engine
- Enhanced performance with local state tracking
- Requires dedicated
CENSUS.CENSUS
catalog and schema - Supports connectors with table write operations
- Recommended for high-volume event processing
Supported Connectors
OneSignal’s Advanced Sync Engine has been tested with:- MySQL connector (read-write mode)
- PostgreSQL connector (read-write mode)
- Snowflake connector (read-write mode)
- Iceberg connector (with S3 and AWS Glue)
- Delta Lake connector (with AWS Glue and Starburst Galaxy catalogs)
Limitations
- TLS connection required (OneSignal security requirement)
- Advanced Sync Engine requires
CREATE OR REPLACE TABLE
support (Trino October 2023+) - Warehouse Writeback not yet supported (coming soon)
- Cannot provide custom table options in
WITH
clause
FAQ
Which Trino connectors work with OneSignal?
Any connector that supports read operations works with Basic Sync Engine. For Advanced Sync Engine, you need connectors that support table writes andCREATE OR REPLACE TABLE
.
Can I query multiple catalogs in a single sync?
Yes! Trino’s federated query capabilities allow you to combine event data from multiple sources (PostgreSQL, MySQL, S3, etc.) in a single query.Do I need the Advanced Sync Engine?
No, Basic Sync Engine works well for most use cases. Use Advanced Sync Engine if you need enhanced performance and can set up the requiredCENSUS.CENSUS
catalog.