Skip to content

Commit

Permalink
quote hive column names (#5368)
Browse files Browse the repository at this point in the history
  • Loading branch information
timifasubaa authored Jul 13, 2018
1 parent 19ac6e1 commit 22b7c2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset/db_engine_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,8 @@ def convert_to_hive_type(col_type):
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')
Expand Down

0 comments on commit 22b7c2d

Please sign in to comment.