From bf1797fe7cf769eb6e89f75b132a35a6cd9003df Mon Sep 17 00:00:00 2001 From: Sandeep Kumar <83278309+tsdk02@users.noreply.github.com> Date: Tue, 10 Sep 2024 13:57:17 +0530 Subject: [PATCH] feat(analytics): add card_network as a field in payment_attempts clickhouse table (#5807) Co-authored-by: Sampras Lopes --- .../analytics/docs/clickhouse/scripts/payment_attempts.sql | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/analytics/docs/clickhouse/scripts/payment_attempts.sql b/crates/analytics/docs/clickhouse/scripts/payment_attempts.sql index 5c1ee8754c..f5d0ca51fd 100644 --- a/crates/analytics/docs/clickhouse/scripts/payment_attempts.sql +++ b/crates/analytics/docs/clickhouse/scripts/payment_attempts.sql @@ -42,6 +42,7 @@ CREATE TABLE payment_attempt_queue ( `client_version` LowCardinality(Nullable(String)), `organization_id` String, `profile_id` String, + `card_network` Nullable(String), `sign_flag` Int8 ) ENGINE = Kafka SETTINGS kafka_broker_list = 'kafka0:29092', kafka_topic_list = 'hyperswitch-payment-attempt-events', @@ -94,6 +95,7 @@ CREATE TABLE payment_attempts ( `client_version` LowCardinality(Nullable(String)), `organization_id` String, `profile_id` String, + `card_network` Nullable(String), `sign_flag` Int8, INDEX connectorIndex connector TYPE bloom_filter GRANULARITY 1, INDEX paymentMethodIndex payment_method TYPE bloom_filter GRANULARITY 1, @@ -149,6 +151,7 @@ CREATE MATERIALIZED VIEW payment_attempt_mv TO payment_attempts ( `client_version` LowCardinality(Nullable(String)), `organization_id` String, `profile_id` String, + `card_network` Nullable(String), `sign_flag` Int8 ) AS SELECT @@ -196,8 +199,9 @@ SELECT client_version, organization_id, profile_id, + card_network, sign_flag FROM payment_attempt_queue WHERE - length(_error) = 0; \ No newline at end of file + length(_error) = 0;