Giter Site home page Giter Site logo

Comments (3)

wub avatar wub commented on July 23, 2024 1

Hey @drewbanin, thanks for taking the time to look into this.

Every single line is in one table - it seems to make use of BigQuery's nested & repeating column types.

No info yet available on the timeline for BigQuery support for the original web data model (hence me coming to this repo) - so I'll override the relevant models and macros until it works (as you suggest in README).

First step will be changing root_id to contexts_com_snowplowanalytics_snowplow_web_page_1_0_0!

Feel free to close this one; we can probably revisit once Snowplow themselves release BQ for the original model.

from snowplow.

drewbanin avatar drewbanin commented on July 23, 2024

Hey @wub - we find that the names of these columns are (confusingly!) different depending on how Snowplow is hosted. I checked out the schema you sent over above - is contexts_com_snowplowanalytics_snowplow_web_page_1_0_0 a table itself or is it a column in the event table?

At a high level, I think there are two distinct things happening here:

Unrecognized name: root_id

  • dbt is looking for a column called root_id, but it might be called something else in your setup. This columns should be the foreign key to the event_id in the event table. I'm no so familiar with the expected Snowplow schema on BigQuery. In something like Redshift, the web_page context will render out as a separate table with two columns: root_id and id. It looks to me like this is not the case in your setup!

No matching signature for function TIMESTAMP for argument types: TIMESTAMP

  • I think this error is coming from these lines of code - BQ doesn't let you call timestamp() on a timestamp field. I think the Snowplow datasets we've worked with have been provided collector_tstamp as a datetime, and this code is intended to turn it into a timestamp.

In general, this package is based on Snowplow's original web data model. It sounds like some models for BQ are coming soon, and it would be super interesting to see how they end up recommending that these models work!

from snowplow.

drewbanin avatar drewbanin commented on July 23, 2024

Cool, thanks for the update @wub!

from snowplow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.