Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce State Passing Between Operators #2802

Merged
merged 203 commits into from
Sep 24, 2024
Merged

Conversation

aglinxinyuan
Copy link
Collaborator

@aglinxinyuan aglinxinyuan commented Aug 22, 2024

This PR adds functionality for state passing between operators, enabling better coordination and data flow in complex workflows. The changes primarily involve updates to serialization logic and the introduction of mechanisms for operators to share and access the state during execution.

Key Highlights:

  1. Implementation of state serialization and deserialization.
  2. Integration of state passing into operator workflows.

This update is essential for more dynamic and responsive pipeline processing.

Introduce State as a type of Marker.

The State class has the following methods:

  1. add(key: String, value: Any, valueType: AttributeType): Unit
  2. get(key: String): Any

@aglinxinyuan aglinxinyuan merged commit db45098 into master Sep 24, 2024
8 checks passed
@aglinxinyuan aglinxinyuan deleted the xinyuan-state-passing branch September 24, 2024 05:50
aglinxinyuan added a commit that referenced this pull request Sep 25, 2024
Fix the bug in the Python source operator, caused by a typo in PR #2802.
PurelyBlank pushed a commit that referenced this pull request Dec 4, 2024
This PR adds functionality for state passing between operators, enabling
better coordination and data flow in complex workflows. The changes
primarily involve updates to serialization logic and the introduction of
mechanisms for operators to share and access the state during execution.

Key Highlights:
1. Implementation of state serialization and deserialization.
2. Integration of state passing into operator workflows.

This update is essential for a more dynamic and responsive pipeline
processing.

Introduce `State` as a type of `Marker`.

The `State` class has the following methods: 
1. `add(key: String, value: Any, valueType: AttributeType): Unit `
2. `get(key: String): Any`
PurelyBlank pushed a commit that referenced this pull request Dec 4, 2024
Fix the bug in the Python source operator, caused by a typo in PR #2802.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

3 participants