SOURCE_HTTP

All functions > SOURCE > SOURCE_HTTP

Creates a HTTP connection to the given URI

Signatures

Returns: HTTP source connection for online API calls

SOURCE_HTTP(uri: VARCHAR, [method: VARCHAR], [path: VARCHAR], [headers: ROW], [query_params: ROW], [body: ROW], [timeout: DECIMAL]) → HTTPSOURCE
sql
ParameterTypeRequiredDescription
uriVARCHARYesBase URI for HTTP requests (e.g., ' https://api.example.com ')
methodVARCHARNoOptional HTTP method (GET, POST, etc.)
pathVARCHARNoOptional URL path to append to base URI
headersROWNoOptional ROW of HTTP headers
query_paramsROWNoOptional ROW of query string parameters
bodyROWNoOptional ROW for request body (JSON)
timeoutDECIMALNoOptional request timeout

Notes

  • Creates HTTP connection for real-time API feature enrichment
  • Supports RESTful API calls with full control over HTTP parameters
  • Connection config reused across requests
  • Online-only restriction (for real-time serving)
  • Used with EXTERNAL_HTTP to make actual API calls
  • Supports GET, POST, PUT, DELETE, PATCH methods
  • Returns JSON responses parsed as feature values
Last update at: 2026/03/03 16:47:38
Last updated: 2026-03-03 16:48:19