From 7e9423284808b9f8e6607a6e1eb4c7ffb6136207 Mon Sep 17 00:00:00 2001 From: Marcin Rudolf Date: Wed, 8 Jan 2025 16:21:52 +0100 Subject: [PATCH] sets destination_name to callable name for custom destination --- dlt/destinations/impl/destination/factory.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlt/destinations/impl/destination/factory.py b/dlt/destinations/impl/destination/factory.py index 649b2c4b04..ff33aa046b 100644 --- a/dlt/destinations/impl/destination/factory.py +++ b/dlt/destinations/impl/destination/factory.py @@ -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)