diff --git a/airbyte/cli.py b/airbyte/cli.py index af826cb6..c985b4f0 100644 --- a/airbyte/cli.py +++ b/airbyte/cli.py @@ -243,6 +243,14 @@ def _resolve_source_job( ) +def _get_noop_destination_config() -> dict[str, Any]: + return { + "test_destination": { + "test_destination_type": "SILENT", + } + } + + def _resolve_destination_job( *, destination: str, @@ -259,7 +267,19 @@ def _resolve_destination_job( config: The path to a configuration file for the named source or destination. pip_url: Optional. A location from which to install the connector. """ - config_dict = _resolve_config(config) if config else None + config_dict = _resolve_config(config) if config else {} + destination_name = _get_connector_name(destination) + + if destination_name == "destination-dev-null" and not config: + config_dict = _get_noop_destination_config() + + if _is_docker_image(destination): + return get_destination( + name=destination_name, + docker_image=destination, + config=config_dict, + pip_url=pip_url, + ) if destination and (destination.startswith(".") or "/" in destination): # Treat the destination as a path. diff --git a/airbyte/destinations/util.py b/airbyte/destinations/util.py index a27e7596..ac526973 100644 --- a/airbyte/destinations/util.py +++ b/airbyte/destinations/util.py @@ -88,11 +88,7 @@ def get_noop_destination( "destination-dev-null", config={ "test_destination": { - "test_destination_type": "LOGGING", - "logging_config": { - "logging_type": "FirstN", - "max_entry_count": 100, - }, + "test_destination_type": "SILENT", } }, docker_image=True,