Using SQL to Search for Data in OpenSearch

For OpenSearch clusters, Open Distro for OpenSearch SQL lets you write queries in SQL rather than the OpenSearch query domain-specific language (DSL).

Users who are familiar with SQL can use SQL to search for data in OpenSearch clusters.

SQL Usage Example

Supported SQL Operations

Open Distro for Elasticsearch supports the following SQL operations: statements, conditions, aggregations, include and exclude fields, common functions, joins, and show.

Joins

Open Distro for OpenSearch SQL supports inner joins, left outer joins and cross joins. Joins have the following constraints:

JDBC Driver

The Java Database Connectivity (JDBC) driver allows you to integrate Open Distro for OpenSearch with your business intelligence (BI) applications.

For details about how to download and use JAR files, see GitHub Repositories.