File: disable-athena

package info (click to toggle)
prometheus-sql-exporter 0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 800 kB
  • sloc: makefile: 39; sh: 31
file content (26 lines) | stat: -rw-r--r-- 905 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- a/job.go
+++ b/job.go
@@ -23,7 +23,6 @@
 	_ "github.com/microsoft/go-mssqldb"                     // register the MS-SQL driver
 	_ "github.com/microsoft/go-mssqldb/integratedauth/krb5" // Register integrated auth for MS-SQL
 	"github.com/prometheus/client_golang/prometheus"
-	_ "github.com/segmentio/go-athena" // register the AWS Athena driver
 	"github.com/snowflakedb/gosnowflake"
 	_ "github.com/vertica/vertica-sql-go" // register the Vertica driver
 	sqladmin "google.golang.org/api/sqladmin/v1beta4"
@@ -384,6 +383,7 @@
 				database: database,
 				user:     user,
 			}
+			/*
 			if newConn.driver == "athena" {
 				// call go-athena's Open() to ensure conn.db is set,
 				// otherwise API calls will complain about an empty database field:
@@ -394,6 +394,7 @@
 					continue
 				}
 			}
+			*/
 			if newConn.driver == "snowflake" {
 				u, err := url.Parse(conn)
 				if err != nil {