Skip to content

Commit

Permalink
chore(read_csv): remove deprecated argument (apache#25226)
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida authored Sep 8, 2023
1 parent 3362428 commit 710e111
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@
{{ lib.render_field(form.parse_dates, begin_sep_label, end_sep_label,
begin_sep_field, end_sep_field) }}
</tr>
<tr>
{{ lib.render_field(form.infer_datetime_format, begin_sep_label,
end_sep_label, begin_sep_field, end_sep_field) }}
</tr>
<tr>
{{ lib.render_field(form.day_first, begin_sep_label, end_sep_label,
begin_sep_field, end_sep_field) }}
Expand Down
4 changes: 0 additions & 4 deletions superset/views/database/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,6 @@ class CsvToDatabaseForm(UploadToDatabaseForm):
),
filters=[filter_not_empty_values],
)
infer_datetime_format = BooleanField(
_("Interpret Datetime Format Automatically"),
description=_("Interpret the datetime format automatically"),
)
day_first = BooleanField(
_("Day First"),
description=_("DD/MM format dates, international and European format"),
Expand Down
2 changes: 0 additions & 2 deletions superset/views/database/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ def form_get(self, form: CsvToDatabaseForm) -> None:
form.overwrite_duplicate.data = True
form.skip_initial_space.data = False
form.skip_blank_lines.data = True
form.infer_datetime_format.data = True
form.day_first.data = False
form.decimal.data = "."
form.if_exists.data = "fail"
Expand Down Expand Up @@ -199,7 +198,6 @@ def form_post(self, form: CsvToDatabaseForm) -> Response:
filepath_or_buffer=form.csv_file.data,
header=form.header.data if form.header.data else 0,
index_col=form.index_col.data,
infer_datetime_format=form.infer_datetime_format.data,
dayfirst=form.day_first.data,
iterator=True,
keep_default_na=not form.null_values.data,
Expand Down

0 comments on commit 710e111

Please sign in to comment.