Ver código fonte

Merge pull request #302 from antbell/fix_csv_import

[metastore] Force TextFile file_format in table import
Romain Rigaux 9 anos atrás
pai
commit
d1a05fc
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      apps/beeswax/src/beeswax/create_table.py

+ 2 - 1
apps/beeswax/src/beeswax/create_table.py

@@ -235,7 +235,8 @@ def import_wizard(request, database='default'):
                 'name': table_name,
                 'comment': s1_file_form.cleaned_data['comment'],
                 'row_format': 'Delimited',
-                'field_terminator': delim
+                'field_terminator': delim,
+                'file_format': 'TextFile'
              },
             'columns': [ f.cleaned_data for f in s3_col_formset.forms ],
             'partition_columns': [],