Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: Upgrade schema to use new Ralph 4.0 event column #41

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

bmtcril
Copy link
Contributor

@bmtcril bmtcril commented Jan 17, 2024

Ralph 3.x had both a JSON "event" column and an
"event_str" text representation of the same data. 4.x drops the JSON column since it is unsupported and going to be removed from ClickHouse, and renames the text column to "event".

Ralph 4.0.0 is in beta right now, this is just for preparing to upgrade and test the changes.

Copy link
Contributor

@Ian2012 Ian2012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Altough, this is a draft PR I will approve the changes for Ralph v4

Ralph 3.x had both a JSON "event" column and an
"event_str" text representation of the same data. 4.x
drops the JSON column since it is unsupported and going
to be removed from ClickHouse, and renames the text
column to "event".
@Ian2012
Copy link
Contributor

Ian2012 commented Jan 25, 2024

@bmtcril is this ready for review?

@bmtcril bmtcril marked this pull request as ready for review January 29, 2024 15:19
@@ -9,34 +9,34 @@

SELECT
event_id as event_id,
JSON_VALUE(event_str, '$.verb.id') as verb_id,
JSON_VALUE(event::String, '$.verb.id') as verb_id,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This cast is necessary for dbt to run these models against an empty table for some reason.

@bmtcril
Copy link
Contributor Author

bmtcril commented Jan 29, 2024

@Ian2012 this should be ready for review now. @SoryRawyer you might want to take a look too. This goes with this work:

@bmtcril bmtcril merged commit 04939b5 into main Jan 29, 2024
2 checks passed
@bmtcril bmtcril deleted the bmtcril/ralph_4 branch January 29, 2024 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants