You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/integrate/cluvio/usage.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,17 +8,19 @@ dashboards.
8
8
9
9
## Prerequisites
10
10
11
-
*[CrateDB Cloud cluster up and running](https://crate.io/docs/cloud/en/latest/tutorials/cluster-deployment/index.html)
12
11
*[Cluvio account](https://www.cluvio.com/)
13
12
14
13
15
14
## Set up CrateDB
16
15
17
-
Deploying a CrateDB cloud cluster has never been easier, simply follow our tutorial [here](https://crate.io/docs/cloud/en/latest/tutorials/cluster-deployment/stripe.html#cluster-deployment-stripe) and you can have a cluster up and running within minutes. We offer a CRFREE plan which offers up to 2 vCPUs, 2 GiB of memory, and 8 GiB of storage completely for free. Ideal for small-scale testing and evaluation purposes.
16
+
Deploying a CrateDB cloud cluster has never been easier, set up a [CrateDB Cloud]
17
+
cluster within minutes. We offer a free plan with up to 2 vCPUs, 2 GiB of memory,
18
+
and 8 GiB of storage.
18
19
19
20
### Load data into CrateDB
20
21
21
-
In this usage guide, you use two tables—[flights](http://stat-computing.org/dataexpo/2009) and [airports](https://openflights.org/data.php)—from January 2008.
22
+
In this usage guide, you use two tables—[flights](http://stat-computing.org/dataexpo/2009)
23
+
and [airports](https://openflights.org/data.php)—from January 2008.
22
24
23
25
#### Create tables
24
26
@@ -72,7 +74,7 @@ CREATE TABLE flights (
72
74
);
73
75
```
74
76
75
-
This creates 2 empty tables in your database. `flights` and `airports`, with the correct data types of the columns.
77
+
This creates 2 empty tables in your database. `flights` and `airports`, with the correct data types of the columns.
76
78
77
79
#### Import data
78
80
@@ -135,7 +137,7 @@ SELECT
135
137
AVG(arr_delay) AS"Average Arrival Delay"
136
138
FROMdoc.flights
137
139
ORDER BY 1
138
-
```
140
+
```
139
141
This is a pretty simple query that counts the number of rows in the `flights` as the number of flights, and averages values in the `dep_delay` and `arr_delay` for the departure delays and arrival delays respectively.
140
142
141
143
{width=800px}
@@ -160,12 +162,12 @@ In this one, it's suitable to use pie chart to better see the distribution. We a
160
162
161
163
## Filters
162
164
163
-
[Filters](https://app.cluvio.com/settings/filters) offer a great way to quickly specify the condition under which you want to display your data.
165
+
[Filters](https://app.cluvio.com/settings/filters) offer a great way to quickly specify the condition under which you want to display your data.
164
166
165
167
In the `flights` table in `day_of_week` column 1 represents Monday, 2 means Tuesday, etc. Using that, we can create a filter to display data for a specific day of the week without changing the SQL in our reports.
0 commit comments