소스 검색

Force TextFile file_format in table import

Antonio Bellezza 10 년 전
부모
커밋
93030c4ca0
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': [],