Skip to content

Commit 265fb40

Browse files
authored
Merge pull request #22 from eccenca/feature/explicitSchema-CMEM-6444
Added explicit_schema flag to FlexibleSchemaPort (CMEM-6444)
2 parents ea8da73 + ab17a94 commit 265fb40

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](https://semver.org/)
66

7+
## [Unreleased]
8+
9+
### Added
10+
11+
- Added `explicit_schema` parameter to `FlexibleOutputSchema` (CMEM-6444).
12+
13+
714
## [4.9.0] 2025-02-20
815

916
### Added

cmem_plugin_base/dataintegration/ports.py

+7
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,15 @@ class FlexibleSchemaPort(Port):
2222
Flexible input ports will adapt the schema to the connected output.
2323
Flexible output ports will adapt the schema to the connected input.
2424
It is not allowed to connect two flexible ports.
25+
26+
:param explicit_schema: Indicates whether an output port has an explicitly defined and quickly
27+
retrievable schema (like CSV). This allows for connecting it directly to
28+
flexible input ports in which case the explict schema will be used.
2529
"""
2630

31+
def __init__(self, explicit_schema: bool = False):
32+
self.explicit_schema = explicit_schema
33+
2734

2835
class UnknownSchemaPort(Port):
2936
"""Port for which the schema is not known in advance.

0 commit comments

Comments
 (0)