From ccd5fd44cf33227dca4ac2280f5633719323b56e Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Tue, 19 Sep 2017 11:19:49 -0700 Subject: [PATCH] Removing dependency on pythrifthiveapi (#3494) Since the latest pyhive, we don't need pythrifthiveapi as they ship with the latest version. There's actually a conflict between the new pyhive and pythrifthiveapi and this fixes it. --- dev-reqs.txt | 1 - superset/db_engine_specs.py | 2 +- superset/db_engines/hive.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dev-reqs.txt b/dev-reqs.txt index c53fdefa1ea47..0705bd2da4a32 100644 --- a/dev-reqs.txt +++ b/dev-reqs.txt @@ -7,7 +7,6 @@ mysqlclient nose psycopg2 pylint -pythrifthiveapi pyyaml redis statsd diff --git a/superset/db_engine_specs.py b/superset/db_engine_specs.py index d44ba55b0ba01..71c6ab20d9b6f 100644 --- a/superset/db_engine_specs.py +++ b/superset/db_engine_specs.py @@ -668,7 +668,7 @@ class HiveEngineSpec(PrestoEngineSpec): def patch(cls): from pyhive import hive from superset.db_engines import hive as patched_hive - from pythrifthiveapi.TCLIService import ( + from TCLIService import ( constants as patched_constants, ttypes as patched_ttypes, TCLIService as patched_TCLIService) diff --git a/superset/db_engines/hive.py b/superset/db_engines/hive.py index a31b4d7f323d8..f14608410823a 100644 --- a/superset/db_engines/hive.py +++ b/superset/db_engines/hive.py @@ -1,5 +1,5 @@ from pyhive import hive -from pythrifthiveapi.TCLIService import ttypes +from TCLIService import ttypes from thrift import Thrift