Connector ETL Pipelines
Connector ETL pipelines combine hibase's connector system with Transfer Data steps to fetch data from external APIs and load it into your data warehouse.
Every API is different. The available endpoints, parameters, pagination mechanisms, and data formats vary from connector to connector. hibase adapts to what each API offers — the examples below are purely illustrative and show the mechanics of how hibase connects the pieces together.
How It Works
A connector ETL step uses:
- Data source type: Connector Query — fetches data from a connector endpoint
- Step type: Transfer Data — writes the fetched data to a target table
- Strategy: depends on your use case and database engine (see below)
- Flex columns: enabled — automatically adapts to new fields from the API
Basic Structure
A Transfer Data step connects to a connection (your authenticated API connection) and selects a connector endpoint (a specific API route). Each endpoint defines its own parameters:
Connection (your authenticated API connection)
└── Connector Endpoint (a specific API route)
└── Endpoint Parameters (vary per endpoint)
What parameters are available — and what they do — depends entirely on the connector and the API it wraps. Some endpoints accept filters, some accept date ranges, some accept cursors for pagination. hibase lets you fill in any of these dynamically using interpolation.
Dynamic Parameter Values
Use hibase interpolation ({{ }}) in endpoint parameter values to inject dynamic values from your workflow context. For example, if an endpoint accepts a since parameter:
| Parameter | Value | Description |
|---|---|---|
| since | {{ $last_imported }} |
Resolved at runtime from a parameter query |
The $last_imported value comes from a parameter query — a SQL query that runs against the target database before the step executes. For example:
-- Parameter query: find the latest timestamp we already have
SELECT MAX(imported_at) AS last_imported
FROM my_schema.my_table
hibase runs this query first, then injects the result ($last_imported) into the endpoint parameter. On the first run the target table is empty, so $last_imported is NULL — the connector simply fetches everything.
For more incremental loading patterns, see Incremental Data Loading.
Adding Custom Columns
Use response selectors to inject additional columns into each imported row:
| select_as | select_value | selector_type |
|---|---|---|
| imported_at | {{ $now }} |
custom_value |
This adds an imported_at column with the current timestamp to every row, which is useful for tracking when data arrived and building freshness assertions.
Combining with Assertions
After the Transfer Data step, add an Evaluate Expression step to verify the import. For example, checking that data was actually imported today:
SELECT
CASE WHEN MAX(DATE(imported_at)) = CURRENT_DATE()
THEN TRUE ELSE FALSE END AS has_todays_entries
FROM my_schema.my_table
Error Notifications
Always configure an error notification on Transfer Data steps:
| Setting | Value |
|---|---|
| Trigger | On Error |
| Notify via | |
| Title | Error: My ETL Pipeline |
| Body | {{ $log_html }} |
Tips
- Enable Flex Columns so new API fields are captured automatically
- Choose a write strategy based on your database and use case: Insert only for append-only loads, Upsert on unique identifier when rows may be updated, or Truncate table, then insert for full refreshes
- Always add an
imported_atresponse selector for tracking and debugging - Combine with incremental loading parameter queries to avoid re-importing data
- Each connector handles pagination differently — hibase manages this transparently based on what the connector supports