Skip to content

Commit

Permalink
Add support for "CHAR" type (#153)
Browse files Browse the repository at this point in the history
Last missing type, it also gets reduced to a string by Thrift
  • Loading branch information
evelynm-alt authored Jul 26, 2021
1 parent 9520594 commit 5056eeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hive.go
Original file line number Diff line number Diff line change
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" || columnType == "VARCHAR_TYPE" {
} else if columnType == "STRING_TYPE" || columnType == "VARCHAR_TYPE" || columnType == "CHAR_TYPE" {
if isNull(c.queue[i].StringVal.Nulls, c.columnIndex) {
m[columnName] = nil
} else {
Expand Down

0 comments on commit 5056eeb

Please sign in to comment.