Group by multiple fields

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

Group by multiple fields

Miguel Farrajota
Hi,

I'm looking to do some result aggregations on a event stream using several fields (for example, country and city) but I'm having a hard time finding any information about how to do this programmatically in the official documentation. I've found a couple of examples using SQL, but I'm looking to do this using something  .aggregate() or .process()

Can anyone shed some light on this?

Thanks

- Miguel Farrajota

The content of this email is confidential and intended for the recipient specified in message only. It is strictly prohibited to share any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.
Reply | Threaded
Open this post in threaded view
|

Re: Group by multiple fields

Congxian Qiu
Hi Miguel

Maybe the doc[1] about how to specifying the keys can help.

Best,
Congxian


Miguel Farrajota <[hidden email]> 于2019年10月8日周二 上午12:09写道:
Hi,

I'm looking to do some result aggregations on a event stream using several fields (for example, country and city) but I'm having a hard time finding any information about how to do this programmatically in the official documentation. I've found a couple of examples using SQL, but I'm looking to do this using something  .aggregate() or .process()

Can anyone shed some light on this?

Thanks

- Miguel Farrajota

The content of this email is confidential and intended for the recipient specified in message only. It is strictly prohibited to share any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.
Reply | Threaded
Open this post in threaded view
|

Re: Group by multiple fields

Miguel Farrajota
Awesome, thanks!

On Tue, Oct 8, 2019 at 5:25 AM Congxian Qiu <[hidden email]> wrote:
Hi Miguel

Maybe the doc[1] about how to specifying the keys can help.

Best,
Congxian


Miguel Farrajota <[hidden email]> 于2019年10月8日周二 上午12:09写道:
Hi,

I'm looking to do some result aggregations on a event stream using several fields (for example, country and city) but I'm having a hard time finding any information about how to do this programmatically in the official documentation. I've found a couple of examples using SQL, but I'm looking to do this using something  .aggregate() or .process()

Can anyone shed some light on this?

Thanks

- Miguel Farrajota

The content of this email is confidential and intended for the recipient specified in message only. It is strictly prohibited to share any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.


--
Miguel Farrajota
Data Engineer

The content of this email is confidential and intended for the recipient specified in message only. It is strictly prohibited to share any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.