Is there a way to access the number of 'keys' that have been used for partioning?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Is there a way to access the number of 'keys' that have been used for partioning?

orionemail
Hi,

I need to query the number of keys that a stream has been split by, is there a way to do this?

Thanks,

O



Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to access the number of 'keys' that have been used for partioning?

Chesnay Schepler
This information is not readily available; in fact Flink itself doesn't know how many keys there are at any point.
You'd have to calculate it yourself.

On 15/07/2020 17:11, orionemail wrote:
Hi,

I need to query the number of keys that a stream has been split by, is there a way to do this?

Thanks,

O




Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to access the number of 'keys' that have been used for partioning?

orionemail
Thanks for the response, I thought as much.



Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, 15 July 2020 17:12, Chesnay Schepler <[hidden email]> wrote:

This information is not readily available; in fact Flink itself doesn't know how many keys there are at any point.
You'd have to calculate it yourself.

On 15/07/2020 17:11, orionemail wrote:
Hi,

I need to query the number of keys that a stream has been split by, is there a way to do this?

Thanks,

O