Skip to content

Commit

Permalink
sets destination_name to callable name for custom destination
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolfix committed Jan 8, 2025
1 parent aa95c30 commit 7e94232
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dlt/destinations/impl/destination/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def __init__(
destination_callable = dummy_custom_destination
elif not callable(destination_callable):
raise ConfigurationValueError("Resolved Sink destination callable is not a callable.")
if not destination_name:
destination_name = destination_callable.__name__

# build destination spec
destination_sections = (known_sections.DESTINATION, destination_name)
Expand Down

0 comments on commit 7e94232

Please sign in to comment.