Skip to content

Commit

Permalink
Add mapping for varchar to string for hive (#252)
Browse files Browse the repository at this point in the history
* Add mapping for varchar to string for hive

* Add char type as well
  • Loading branch information
amalakar authored and Gabriel Silk committed Mar 17, 2019
1 parent d19cb0c commit 14faef9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyhive/sqlalchemy_hive.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ def __init__(self, dialect):
'float': types.Float,
'double': types.Float,
'string': types.String,
'varchar': types.String,
'char': types.String,
'date': HiveDate,
'timestamp': HiveTimestamp,
'binary': types.String,
Expand Down

0 comments on commit 14faef9

Please sign in to comment.