Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion airbyte/_executors/declarative.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def __init__(
self,
name: str,
manifest: dict | Path,
config: dict[str, Any] | None = None,
components_py: str | Path | None = None,
components_py_checksum: str | None = None,
) -> None:
Expand All @@ -66,7 +67,7 @@ def __init__(
elif isinstance(manifest, dict):
self._manifest_dict = manifest

config_dict: dict[str, Any] = {}
config_dict: dict[str, Any] = config.copy() if config is not None else {}
if components_py:
if isinstance(components_py, Path):
components_py = components_py.read_text()
Expand Down
5 changes: 4 additions & 1 deletion airbyte/_executors/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import sys
import tempfile
from pathlib import Path
from typing import TYPE_CHECKING, Literal, cast
from typing import TYPE_CHECKING, Any, Literal, cast

import requests
import yaml
Expand Down Expand Up @@ -169,6 +169,7 @@ def get_connector_executor( # noqa: PLR0912, PLR0913, PLR0914, PLR0915, C901 #
install_root: Path | None = None,
use_python: bool | Path | str | None = None,
no_executor: bool = False,
config: dict[str, Any] | None = None,
) -> Executor:
"""This factory function creates an executor for a connector.

Expand Down Expand Up @@ -334,6 +335,7 @@ def get_connector_executor( # noqa: PLR0912, PLR0913, PLR0914, PLR0915, C901 #
return DeclarativeExecutor(
name=name,
manifest=source_manifest,
config=config,
components_py=components_py_path,
)

Expand All @@ -349,6 +351,7 @@ def get_connector_executor( # noqa: PLR0912, PLR0913, PLR0914, PLR0915, C901 #
return DeclarativeExecutor(
name=name,
manifest=manifest_dict,
config=config,
components_py=components_py,
components_py_checksum=components_py_checksum,
)
Expand Down
1 change: 1 addition & 0 deletions airbyte/sources/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def get_source( # noqa: PLR0913 # Too many arguments
install_if_missing=install_if_missing,
install_root=install_root,
no_executor=no_executor,
config=config,
)

return Source(
Expand Down