From e35688df4dfc30bc941513451426c6ec9116c3fa Mon Sep 17 00:00:00 2001 From: Jared Roberts <1132018+thejroberts@users.noreply.github.com> Date: Wed, 18 Dec 2024 15:04:23 -0600 Subject: [PATCH] Update README.md Fix copy/paste error where the contents of the datasource were wrong. --- create_a_materialized_view_batch_ingest/README.md | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/create_a_materialized_view_batch_ingest/README.md b/create_a_materialized_view_batch_ingest/README.md index ddde22e9..f22fbc7a 100644 --- a/create_a_materialized_view_batch_ingest/README.md +++ b/create_a_materialized_view_batch_ingest/README.md @@ -36,17 +36,12 @@ DATASOURCE events_per_location_mv `events_per_location_mv.datasource`: ```sql -NODE count_events_per_location -SQL > - - SELECT - JSON_VALUE(payload, '$.location') AS location, - countState() AS hits - FROM analytics_events - GROUP BY location +SCHEMA > + `location` String, + `hits` AggregateFunction(count) -TYPE materialized -DATASOURCE events_per_location_mv +ENGINE "AggregatingMergeTree" +ENGINE_SORTING_KEY "location" ``` ## 2: Create the Endpoint