Hello, trying <https://github.com/rudderlabs/rudde...
# support
r
Hello, trying https://github.com/rudderlabs/rudder-event-analytics on postgres warehouse. I have installed dbt, downloaded deps etc. I am getting this error, any solution? Thank you!
Copy code
06:06:54  Running with dbt=1.6.0
06:06:55  Registered adapter: postgres=1.6.0
06:06:55  Unable to do partial parsing because profile has changed
06:06:55  Unable to do partial parsing because a project config has changed
06:06:57  Found 5 models, 1 analysis, 4 sources, 0 exposures, 0 metrics, 597 macros, 0 groups, 0 semantic models
06:06:57
06:06:58  Concurrency: 4 threads (target='dev')
06:06:58
06:06:58  1 of 4 START sql table model pd_au_website.rs_stg_session_metrics .............. [RUN]
06:06:58  2 of 4 START sql table model pd_au_website.rs_stg_user_first_touch ............. [RUN]
06:06:58  1 of 4 ERROR creating sql table model pd_au_website.rs_stg_session_metrics ..... [ERROR in 0.34s]
06:06:58  2 of 4 ERROR creating sql table model pd_au_website.rs_stg_user_first_touch .... [ERROR in 0.35s]
06:06:58  3 of 4 SKIP relation pd_au_website.rs_metric_session_based ..................... [SKIP]
06:06:58  4 of 4 SKIP relation pd_au_website.rs_metric_dau_based ......................... [SKIP]
06:06:58
06:06:58  Finished running 4 table models in 0 hours 0 minutes and 0.60 seconds (0.60s).
06:06:58
06:06:58  Completed with 2 errors and 0 warnings:
06:06:58
06:06:58  Database Error in model rs_stg_session_metrics (models/intermediate/rs_stg_session_metrics.sql)
06:06:58    syntax error at or near "as"
06:06:58    LINE 502:  as event_date,
06:06:58               ^
06:06:58    compiled Code at target/run/dbt_rudderstack_metrics/models/intermediate/rs_stg_session_metrics.sql
06:06:58
06:06:58  Database Error in model rs_stg_user_first_touch (models/intermediate/rs_stg_user_first_touch.sql)
06:06:58    subquery in FROM must have an alias
06:06:58    LINE 494:     (
06:06:58                  ^
06:06:58    HINT:  For example, FROM (SELECT ...) [AS] foo.
06:06:58    compiled Code at target/run/dbt_rudderstack_metrics/models/intermediate/rs_stg_user_first_touch.sql
attaching target/run/dbt_rudderstack_metrics/models/intermediate/rs_stg_session_metrics.sql and target/run/dbt_rudderstack_metrics/models/intermediate/rs_stg_user_first_touch.sql
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
Let me check on this? Can you provide more details on how you are planning to use DBT?
r
m
Hi Keshav, the team mentioned that they pushed a fix, can you try now. If this does not work can you provide the following details - the `target/`⁣ directory as a zip along with the error log. - what warehouse they you using since the above was built for Redshift
r
hi @shy-kite-21035 I am using postgres as warehouse. It is still giving issues, I am sending the target.zip in dms
Copy code
05:03:10  Running with dbt=1.6.0
05:03:11  Registered adapter: postgres=1.6.0
05:03:11  Found 5 models, 1 analysis, 4 sources, 0 exposures, 0 metrics, 597 macros, 0 groups, 0 semantic models
05:03:11
05:03:11  Concurrency: 4 threads (target='dev')
05:03:11
05:03:11  1 of 4 START sql table model test.rs_stg_session_metrics ....................... [RUN]
05:03:11  2 of 4 START sql table model test.rs_stg_user_first_touch ...................... [RUN]
05:03:11  2 of 4 ERROR creating sql table model test.rs_stg_user_first_touch ............. [ERROR in 0.33s]
05:03:11  1 of 4 ERROR creating sql table model test.rs_stg_session_metrics .............. [ERROR in 0.34s]
05:03:11  3 of 4 SKIP relation test.rs_metric_dau_based .................................. [SKIP]
05:03:11  4 of 4 SKIP relation test.rs_metric_session_based .............................. [SKIP]
05:03:11
05:03:11  Finished running 4 table models in 0 hours 0 minutes and 0.65 seconds (0.65s).
05:03:11
05:03:11  Completed with 2 errors and 0 warnings:
05:03:11
05:03:11  Database Error in model rs_stg_user_first_touch (models/intermediate/rs_stg_user_first_touch.sql)
05:03:11    column "anonymous_id" does not exist
05:03:11    LINE 19:             anonymous_id,
05:03:11                         ^
05:03:11    compiled Code at target/run/dbt_rudderstack_metrics/models/intermediate/rs_stg_user_first_touch.sql
05:03:11
05:03:11  Database Error in model rs_stg_session_metrics (models/intermediate/rs_stg_session_metrics.sql)
05:03:11    syntax error at or near "as"
05:03:11    LINE 502:  as event_date,
05:03:11               ^
05:03:11    compiled Code at target/run/dbt_rudderstack_metrics/models/intermediate/rs_stg_session_metrics.sql
05:03:11
05:03:11  Done. PASS=0 WARN=0 ERROR=2 SKIP=2 TOTAL=4
m
Shared with the team
Hey Keshav DBT is supported only for Snowflake and Redshift warehouses.
r
got it
thank you