Aeden
Aeden

Reputation: 305

KeyBy vs GroupBy in Apache Flink

What are the similarities and differences of KeyBy and GroupBy in Flink? If one is using the Table/SQL API in a Table only program is GroupBy equivalent to KeyBy?

Upvotes: 1

Views: 1887

Answers (2)

David Anderson
David Anderson

Reputation: 43499

The streaming GroupBy in the Table/SQL API is the keyBy from the DataStream API.

Upvotes: 8

Murtaza Zaveri
Murtaza Zaveri

Reputation: 49

KeyBy is used for Streams data(incase of keyed Streams) and GroupBy is used for Data set API for Batch Processing.

Upvotes: 1

Related Questions