Hello guys,
I’m trying to follow the Advanced Analytics for Web accelerator, but got stuck:
$ dbt run --selector snowplow_web
11:36:43 Running with dbt=1.7.8
11:36:47 Registered adapter: bigquery=1.7.6
11:36:49 Found 20 models, 107 tests, 3 seeds, 2 operations, 8 sources, 0 exposures, 0 metrics, 747 macros, 0 groups, 0 semantic models
11:36:49
11:36:57
11:36:57 Running 1 on-run-start hook
11:36:57 1 of 1 START hook: snowplow_web.on-run-start.0 ................................. [RUN]
11:36:57 1 of 1 OK hook: snowplow_web.on-run-start.0 .................................... [OK in 0.00s]
11:36:57
11:36:57 Concurrency: 4 threads (target='dev')
11:36:57
11:36:57 1 of 18 START sql incremental model atomic_snowplow_manifest.snowplow_web_base_quarantined_sessions [RUN]
11:36:57 2 of 18 START sql incremental model atomic_snowplow_manifest.snowplow_web_incremental_manifest [RUN]
11:37:00 2 of 18 OK created sql incremental model atomic_snowplow_manifest.snowplow_web_incremental_manifest [CREATE TABLE (0.0 rows, 0 processed) in 3.17s]
11:37:00 1 of 18 OK created sql incremental model atomic_snowplow_manifest.snowplow_web_base_quarantined_sessions [CREATE TABLE (0.0 rows, 0 processed) in 3.17s]
11:37:00 3 of 18 START sql table model atomic_scratch.snowplow_web_base_new_event_limits [RUN]
11:37:03 12:37:03 + Snowplow: No data in manifest. Processing data from start_date
11:37:07 12:37:07 + Snowplow: Processing data between '2022-08-19 00:00:00' and '2022-09-18 00:00:00' (snowplow_web)
11:37:07 3 of 18 OK created sql table model atomic_scratch.snowplow_web_base_new_event_limits [CREATE TABLE (1.0 rows, 0 processed) in 6.99s]
11:37:07 4 of 18 START sql incremental model atomic_snowplow_manifest.snowplow_web_base_sessions_lifecycle_manifest [RUN]
11:37:14 4 of 18 OK created sql incremental model atomic_snowplow_manifest.snowplow_web_base_sessions_lifecycle_manifest [CREATE TABLE (1.3k rows, 1.6 MiB processed) in 7.15s]
11:37:14 5 of 18 START sql table model atomic_scratch.snowplow_web_base_sessions_this_run [RUN]
11:37:22 5 of 18 OK created sql table model atomic_scratch.snowplow_web_base_sessions_this_run [CREATE TABLE (1.3k rows, 115.0 KiB processed) in 7.68s]
11:37:22 6 of 18 START sql table model atomic_scratch.snowplow_web_base_events_this_run . [RUN]
11:37:28 6 of 18 OK created sql table model atomic_scratch.snowplow_web_base_events_this_run [CREATE TABLE (15.9k rows, 23.0 MiB processed) in 6.22s]
11:37:28 7 of 18 START sql table model atomic_scratch.snowplow_web_pv_engaged_time ...... [RUN]
11:37:28 8 of 18 START sql table model atomic_scratch.snowplow_web_pv_scroll_depth ...... [RUN]
11:37:28 9 of 18 START sql table model atomic_scratch.snowplow_web_sessions_this_run .... [RUN]
11:37:28 10 of 18 START sql incremental model atomic_derived.snowplow_web_user_mapping .. [RUN]
11:37:29 9 of 18 ERROR creating sql table model atomic_scratch.snowplow_web_sessions_this_run [ERROR in 0.84s]
11:37:32 7 of 18 OK created sql table model atomic_scratch.snowplow_web_pv_engaged_time . [CREATE TABLE (1.1k rows, 1.6 MiB processed) in 3.35s]
11:37:32 8 of 18 OK created sql table model atomic_scratch.snowplow_web_pv_scroll_depth . [CREATE TABLE (2.0k rows, 1.9 MiB processed) in 3.45s]
11:37:32 11 of 18 START sql table model atomic_scratch.snowplow_web_page_views_this_run . [RUN]
11:37:32 10 of 18 OK created sql incremental model atomic_derived.snowplow_web_user_mapping [CREATE TABLE (0.0 rows, 712.9 KiB processed) in 3.94s]
11:37:32 12 of 18 SKIP relation atomic_derived.snowplow_web_sessions .................... [SKIP]
11:37:32 11 of 18 ERROR creating sql table model atomic_scratch.snowplow_web_page_views_this_run [ERROR in 0.50s]
11:37:32 13 of 18 SKIP relation atomic_scratch.snowplow_web_users_sessions_this_run ..... [SKIP]
11:37:32 14 of 18 SKIP relation atomic_derived.snowplow_web_page_views .................. [SKIP]
11:37:32 15 of 18 SKIP relation atomic_scratch.snowplow_web_users_aggs .................. [SKIP]
11:37:32 16 of 18 SKIP relation atomic_scratch.snowplow_web_users_lasts ................. [SKIP]
11:37:32 17 of 18 SKIP relation atomic_scratch.snowplow_web_users_this_run .............. [SKIP]
11:37:32 18 of 18 SKIP relation atomic_derived.snowplow_web_users ....................... [SKIP]
11:37:32
11:37:32 Running 1 on-run-end hook
11:37:32 1 of 1 START hook: snowplow_web.on-run-end.0 ................................... [RUN]
11:37:36 1 of 1 OK hook: snowplow_web.on-run-end.0 ...................................... [MERGE (3.0 rows, 124.0 KiB processed) in 3.29s]
11:37:36
11:37:36
11:37:36 Finished running 7 incremental models, 11 table models, 2 hooks in 0 hours 0 minutes and 47.03 seconds (47.03s).
11:37:36
11:37:36 Completed with 2 errors and 0 warnings:
11:37:36
11:37:36 Compilation Error in model snowplow_web_sessions_this_run (models/sessions/scratch/bigquery/snowplow_web_sessions_this_run.sql)
Snowplow: No columns found with prefix contexts_com_iab_snowplow_spiders_and_robots_1
> in macro get_columns_in_relation_by_column_prefix (macros/utils/get_columns_in_relation_by_column_prefix.sql)
> called by macro combine_column_versions (macros/utils/bigquery/combine_column_versions/combine_column_versions.sql)
> called by macro get_optional_fields (macros/utils/bigquery/get_optional_fields.sql)
> called by model snowplow_web_sessions_this_run (models/sessions/scratch/bigquery/snowplow_web_sessions_this_run.sql)
11:37:36
11:37:36 Compilation Error in model snowplow_web_page_views_this_run (models/page_views/scratch/bigquery/snowplow_web_page_views_this_run.sql)
Snowplow: No columns found with prefix contexts_com_iab_snowplow_spiders_and_robots_1
> in macro get_columns_in_relation_by_column_prefix (macros/utils/get_columns_in_relation_by_column_prefix.sql)
> called by macro combine_column_versions (macros/utils/bigquery/combine_column_versions/combine_column_versions.sql)
> called by macro get_optional_fields (macros/utils/bigquery/get_optional_fields.sql)
> called by model snowplow_web_page_views_this_run (models/page_views/scratch/bigquery/snowplow_web_page_views_this_run.sql)
11:37:36
11:37:36 Done. PASS=9 WARN=0 ERROR=2 SKIP=7 TOTAL=18
Could you please take a look and advise?
Just in case, I’m using version 1.0.0 of snowplow/snowplow-web
, as per the accelerator’s docs. While running dbt deps
I noticed a mention of a newer snowplow/snowplow_utils
version:
$ dbt deps
11:29:17 Running with dbt=1.7.8
11:29:19 Updating lock file in file path: /Users/xak/dev/my/yuji/snowplow-advanced-analytics-for-web/dbt_sp/package-lock.yml
11:29:19 Installing snowplow/snowplow_web
11:29:19 Installed from version 1.0.0
11:29:19 Up to date!
11:29:19 Installing snowplow/snowplow_utils
11:29:20 Installed from version 0.15.2
11:29:20 Updated version available: 0.16.2
11:29:20 Installing dbt-labs/dbt_utils
11:29:21 Installed from version 1.1.1
11:29:21 Up to date!
11:29:21
11:29:21 Updates available for packages: ['snowplow/snowplow_utils']
Update your versions in packages.yml, then run dbt deps
Thank you.