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

bug(events): api events with event_type user aren't parsed correctly in clickhouse #4987

Closed
lsampras opened this issue Jun 13, 2024 · 0 comments · Fixed by #5022
Closed

bug(events): api events with event_type user aren't parsed correctly in clickhouse #4987

lsampras opened this issue Jun 13, 2024 · 0 comments · Fixed by #5022
Assignees
Labels

Comments

@lsampras
Copy link
Member

The api events with events type user aren't parsed correctly in the user table,
this happens due to there being duplicate keys in the json representation which is treated as invalid json by clickhouse

{
    "key_a": "abc",
    "key_b": "def",
    "key_b": "ghi"
}

This is treated as invalid json and the entire event is dropped by clickhouse,

in this case we have

pub enum ApiEventsType {
.........
    User {
        merchant_id: String, // This merchant_id field ends up being duplicate and causes invalid json
        user_id: String,
    },
......
}

for now we can remove the merchant_id from this enum variant to solve this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants