Hi!
You can currently not override the hash function used by "keyBy()". The reason is that this function is used in multiple places, for the stream partitioning, and also for the partitioning of state. Both have to be aligned.
What you can do is use "partitionCustom(...)" to use an arbitrary partitioner. However, you cannot window or access state using that...
If you want to partition in a particular way and use windows after that, you would currently have to do something like a a map function that generates a special key, and then use keyBy() on that.
Greetings,
Stephan