ToolJet/docs/versioned_docs/version-2.29.0/data-sources/athena.md
Karan Rathod 7d4cd6da47
[docs]:app builder 1.5 updates (#8672)
* add getter function and table transformation docs

* add dropdown, number-input, password-input and text-input docs

* [docs] custom parameters for queries

* update docs for revamped components, runJS and runPy functions and sidebar

* change order of properties and other misc changes

* update query panel and other minor fixes

* added version 2.29.0

---------

Co-authored-by: Shubhendra <withshubh@gmail.com>
2024-02-15 11:51:55 +05:30

1.6 KiB

Athena

ToolJet can connect to Amazon Athena which is an interactive query service that makes it easy to analyze data in Amazon S3 using standard SQL.

Connection

To establish a connection with the Amazon Athena data source, you can either click on the +Add new data source button located on the query panel or navigate to the Data Sources page from the ToolJet dashboard.

ToolJet requires the following to connect to your Athena.

  • Database
  • S3 output location
  • Access key
  • Secret key
  • Region

:::info You can also configure for additional optional parameters. :::

Athena connection

Querying Amazon Athena

  • Click on + button of the query manager at the bottom panel of the editor and select the database added in the previous step as the datasource. Query manager then can be used to write SQL queries.

  • Click on the run button to run the query.

:::tip Refer amazon athena docs here for more info: link :::

Basic queries

Creating table

CREATE EXTERNAL TABLE student (
    name STRING,
    age INT
)  LOCATION 's3://athena-express-akiatfa53s-2022/';

Inserting to table

INSERT INTO student
VALUES ('Lansing',1)

Select operation

SELECT * from student WHERE AGE=1