Skip to content

Commit 7898385

Browse files
committed
remove unnecessary code
1 parent 38552dc commit 7898385

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

conn.go

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -62,30 +62,6 @@ func isCTASQuery(query string) bool {
6262
return getQueryType(query) == queryTypeCTAS
6363
}
6464

65-
// QueryType represents the type of SQL query
66-
type QueryType int
67-
68-
const (
69-
QueryTypeUnknown QueryType = iota
70-
QueryTypeDDL
71-
QueryTypeSelect
72-
QueryTypeCTAS
73-
)
74-
75-
// GetQueryType determines the type of the query
76-
func GetQueryType(query string) QueryType {
77-
switch {
78-
case ddlQueryPattern.MatchString(query):
79-
return QueryTypeDDL
80-
case ctasQueryPattern.MatchString(query):
81-
return QueryTypeCTAS
82-
case selectQueryPattern.MatchString(query):
83-
return QueryTypeSelect
84-
default:
85-
return QueryTypeUnknown
86-
}
87-
}
88-
8965
type conn struct {
9066
athena *athena.Client
9167
db string

0 commit comments

Comments
 (0)