https://linen.dev logo
#ask-ai
Title
# ask-ai
m

Marielby Soares

09/22/2022, 7:24 PM
Hey! Is there an estimated date for release of V2 state message (I need per-stream states)? https://docs.airbyte.com/understanding-airbyte/airbyte-protocol#v2-coming-soon
e

Evan Tahler (Airbyte)

09/22/2022, 11:40 PM
You can use them now! What is your use case? Are you building a destination or a source?
m

Marielby Soares

09/23/2022, 12:01 PM
A source!
How can I use them? Do you know starting from which version? I am in 0.40
Should it look like this? as far as i understand in the docs?
Copy code
{
   "type": "STATE",
   "state": {
       "state_type": "STREAM",
       "stream": {
          "stream_descriptor": {
              "name": "..",
              "namespace": ".."
          },
          "stream_state": <my_state>
       }
   }
}
e

Evan Tahler (Airbyte)

09/23/2022, 3:14 PM
That looks right. As long as you are using the latest version of the platform, and the newest versions of destinations which support per-stream state, you'll get the benefits. As a note, the generally-available destinations we maintain support per-stream state, but if you are using a custom destination that might not be the case. That's why we haven't fully made the transition yet to per-stream state.
m

Marielby Soares

09/23/2022, 3:26 PM
Thank you. I am using postgres destination
s

Sherif Nada

09/23/2022, 8:50 PM
are you using the python cdk? soon you will get per stream state for free
no dev work needed
2 Views