From 2d34760f087961db5689908349996813468783ed Mon Sep 17 00:00:00 2001 From: Leo Schick Date: Mon, 14 Nov 2022 16:21:33 +0100 Subject: [PATCH] add support for data type BINARY skip the length parameter which is used in GenericTypeCompiler --- pyhive/sqlalchemy_hive.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyhive/sqlalchemy_hive.py b/pyhive/sqlalchemy_hive.py index 2ef49652..c7f000a3 100644 --- a/pyhive/sqlalchemy_hive.py +++ b/pyhive/sqlalchemy_hive.py @@ -194,6 +194,12 @@ def visit_CLOB(self, type_): def visit_BLOB(self, type_): return 'BINARY' + def visit_BINARY(self, type_): + return 'BINARY' + + def visit_VARBINARY(self, type_): + return self.visit_BINARY(type_) + def visit_TIME(self, type_): return 'TIMESTAMP'