Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions docs/getting-started/example-datasets/nyc-taxi.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ ClickHouse Cloud using the `s3` table function.
The same data is stored in both S3 and GCS; choose either tab.

<Tabs groupId="storageVendor">
<TabItem value="gcs" label="GCS" default>
<TabItem value="s3" label="S3">

The following command streams three files from a GCS bucket into the `trips` table (the `{0..2}` syntax is a wildcard for the values 0, 1, and 2):
The following command streams three files from an S3 bucket into the `trips_small` table (the `{0..2}` syntax is a wildcard for the values 0, 1, and 2):

```sql
INSERT INTO nyc_taxi.trips_small
Expand All @@ -88,16 +88,15 @@ SELECT
payment_type,
pickup_ntaname,
dropoff_ntaname
FROM gcs(
'https://storage.googleapis.com/clickhouse-public-datasets/nyc-taxi/trips_{0..2}.gz',
FROM s3(
'https://datasets-documentation.s3.eu-west-3.amazonaws.com/nyc-taxi/trips_{0..2}.gz',
'TabSeparatedWithNames'
);
```

</TabItem>
<TabItem value="s3" label="S3">
<TabItem value="gcs" label="GCS" default>

The following command streams three files from an S3 bucket into the `trips_small` table (the `{0..2}` syntax is a wildcard for the values 0, 1, and 2):
The following command streams three files from a GCS bucket into the `trips` table (the `{0..2}` syntax is a wildcard for the values 0, 1, and 2):

```sql
INSERT INTO nyc_taxi.trips_small
Expand All @@ -119,12 +118,11 @@ SELECT
payment_type,
pickup_ntaname,
dropoff_ntaname
FROM s3(
'https://datasets-documentation.s3.eu-west-3.amazonaws.com/nyc-taxi/trips_{0..2}.gz',
FROM gcs(
'https://storage.googleapis.com/clickhouse-public-datasets/nyc-taxi/trips_{0..2}.gz',
'TabSeparatedWithNames'
);
```

</TabItem>
</Tabs>

Expand Down