From 14faef9b24292006232b9f3716653acc4a285c47 Mon Sep 17 00:00:00 2001 From: Arup Malakar Date: Sat, 16 Mar 2019 18:11:29 -0700 Subject: [PATCH] Add mapping for varchar to string for hive (#252) * Add mapping for varchar to string for hive * Add char type as well --- pyhive/sqlalchemy_hive.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyhive/sqlalchemy_hive.py b/pyhive/sqlalchemy_hive.py index 49edb07c..0e3e0eeb 100644 --- a/pyhive/sqlalchemy_hive.py +++ b/pyhive/sqlalchemy_hive.py @@ -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,