Latest_By_Offset Giving Error

While using Latest_By_Offset on table, getting error Key format does not support schema.
format: KAFKA
schema: Persistence{columns=[x STRING KEY, y STRING KEY], features=}

Can you share a bit more detail please? What version are you using, what your source stream looks like, how is it serialised, what is its schema, etc