Skip to content

Commit

Permalink
Merge pull request #45 from lukas-mi/vertica-support
Browse files Browse the repository at this point in the history
Add support for Vertica
  • Loading branch information
dewey authored Jan 28, 2022
2 parents 9ec2918 + 360eb9d commit c958997
Show file tree
Hide file tree
Showing 82 changed files with 6,865 additions and 1,015 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Currently supported:
- MS-SQL
- MySQL
- Snowflake
- Vertica


What does it look like?
Expand Down
25 changes: 25 additions & 0 deletions config.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,28 @@ jobs:
- "count"
query: |
select count(1) as "count" from our_data_warehouse limit 1;
- name: "vertica"
interval: '1m'
connections:
- 'vertica://user:password@host:port/database?queryArgs'
queries:
- name: "delete_vector_count"
help: 'Count of delete vectors'
labels:
- node_name
- schema_name
- projection_name
values:
- delete_vector_count
query: |
SELECT
node_name,
schema_name,
projection_name,
COUNT(*) AS delete_vector_count
FROM
delete_vectors
GROUP BY
node_name,
schema_name,
projection_name;
5 changes: 3 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ require (
github.com/ClickHouse/clickhouse-go v1.5.2
github.com/cenkalti/backoff v2.2.1+incompatible
github.com/denisenkom/go-mssqldb v0.0.0-20191128021309-1d7a30a10f73
github.com/go-kit/kit v0.12.0
github.com/go-kit/log v0.2.0
github.com/go-sql-driver/mysql v1.5.0
github.com/jmoiron/sqlx v1.3.4
github.com/lib/pq v1.10.4
github.com/prometheus/client_golang v1.12.0
github.com/prometheus/common v0.32.1
github.com/segmentio/go-athena v0.0.0-20181208004937-dfa5f1818930
github.com/snowflakedb/gosnowflake v1.6.6
github.com/vertica/vertica-sql-go v1.2.1
gopkg.in/yaml.v2 v2.4.0
)

Expand All @@ -38,7 +39,7 @@ require (
github.com/cloudflare/golz4 v0.0.0-20150217214814-ef862a3cdc58 // indirect
github.com/form3tech-oss/jwt-go v3.2.5+incompatible // indirect
github.com/gabriel-vasile/mimetype v1.4.0 // indirect
github.com/go-kit/log v0.2.0 // indirect
github.com/go-kit/kit v0.12.0 // indirect
github.com/go-logfmt/logfmt v0.5.1 // indirect
github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe // indirect
github.com/golang/protobuf v1.5.2 // indirect
Expand Down
336 changes: 2 additions & 334 deletions go.sum

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions job.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
_ "github.com/lib/pq" // register the PostgreSQL driver
"github.com/prometheus/client_golang/prometheus"
_ "github.com/segmentio/go-athena" // register the AWS Athena driver
_ "github.com/vertica/vertica-sql-go" // register the Vertica driver
)

var (
Expand Down
22 changes: 0 additions & 22 deletions vendor/github.com/go-kit/kit/LICENSE

This file was deleted.

160 changes: 0 additions & 160 deletions vendor/github.com/go-kit/kit/log/README.md

This file was deleted.

118 changes: 0 additions & 118 deletions vendor/github.com/go-kit/kit/log/doc.go

This file was deleted.

15 changes: 0 additions & 15 deletions vendor/github.com/go-kit/kit/log/json_logger.go

This file was deleted.

Loading

0 comments on commit c958997

Please sign in to comment.