Skip to content

Commit

Permalink
align resource and pure data source schema with regular schema
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Mar 4, 2024
1 parent 5bd5b21 commit 6c27211
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dlt/extract/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ def choose_schema() -> Schema:
"""Except of explicitly passed schema, use a clone that will get discarded if extraction fails"""
if schema:
schema_ = schema
# if we have a default schema name, use it but do not collect any info from the existing schema
elif pipeline.default_schema_name:
schema_ = pipeline.schemas[pipeline.default_schema_name].clone()
schema_ = Schema(pipeline.default_schema_name)
else:
schema_ = pipeline._make_schema_with_default_name()
return schema_
Expand Down

0 comments on commit 6c27211

Please sign in to comment.