Skip to content

Commit

Permalink
test(connector): fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hekike committed Aug 27, 2024
1 parent 4243cff commit 7fc83f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openmeter/streaming/clickhouse_connector/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestCreateEventsTable(t *testing.T) {
data: createEventsTable{
Database: "openmeter",
},
want: "CREATE TABLE IF NOT EXISTS openmeter.om_events (namespace String, validation_error String, id String, type LowCardinality(String), subject String, source String, time DateTime, data String, ingested_at DateTime, created_at DateTime) ENGINE = MergeTree PARTITION BY toYYYYMM(time) ORDER BY (namespace, time, type, subject)",
want: "CREATE TABLE IF NOT EXISTS openmeter.om_events (namespace String, validation_error String, id String, type LowCardinality(String), subject String, source String, time DateTime, data String, ingested_at DateTime, stored_at DateTime) ENGINE = MergeTree PARTITION BY toYYYYMM(time) ORDER BY (namespace, time, type, subject)",
},
}

Expand All @@ -43,7 +43,7 @@ func TestQueryEventsTable(t *testing.T) {
Namespace: "my_namespace",
Limit: 100,
},
wantSQL: "SELECT id, type, subject, source, time, data, validation_error, ingested_at, created_at FROM openmeter.om_events WHERE namespace = ? ORDER BY time DESC LIMIT 100",
wantSQL: "SELECT id, type, subject, source, time, data, validation_error, ingested_at, stored_at FROM openmeter.om_events WHERE namespace = ? ORDER BY time DESC LIMIT 100",
wantArgs: []interface{}{"my_namespace"},
},
}
Expand Down

0 comments on commit 7fc83f1

Please sign in to comment.