Skip to content

Commit

Permalink
v0.4.14 improve override schema
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Mar 13, 2024
1 parent d36c653 commit 83ad451
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dataflows/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.13
0.4.14
2 changes: 1 addition & 1 deletion dataflows/processors/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def safe_process_datapackage(self, dp: Package):
'Found duplicate headers.' +
'Use the `deduplicate_headers` flag (found headers=%r)' % stream.headers)
stream.headers = self.rename_duplicate_headers(stream.headers)
schema = Schema(self.override_schema).infer(
schema = Schema(self.override_schema or {}).infer(
stream.sample, headers=stream.headers,
confidence=1, guesser_cls=self.guesser)
# restore schema field names to original headers
Expand Down

0 comments on commit 83ad451

Please sign in to comment.