• Developer guide
  • API reference

›Analytics

Getting started

  • Introduction to Imply Polaris
  • Quickstart
  • Execute a POC
  • Create a dashboard
  • Navigate the console
  • Key concepts

Tables and data

  • Overview
  • Introduction to tables
  • Table schema
  • Create an ingestion job
  • Timestamp expressions
  • Data partitioning
  • Introduction to rollup
  • Approximation algorithms
  • Replace data

Ingestion sources

  • Ingestion sources overview
  • Supported data formats
  • Create a connection
  • Ingest from files
  • Ingest data from a table
  • Ingest from S3
  • Ingest from Kafka and MSK
  • Ingest from Kinesis
  • Ingest from Confluent Cloud
  • Kafka Connector for Imply Polaris
  • Push event data
  • Connect to Confluent Schema Registry

Analytics

  • Overview
  • Manage data cubes
  • Visualize data
  • Data cube dimensions
  • Data cube measures
  • Dashboards
  • Visualizations reference
  • Set up alerts
  • Set up reports
  • Embed visualizations
  • Query data

Monitoring

  • Overview

Management

  • Overview
  • Pause and resume a project

Billing

  • Overview
  • Polaris plans
  • Estimate project costs

Usage

  • Overview

Security

    Polaris access

    • Overview
    • Invite users to your organization
    • Manage users
    • Permissions reference
    • Manage user groups
    • Enable SSO
    • SSO settings reference
    • Map IdP groups

    Secure networking

    • Connect to AWS
    • Create AWS PrivateLink connection

Developer guide

  • Overview
  • Authentication

    • Overview
    • Authenticate with API keys
    • Authenticate with OAuth
  • Manage users and groups
  • Migrate deprecated resources
  • Create a table
  • Define a schema
  • Upload files
  • Create an ingestion job
  • Ingestion sources

    • Ingest from files
    • Ingest from a table
    • Get ARN for AWS access
    • Ingest from Amazon S3
    • Ingest from Kafka and MSK
    • Ingest from Amazon Kinesis
    • Ingest from Confluent Cloud
    • Push event data
    • Kafka Connector for Imply Polaris
    • Kafka Connector reference
  • Filter data to ingest
  • Ingest nested data
  • Ingest and query sketches
  • Specify data schema
  • Query data
  • Update a project
  • Link to BI tools
  • Connect over JDBC
  • Query parameters reference
  • API documentation

    • OpenAPI reference
    • Query API

Product info

  • Release notes
  • Known limitations
  • Druid extensions

Query data

After you have created a table and ingested data, you can start running SQL queries against the data in Imply Polaris. The SQL workbench provides a user interface for building and running queries.

This topic explains how to query data in Polaris. For information on how to query data programmatically, see Query data by API.

Prerequisites

A user must have the AdministerQueries permission assigned to their profile to run SQL queries. For more information on permissions, see Permissions reference.

Access the SQL workbench

To access the SQL workbench:

  1. Click SQL in the left navigation menu.

  2. Click a table name in the left pane and select one of the shortcut queries.

  3. Modify the query as required.

  4. Click Run.

  5. Polaris displays the results in the bottom panel. Click the left and right arrows to page through the results.

    SQL workbench

You can also access the SQL workbench from the table details page—click Explore table in the top-right corner and select SQL console from the list of options.

SQL workbench actions

You can perform the following actions in the SQL workbench:

  • Run queries in multiple tabs.
  • Download query results as CSV, TSV, or newline-delimited JSON.
  • View your query history.
  • Save common table expressions as "helper" queries.
  • Select a timezone type.
  • Manage the following query settings—changing these defaults may have performance implications:
    • Query cache: Caching improves query performance.
    • Approximate TopN and COUNT(DISTINCT) estimates: Approximation improves query performance.
    • Limit inline results: By default, the maximum number of results returned to the browser from a SELECT query is 1,000.

Interact with a results set

You can refine your query by interacting with the query results panel. Click any value in the results panel to view and select filter options.

For example, the following screenshot shows the results of this query:

SELECT continent, country, session_length
FROM koalas

with filter options for value 20,745 in the session_length column.

SQL workbench

Selecting the filter session_length >= 20745 displays the results and adds the filter to the query:

SQL workbench

Learn more

To learn more, see the following topics:

  • Introduction to tables
  • Table schema
  • Create an ingestion job
  • Query data by API
← Embed visualizationsOverview →
  • Prerequisites
  • Access the SQL workbench
  • SQL workbench actions
    • Interact with a results set
  • Learn more
Key links
Try ImplyApache Druid siteImply GitHub
Get help
Stack OverflowSupportContact us
Learn more
BlogApache Druid docs
Copyright © 2023 Imply Data, Inc