Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
k-anshul committed Dec 18, 2024
1 parent e7b67ed commit 528efc4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/metricsview/executor_validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func TestValidateMetricsViewClickHouseNames(t *testing.T) {
rt, instanceID := testruntime.NewInstanceWithOptions(t, testruntime.InstanceOptions{
TestConnectors: []string{"clickhouse"},
Files: map[string]string{
"rill.yaml": "",
"rill.yaml": "olap_connector: clickhouse",
"model.sql": `
-- @connector: clickhouse
select parseDateTimeBestEffort('2024-01-01T00:00:00Z') as time, 'DK' as country, 1 as val union all
Expand Down
2 changes: 2 additions & 0 deletions runtime/resolvers/testdata/metrics_comparisons.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ project_files:
select parseDateTimeBestEffort('2024-01-03T00:00:00Z') as time, 'US' as country, 3 as val union all
select parseDateTimeBestEffort('2024-01-04T00:00:00Z') as time, 'US' as country, 4 as val union all
select parseDateTimeBestEffort('2024-01-05T00:00:00Z') as time, 'DK' as country, 5 as val
output:
connector: clickhouse
clickhouse_metrics.yaml:
type: metrics_view
model: clickhouse_data
Expand Down
2 changes: 2 additions & 0 deletions runtime/resolvers/testdata/metrics_sql_clickhouse.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
connectors:
- clickhouse
project_files:
rill.yaml:
olap_connector: clickhouse
ad_bids_mini.yaml:
type: model
connector: clickhouse
Expand Down

0 comments on commit 528efc4

Please sign in to comment.