Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
quote hive column names (apache#5368)
Browse files Browse the repository at this point in the history
  • Loading branch information
timifasubaa committed Jul 25, 2018
1 parent 711b61d commit 87e08ae
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 87e08ae

Please sign in to comment.