Key Search with Confluent Cloud for Apache Flink

Confluent Cloud for Apache Flink® supports read-only external tables to enable key search with federated query execution on external data source, like JDBC, REST, and MongoDB.

Note

Key Search is an Open Preview feature in Confluent Cloud.

A Preview feature is a Confluent Cloud component that is being introduced to gain early feedback from developers. Preview features can be used for evaluation and non-production testing purposes or to provide feedback to Confluent. The warranty, SLA, and Support Services provisions of your agreement with Confluent do not apply to Preview features. Confluent may discontinue providing preview releases of the Preview features at any time in Confluent’s’ sole discretion.

Use the KEY_SEARCH_AGG function to run key searches over external databases in Confluent Cloud for Apache Flink.

SELECT * FROM key_input,
  LATERAL TABLE(KEY_SEARCH_AGG(<external_table>, DESCRIPTOR(<input_column>), <search_column>))

Supported providers

These key search providers are supported:

  • Confluent-jdbc: Postgres, MySQL, SQL Server, Oracle
  • REST
  • MongoDB
  • Couchbase

Examples

Search table parameters

Common parameters

{CONNECTOR}

Provider name.

{CONNECTOR}.PARAMS.*

Parameters supported by external providers.

Confluent-jdbc properties

Confluent-jdbc.connection

Confluent JDBC connection that includes the endpoint, username, and password.

This property is required.

Confluent-jdbc.table-name

The name of JDBC table to connect.

This property is required.

Rest properties

Rest.connection

REST connection that includes the endpoint and credentials required to connect to the endpoint.

The REST endpoint must use the https protocol, can’t be an ip address, and can’t end with confluent.cloud as the domain name.

This property is required.

Rest.path

REST path segments under the base endpoint in the connection for issuing HTTP requests toward the endpoint.

This property is required.

Rest.method

HTTP verb that will be used to invoke the RESTful endpoint

This property is required.

Mongodb properties

Mongodb.connection

MongoDB connection that includes the endpoint, username, and passwords.

This property is required.

Mongodb.database

MongoDB database name.

This property is required.

Mongodb.collection

MongoDB collection name.

This property is required.

Mongodb.index

MongoDB search index name.

This property is required.