See if you can have a generic implementation where individual fields in the partition-path can be configured with their own key-generator class. Currently, TimestampBasedKeyGenerator is the only type specific custom generator. If we are anticipating more such classes for specialized types, you can use a generic way to support overriding key-generator for individual partition-fields once and for all. Balaji.V On Monday, February 24, 2020, 03:09:02 AM PST, Pratyaksh Sharma <pratyaks...@gmail.com> wrote: Hi,
We have TimestampBasedKeyGenerator for defining custom partition paths and we have ComplexKeyGenerator for supporting having combination of fields as record key or partition key. However we do not have support for the case where one wants to have combination of fields as record key along with being able to define custom partition paths. This use case recently came up at my organisation. How about having CustomTimestampBasedKeyGenerator which supports the above use case? This class can simply extend TimestampBasedKeyGenerator and allow users to have combination of fields as record key. Open to hearing others' opinions.