Skip to content

Commit

Permalink
add VARCHAR_TYPE (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
linlexing authored Jul 15, 2021
1 parent ef83633 commit 9520594
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hive.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ type Cursor struct {
description [][]string

// Caller is responsible for managing this channel
Logs chan<- []string
Logs chan<- []string
}

// WaitForCompletion waits for an async operation to finish
Expand Down Expand Up @@ -676,7 +676,7 @@ func (c *Cursor) RowMap(ctx context.Context) map[string]interface{} {
} else {
m[columnName] = c.queue[i].DoubleVal.Values[c.columnIndex]
}
} else if columnType == "STRING_TYPE" {
} else if columnType == "STRING_TYPE" || columnType == "VARCHAR_TYPE" {
if isNull(c.queue[i].StringVal.Nulls, c.columnIndex) {
m[columnName] = nil
} else {
Expand Down

0 comments on commit 9520594

Please sign in to comment.