SOURCE_JDBC
All functions > SOURCE > SOURCE_JDBC
Creates a JDBC connection to the given DSN
Signatures
Returns: JDBC source connection for online queries
SOURCE_JDBC(dsn: VARCHAR, [timeout: DECIMAL], tables: ARRAY<VARCHAR>) → JDBCSOURCE sql
| Parameter | Type | Required | Description |
|---|---|---|---|
dsn | VARCHAR | Yes | Data Source Name or JDBC connection string |
timeout | DECIMAL | No | Optional connection timeout |
tables | ARRAY<VARCHAR> | Yes | Array of table names to expose |
Notes
- Creates JDBC connection to online database (MySQL, Postgres, etc.)
- Used for real-time feature serving
- Connection pooled and reused across requests
- Tables parameter limits accessible tables for security
- Online-only restriction (for low-latency serving)
- Used with EXTERNAL_VIEW for real-time lookups
On this page