quote hive column names (#5368)

This commit is contained in:
timifasubaa 2018-07-13 15:51:16 -07:00 committed by GitHub
parent 19ac6e1231
commit 22b7c2db62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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')