forked from ToolJet/ToolJet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ToolJet#3281 from ToolJet/feature/athena
Feature :: Amazon Athena plugin
- Loading branch information
Showing
19 changed files
with
1,019 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
|
||
# Athena | ||
|
||
ToolJet can connect to Amazon Athena databases to read and write data. | ||
|
||
- [Connection](#connection) | ||
- [Querying-athena](#querying-amazon-athena) | ||
- [Basic Operation](#basic-queries) | ||
|
||
## Connection | ||
|
||
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](https://github.com/ghdna/athena-express)**. | ||
::: | ||
|
||
<div style={{textAlign: 'center'}}> | ||
|
||
![ToolJet - Amazon Athena - Connection](/img/datasource-reference/athena/athena-connection.png) | ||
|
||
</div> | ||
|
||
## 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. | ||
|
||
<div style={{textAlign: 'center'}}> | ||
|
||
![ToolJet - Querying- Amazon Athena](/img/datasource-reference/athena/athena-query.png) | ||
|
||
</div> | ||
|
||
- Click on the `run` button to run the query. | ||
|
||
**NOTE:** Query should be saved before running. | ||
|
||
:::tip | ||
Refer amazon athena docs here for more info: [link](https://docs.aws.amazon.com/athena/latest/ug/what-is.html) | ||
::: | ||
|
||
### Basic queries | ||
|
||
:::tip | ||
**Refer amazon athena docs here for more info:** [link](https://docs.aws.amazon.com/athena/latest/ug/what-is.html) | ||
::: | ||
|
||
#### Creating table | ||
|
||
|
||
```sql | ||
CREATE EXTERNAL TABLE student ( | ||
name STRING, | ||
age INT | ||
) LOCATION 's3://athena-express-akiatfa53s-2022/'; | ||
``` | ||
|
||
#### Inserting to table | ||
|
||
```sql | ||
INSERT INTO student | ||
VALUES ('Lansing',1) | ||
``` | ||
|
||
#### Select operation | ||
|
||
```sql | ||
SELECT * from student WHERE AGE=1 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.