From 22b7c2db623b52656109f4f1532b1b9e81d1cb76 Mon Sep 17 00:00:00 2001 From: timifasubaa <30888507+timifasubaa@users.noreply.github.com> Date: Fri, 13 Jul 2018 15:51:16 -0700 Subject: [PATCH] quote hive column names (#5368) --- superset/db_engine_specs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/superset/db_engine_specs.py b/superset/db_engine_specs.py index 0f10d82a9d..e2f4f70ec8 100644 --- a/superset/db_engine_specs.py +++ b/superset/db_engine_specs.py @@ -1050,7 +1050,8 @@ class HiveEngineSpec(PrestoEngineSpec): for column_info in hive_table_schema['fields']: column_name_and_type.append( '{} {}'.format( - column_info['name'], convert_to_hive_type(column_info['type']))) + "'" + column_info['name'] + "'", + convert_to_hive_type(column_info['type']))) schema_definition = ', '.join(column_name_and_type) s3 = boto3.client('s3')