airbyte-cdk 0.39.3__tar.gz → 0.39.4__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/PKG-INFO +1 -1
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/connector_builder/message_grouper.py +17 -19
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/connector_builder/models.py +1 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk.egg-info/PKG-INFO +1 -1
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/setup.py +1 -1
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/connector_builder/test_connector_builder_handler.py +4 -1
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/connector_builder/test_message_grouper.py +100 -3
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/LICENSE.txt +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/README.md +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/config_observation.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/connector.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/connector_builder/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/connector_builder/connector_builder_handler.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/connector_builder/main.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/destinations/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/destinations/destination.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/entrypoint.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/exception_handler.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/logger.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/models/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/models/airbyte_protocol.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/models/well_known_types.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/py.typed +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/abstract_source.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/config.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/connector_state_manager.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/auth/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/auth/declarative_authenticator.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/auth/oauth.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/auth/token.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/checks/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/checks/check_stream.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/checks/connection_checker.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/create_partial.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/datetime/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/datetime/datetime_parser.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/datetime/min_max_datetime.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/declarative_component_schema.yaml +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/declarative_source.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/declarative_stream.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/decoders/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/decoders/decoder.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/decoders/json_decoder.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/exceptions.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/extractors/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/extractors/dpath_extractor.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/extractors/http_selector.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/extractors/record_extractor.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/extractors/record_filter.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/extractors/record_selector.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/incremental/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/incremental/datetime_based_cursor.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/interpolation/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/interpolation/filters.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/interpolation/interpolated_boolean.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/interpolation/interpolated_mapping.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/interpolation/interpolated_nested_mapping.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/interpolation/interpolated_string.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/interpolation/interpolation.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/interpolation/jinja.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/interpolation/macros.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/manifest_declarative_source.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/models/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/models/declarative_component_schema.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/parsers/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/parsers/class_types_registry.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/parsers/custom_exceptions.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/parsers/default_implementation_registry.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/parsers/manifest_component_transformer.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/parsers/manifest_reference_resolver.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/partition_routers/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/partition_routers/list_partition_router.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/partition_routers/single_partition_router.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/partition_routers/substream_partition_router.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/error_handlers/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/constant_backoff_strategy.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/exponential_backoff_strategy.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/header_helper.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/wait_time_from_header_backoff_strategy.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/wait_until_time_from_header_backoff_strategy.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategy.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/error_handlers/composite_error_handler.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/error_handlers/default_error_handler.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/error_handlers/error_handler.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/error_handlers/http_response_filter.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/error_handlers/response_action.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/error_handlers/response_status.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/http_requester.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/paginators/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/paginators/default_paginator.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/paginators/no_pagination.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/paginators/paginator.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/paginators/strategies/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/paginators/strategies/cursor_pagination_strategy.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/paginators/strategies/offset_increment.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/paginators/strategies/page_increment.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/paginators/strategies/pagination_strategy.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/request_option.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/request_options/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/request_options/interpolated_nested_request_input_provider.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/request_options/interpolated_request_input_provider.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/request_options/interpolated_request_options_provider.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/request_options/request_options_provider.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/request_path.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/requester.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/retrievers/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/retrievers/retriever.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/schema/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/schema/default_schema_loader.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/schema/inline_schema_loader.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/schema/json_file_schema_loader.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/schema/schema_loader.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/spec/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/spec/spec.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/stream_slicers/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/stream_slicers/cartesian_product_stream_slicer.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/stream_slicers/stream_slicer.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/transformations/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/transformations/add_fields.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/transformations/remove_fields.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/transformations/transformation.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/types.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/yaml_declarative_source.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/deprecated/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/deprecated/base_source.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/deprecated/client.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/singer/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/singer/singer_helpers.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/singer/source.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/source.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/streams/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/streams/availability_strategy.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/streams/core.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/streams/http/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/streams/http/auth/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/streams/http/auth/core.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/streams/http/auth/oauth.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/streams/http/auth/token.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/streams/http/availability_strategy.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/streams/http/exceptions.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/streams/http/http.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/streams/http/rate_limiting.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/streams/http/requests_native_auth/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/streams/http/requests_native_auth/abstract_oauth.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/streams/http/requests_native_auth/abstract_token.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/streams/http/requests_native_auth/oauth.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/streams/http/requests_native_auth/token.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/streams/utils/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/streams/utils/stream_helper.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/utils/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/utils/casing.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/utils/catalog_helpers.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/utils/record_helper.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/utils/schema_helpers.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/utils/schema_models.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/utils/transform.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/utils/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/utils/airbyte_secrets_utils.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/utils/event_timing.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/utils/schema_inferrer.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/utils/stream_status_utils.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/utils/traced_exception.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk.egg-info/SOURCES.txt +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk.egg-info/dependency_links.txt +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk.egg-info/requires.txt +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk.egg-info/top_level.txt +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/pyproject.toml +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/setup.cfg +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/source_declarative_manifest/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/source_declarative_manifest/main.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/connector_builder/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/connector_builder/utils.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/destinations/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/destinations/test_destination.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/singer/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/singer/test_singer_helpers.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/singer/test_singer_source.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/auth/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/auth/test_oauth.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/auth/test_session_token_auth.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/auth/test_token_auth.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/checks/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/checks/test_check_stream.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/decoders/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/decoders/test_json_decoder.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/external_component.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/extractors/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/extractors/test_dpath_extractor.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/extractors/test_record_filter.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/extractors/test_record_selector.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/incremental/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/incremental/test_datetime_based_cursor.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/interpolation/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/interpolation/test_filters.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/interpolation/test_interpolated_boolean.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/interpolation/test_interpolated_mapping.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/interpolation/test_interpolated_nested_mapping.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/interpolation/test_interpolated_string.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/interpolation/test_jinja.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/interpolation/test_macros.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/parsers/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/parsers/test_manifest_component_transformer.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/parsers/test_manifest_reference_resolver.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/parsers/test_model_to_component_factory.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/parsers/testing_components.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/partition_routers/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/partition_routers/test_list_partition_router.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/partition_routers/test_single_partition_router.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/partition_routers/test_substream_partition_router.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/requesters/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/requesters/error_handlers/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/requesters/error_handlers/backoff_strategies/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/requesters/error_handlers/backoff_strategies/test_constant_backoff.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/requesters/error_handlers/backoff_strategies/test_exponential_backoff.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/requesters/error_handlers/backoff_strategies/test_header_helper.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/requesters/error_handlers/backoff_strategies/test_wait_time_from_header.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/requesters/error_handlers/backoff_strategies/test_wait_until_time_from_header.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/requesters/error_handlers/test_composite_error_handler.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/requesters/error_handlers/test_default_error_handler.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/requesters/error_handlers/test_http_response_filter.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/requesters/error_handlers/test_response_status.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/requesters/paginators/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/requesters/paginators/test_cursor_pagination_strategy.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/requesters/paginators/test_default_paginator.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/requesters/paginators/test_no_paginator.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/requesters/paginators/test_offset_increment.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/requesters/paginators/test_page_increment.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/requesters/paginators/test_request_option.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/requesters/request_options/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/requesters/request_options/test_interpolated_request_options_provider.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/requesters/test_http_requester.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/requesters/test_interpolated_request_input_provider.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/retrievers/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/retrievers/test_simple_retriever.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/schema/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/schema/source_test/SourceTest.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/schema/source_test/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/schema/test_default_schema_loader.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/schema/test_inline_schema_loader.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/schema/test_json_file_schema_loader.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/states/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/stream_slicers/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/stream_slicers/test_cartesian_product_stream_slicer.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/test_create_partial.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/test_declarative_stream.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/test_manifest_declarative_source.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/declarative/test_yaml_declarative_source.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/streams/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/streams/http/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/streams/http/auth/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/streams/http/auth/test_auth.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/streams/http/requests_native_auth/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/streams/http/requests_native_auth/test_requests_native_auth.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/streams/http/test_availability_strategy.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/streams/http/test_http.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/streams/test_availability_strategy.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/streams/test_streams_core.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/test_abstract_source.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/test_config.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/test_connector_state_manager.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/sources/test_source.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/utils/__init__.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/utils/test_schema_inferrer.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/utils/test_secret_utils.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/utils/test_stream_status_utils.py +0 -0
- {airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/utils/test_traced_exception.py +0 -0
@@ -16,11 +16,13 @@ from airbyte_cdk.sources.declarative.declarative_source import DeclarativeSource
|
|
16
16
|
from airbyte_cdk.utils import AirbyteTracedException
|
17
17
|
from airbyte_cdk.utils.schema_inferrer import SchemaInferrer
|
18
18
|
from airbyte_protocol.models.airbyte_protocol import (
|
19
|
+
AirbyteControlMessage,
|
19
20
|
AirbyteLogMessage,
|
20
21
|
AirbyteMessage,
|
21
22
|
AirbyteTraceMessage,
|
22
23
|
ConfiguredAirbyteCatalog,
|
23
24
|
Level,
|
25
|
+
OrchestratorType,
|
24
26
|
TraceType,
|
25
27
|
)
|
26
28
|
from airbyte_protocol.models.airbyte_protocol import Type as MessageType
|
@@ -52,6 +54,7 @@ class MessageGrouper:
|
|
52
54
|
|
53
55
|
slices = []
|
54
56
|
log_messages = []
|
57
|
+
latest_config_update: AirbyteControlMessage = None
|
55
58
|
for message_group in self._get_message_groups(
|
56
59
|
self._read_stream(source, config, configured_catalog),
|
57
60
|
schema_inferrer,
|
@@ -63,7 +66,9 @@ class MessageGrouper:
|
|
63
66
|
if message_group.type == TraceType.ERROR:
|
64
67
|
error_message = f"{message_group.error.message} - {message_group.error.stack_trace}"
|
65
68
|
log_messages.append(LogMessage(**{"message": error_message, "level": "ERROR"}))
|
66
|
-
|
69
|
+
elif isinstance(message_group, AirbyteControlMessage):
|
70
|
+
if not latest_config_update or latest_config_update.emitted_at <= message_group.emitted_at:
|
71
|
+
latest_config_update = message_group
|
67
72
|
else:
|
68
73
|
slices.append(message_group)
|
69
74
|
|
@@ -74,11 +79,12 @@ class MessageGrouper:
|
|
74
79
|
inferred_schema=schema_inferrer.get_stream_schema(
|
75
80
|
configured_catalog.streams[0].stream.name
|
76
81
|
), # The connector builder currently only supports reading from a single stream at a time
|
82
|
+
latest_config_update=latest_config_update.connectorConfig.config if latest_config_update else self._clean_config(config),
|
77
83
|
)
|
78
84
|
|
79
85
|
def _get_message_groups(
|
80
86
|
self, messages: Iterator[AirbyteMessage], schema_inferrer: SchemaInferrer, limit: int
|
81
|
-
) -> Iterable[Union[StreamReadPages, AirbyteLogMessage, AirbyteTraceMessage]]:
|
87
|
+
) -> Iterable[Union[StreamReadPages, AirbyteControlMessage, AirbyteLogMessage, AirbyteTraceMessage]]:
|
82
88
|
"""
|
83
89
|
Message groups are partitioned according to when request log messages are received. Subsequent response log messages
|
84
90
|
and record messages belong to the prior request log message and when we encounter another request, append the latest
|
@@ -135,6 +141,8 @@ class MessageGrouper:
|
|
135
141
|
current_page_records.append(message.record.data)
|
136
142
|
records_count += 1
|
137
143
|
schema_inferrer.accumulate(message.record)
|
144
|
+
elif message.type == MessageType.CONTROL and message.control.type == OrchestratorType.CONNECTOR_CONFIG:
|
145
|
+
yield message.control
|
138
146
|
else:
|
139
147
|
self._close_page(current_page_request, current_page_response, current_slice_pages, current_page_records, validate_page_complete=not had_error)
|
140
148
|
yield StreamReadSlices(pages=current_slice_pages, slice_descriptor=current_slice_descriptor)
|
@@ -217,20 +225,10 @@ class MessageGrouper:
|
|
217
225
|
def _parse_slice_description(self, log_message):
|
218
226
|
return json.loads(log_message.replace(AbstractSource.SLICE_LOG_PREFIX, "", 1))
|
219
227
|
|
220
|
-
@
|
221
|
-
def
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
"name": stream_name,
|
228
|
-
"json_schema": {},
|
229
|
-
"supported_sync_modes": ["full_refresh", "incremental"],
|
230
|
-
},
|
231
|
-
"sync_mode": "full_refresh",
|
232
|
-
"destination_sync_mode": "overwrite",
|
233
|
-
}
|
234
|
-
]
|
235
|
-
}
|
236
|
-
)
|
228
|
+
@staticmethod
|
229
|
+
def _clean_config(config: Mapping[str, Any]):
|
230
|
+
cleaned_config = deepcopy(config)
|
231
|
+
for key in config.keys():
|
232
|
+
if key.startswith("__"):
|
233
|
+
del cleaned_config[key]
|
234
|
+
return cleaned_config
|
@@ -17,7 +17,7 @@ setup(
|
|
17
17
|
name="airbyte-cdk",
|
18
18
|
# The version of the airbyte-cdk package is used at runtime to validate manifests. That validation must be
|
19
19
|
# updated if our semver format changes such as using release candidate versions.
|
20
|
-
version="0.39.
|
20
|
+
version="0.39.4",
|
21
21
|
description="A framework for writing Airbyte Connectors.",
|
22
22
|
long_description=README,
|
23
23
|
long_description_content_type="text/markdown",
|
@@ -354,6 +354,7 @@ def test_read():
|
|
354
354
|
],
|
355
355
|
test_read_limit_reached=False,
|
356
356
|
inferred_schema=None,
|
357
|
+
latest_config_update={}
|
357
358
|
)
|
358
359
|
|
359
360
|
expected_airbyte_message = AirbyteMessage(
|
@@ -367,6 +368,7 @@ def test_read():
|
|
367
368
|
],
|
368
369
|
"test_read_limit_reached": False,
|
369
370
|
"inferred_schema": None,
|
371
|
+
"latest_config_update": {}
|
370
372
|
},
|
371
373
|
emitted_at=1,
|
372
374
|
),
|
@@ -407,7 +409,8 @@ def test_read_returns_error_response(mock_from_exception):
|
|
407
409
|
pages=[StreamReadPages(records=[], request=None, response=None)],
|
408
410
|
slice_descriptor=None, state=None)],
|
409
411
|
test_read_limit_reached=False,
|
410
|
-
inferred_schema=None
|
412
|
+
inferred_schema=None,
|
413
|
+
latest_config_update={})
|
411
414
|
|
412
415
|
expected_message = AirbyteMessage(
|
413
416
|
type=MessageType.RECORD,
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/unit_tests/connector_builder/test_message_grouper.py
RENAMED
@@ -9,7 +9,15 @@ from unittest.mock import MagicMock, patch
|
|
9
9
|
import pytest
|
10
10
|
from airbyte_cdk.connector_builder.message_grouper import MessageGrouper
|
11
11
|
from airbyte_cdk.connector_builder.models import HttpRequest, HttpResponse, LogMessage, StreamRead, StreamReadPages
|
12
|
-
from airbyte_cdk.models import
|
12
|
+
from airbyte_cdk.models import (
|
13
|
+
AirbyteControlConnectorConfigMessage,
|
14
|
+
AirbyteControlMessage,
|
15
|
+
AirbyteLogMessage,
|
16
|
+
AirbyteMessage,
|
17
|
+
AirbyteRecordMessage,
|
18
|
+
Level,
|
19
|
+
OrchestratorType,
|
20
|
+
)
|
13
21
|
from airbyte_cdk.models import Type as MessageType
|
14
22
|
from unit_tests.connector_builder.utils import create_configured_catalog
|
15
23
|
|
@@ -463,9 +471,9 @@ def test_get_grouped_messages_with_many_slices(mock_entrypoint_read):
|
|
463
471
|
)
|
464
472
|
)
|
465
473
|
|
466
|
-
|
474
|
+
connector_builder_handler = MessageGrouper(MAX_PAGES_PER_SLICE, MAX_SLICES)
|
467
475
|
|
468
|
-
stream_read: StreamRead =
|
476
|
+
stream_read: StreamRead = connector_builder_handler.get_message_groups(
|
469
477
|
source=mock_source, config=CONFIG, configured_catalog=create_configured_catalog("hashiras")
|
470
478
|
)
|
471
479
|
|
@@ -530,6 +538,76 @@ def test_read_stream_returns_error_if_stream_does_not_exist():
|
|
530
538
|
assert "ERROR" in actual_response.logs[0].level
|
531
539
|
|
532
540
|
|
541
|
+
@patch('airbyte_cdk.connector_builder.message_grouper.AirbyteEntrypoint.read')
|
542
|
+
def test_given_control_message_then_stream_read_has_config_update(mock_entrypoint_read):
|
543
|
+
updated_config = {"x": 1}
|
544
|
+
mock_source = make_mock_source(mock_entrypoint_read, iter(
|
545
|
+
any_request_and_response_with_a_record() + [connector_configuration_control_message(1, updated_config)]
|
546
|
+
))
|
547
|
+
connector_builder_handler = MessageGrouper(MAX_PAGES_PER_SLICE, MAX_SLICES)
|
548
|
+
stream_read: StreamRead = connector_builder_handler.get_message_groups(
|
549
|
+
source=mock_source, config=CONFIG, configured_catalog=create_configured_catalog("hashiras")
|
550
|
+
)
|
551
|
+
|
552
|
+
assert stream_read.latest_config_update == updated_config
|
553
|
+
|
554
|
+
|
555
|
+
@patch('airbyte_cdk.connector_builder.message_grouper.AirbyteEntrypoint.read')
|
556
|
+
def test_given_no_control_message_then_use_in_memory_config_change_as_update(mock_entrypoint_read):
|
557
|
+
mock_source = make_mock_source(mock_entrypoint_read, iter(any_request_and_response_with_a_record()))
|
558
|
+
connector_builder_handler = MessageGrouper(MAX_PAGES_PER_SLICE, MAX_SLICES)
|
559
|
+
full_config = {**CONFIG, **{"__injected_declarative_manifest": MANIFEST}}
|
560
|
+
stream_read: StreamRead = connector_builder_handler.get_message_groups(
|
561
|
+
source=mock_source, config=full_config, configured_catalog=create_configured_catalog("hashiras")
|
562
|
+
)
|
563
|
+
|
564
|
+
assert stream_read.latest_config_update == CONFIG
|
565
|
+
|
566
|
+
|
567
|
+
@patch('airbyte_cdk.connector_builder.message_grouper.AirbyteEntrypoint.read')
|
568
|
+
def test_given_multiple_control_messages_then_stream_read_has_latest_based_on_emitted_at(mock_entrypoint_read):
|
569
|
+
earliest = 0
|
570
|
+
earliest_config = {"earliest": 0}
|
571
|
+
latest = 1
|
572
|
+
latest_config = {"latest": 1}
|
573
|
+
mock_source = make_mock_source(mock_entrypoint_read, iter(
|
574
|
+
any_request_and_response_with_a_record() +
|
575
|
+
[
|
576
|
+
# here, we test that even if messages are emitted in a different order, we still rely on `emitted_at`
|
577
|
+
connector_configuration_control_message(latest, latest_config),
|
578
|
+
connector_configuration_control_message(earliest, earliest_config),
|
579
|
+
]
|
580
|
+
)
|
581
|
+
)
|
582
|
+
connector_builder_handler = MessageGrouper(MAX_PAGES_PER_SLICE, MAX_SLICES)
|
583
|
+
stream_read: StreamRead = connector_builder_handler.get_message_groups(
|
584
|
+
source=mock_source, config=CONFIG, configured_catalog=create_configured_catalog("hashiras")
|
585
|
+
)
|
586
|
+
|
587
|
+
assert stream_read.latest_config_update == latest_config
|
588
|
+
|
589
|
+
|
590
|
+
@patch('airbyte_cdk.connector_builder.message_grouper.AirbyteEntrypoint.read')
|
591
|
+
def test_given_multiple_control_messages_with_same_timestamp_then_stream_read_has_latest_based_on_message_order(mock_entrypoint_read):
|
592
|
+
emitted_at = 0
|
593
|
+
earliest_config = {"earliest": 0}
|
594
|
+
latest_config = {"latest": 1}
|
595
|
+
mock_source = make_mock_source(mock_entrypoint_read, iter(
|
596
|
+
any_request_and_response_with_a_record() +
|
597
|
+
[
|
598
|
+
connector_configuration_control_message(emitted_at, earliest_config),
|
599
|
+
connector_configuration_control_message(emitted_at, latest_config),
|
600
|
+
]
|
601
|
+
)
|
602
|
+
)
|
603
|
+
connector_builder_handler = MessageGrouper(MAX_PAGES_PER_SLICE, MAX_SLICES)
|
604
|
+
stream_read: StreamRead = connector_builder_handler.get_message_groups(
|
605
|
+
source=mock_source, config=CONFIG, configured_catalog=create_configured_catalog("hashiras")
|
606
|
+
)
|
607
|
+
|
608
|
+
assert stream_read.latest_config_update == latest_config
|
609
|
+
|
610
|
+
|
533
611
|
def make_mock_source(mock_entrypoint_read, return_value: Iterator) -> MagicMock:
|
534
612
|
mock_source = MagicMock()
|
535
613
|
mock_entrypoint_read.return_value = return_value
|
@@ -550,3 +628,22 @@ def record_message(stream: str, data: dict) -> AirbyteMessage:
|
|
550
628
|
|
551
629
|
def slice_message(slice_descriptor: str = '{"key": "value"}') -> AirbyteMessage:
|
552
630
|
return AirbyteMessage(type=MessageType.LOG, log=AirbyteLogMessage(level=Level.INFO, message="slice:" + slice_descriptor))
|
631
|
+
|
632
|
+
|
633
|
+
def connector_configuration_control_message(emitted_at: float, config: dict) -> AirbyteMessage:
|
634
|
+
return AirbyteMessage(
|
635
|
+
type=MessageType.CONTROL,
|
636
|
+
control=AirbyteControlMessage(
|
637
|
+
type=OrchestratorType.CONNECTOR_CONFIG,
|
638
|
+
emitted_at=emitted_at,
|
639
|
+
connectorConfig=AirbyteControlConnectorConfigMessage(config=config),
|
640
|
+
)
|
641
|
+
)
|
642
|
+
|
643
|
+
|
644
|
+
def any_request_and_response_with_a_record():
|
645
|
+
return [
|
646
|
+
request_log_message({"request": 1}),
|
647
|
+
response_log_message({"response": 2}),
|
648
|
+
record_message("hashiras", {"name": "Shinobu Kocho"}),
|
649
|
+
]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/connector_builder/connector_builder_handler.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/checks/__init__.py
RENAMED
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/checks/check_stream.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/datetime/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/declarative_source.py
RENAMED
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/declarative_stream.py
RENAMED
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/decoders/__init__.py
RENAMED
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/decoders/decoder.py
RENAMED
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/decoders/json_decoder.py
RENAMED
File without changes
|
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/extractors/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/incremental/__init__.py
RENAMED
File without changes
|
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/interpolation/__init__.py
RENAMED
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/interpolation/filters.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/interpolation/jinja.py
RENAMED
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/interpolation/macros.py
RENAMED
File without changes
|
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/models/__init__.py
RENAMED
File without changes
|
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/parsers/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/request_path.py
RENAMED
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/requesters/requester.py
RENAMED
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/retrievers/__init__.py
RENAMED
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/retrievers/retriever.py
RENAMED
File without changes
|
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/schema/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/schema/schema_loader.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/stream_slicers/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{airbyte-cdk-0.39.3 → airbyte-cdk-0.39.4}/airbyte_cdk/sources/declarative/yaml_declarative_source.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|