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

chore(analytics): SDK table schema changes #6579

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ShivanshMathurJuspay
Copy link
Contributor

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

Updating SDK table schema

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

crates/analytics/docs/clickhouse/scripts/sdk_events.sql

Motivation and Context

This resolves the issue people face for SDK Events table API on dashboard is using the sdk_events_audit table

How did you test it?

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

@ShivanshMathurJuspay ShivanshMathurJuspay requested a review from a team as a code owner November 14, 2024 16:36
Copy link

Review changes with  SemanticDiff

@@ -156,7 +157,7 @@ WHERE
length(_error) > 0;

CREATE MATERIALIZED VIEW sdk_events_audit_mv TO sdk_events_audit (
`payment_id` Nullable(String),
`payment_id` String,
Copy link
Contributor

@tsdk02 tsdk02 Dec 3, 2024

Choose a reason for hiding this comment

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

The queue (sdk_events_queue) has payment_id as Nullable(String), is it fine to just have String in sdk_events_audit and sdk_events_audit_mv?

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

Successfully merging this pull request may close these issues.

chore(infra): SDK Table schema sanity
3 participants