Skip to content

Commit

Permalink
feat: Support uint32 and uint64 as time field type
Browse files Browse the repository at this point in the history
  • Loading branch information
kl7sn committed Apr 12, 2022
1 parent 54865e6 commit 6bb3349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/internal/service/inquiry/clickhouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ func (c *ClickHouse) Columns(database, table string, isTimeField bool) (res []*v
res = make([]*view.RespColumn, 0)
var query string
if isTimeField {
query = fmt.Sprintf("select name, type from system.columns where database = '%s' and table = '%s' and type in (%s)", database, table, strings.Join([]string{"'DateTime64(3)'", "'DateTime'", "'Int32'", "'Int64'"}, ","))
query = fmt.Sprintf("select name, type from system.columns where database = '%s' and table = '%s' and type in (%s)", database, table, strings.Join([]string{"'DateTime64(3)'", "'DateTime'", "'Int32'", "'UInt32'", "'Int64'", "'UInt64'"}, ","))
} else {
query = fmt.Sprintf("select name, type from system.columns where database = '%s' and table = '%s'", database, table)
}
Expand Down

0 comments on commit 6bb3349

Please sign in to comment.