浏览代码

Force TextFile file_format in table import

Antonio Bellezza 10 年之前
父节点
当前提交
93030c4
共有 1 个文件被更改,包括 2 次插入1 次删除
  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': [],