confluentinc/ksql

KsqlTesterTest coverage for partition/offset

Open

#8194 aperta il 29 set 2021

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Java (1048 fork)batch import
enhancementgood first issuestreaming-enginetest-coverage

Metriche repository

Star
 (5739 star)
Metriche merge PR
 (Merge medio 4g 20h) (6 PR mergiate in 30 g)

Descrizione

Is your feature request related to a problem? Please describe. When trying to develop tests for the new pseudocolumns ROWPARTITION and ROWOFFSET, which represent the partition and offset of the record, respectively, I found that the returned partition and offset were always equal to 0.

Describe the solution you'd like The spoofed kafka topic to include support for partition and offset- QTTs don't do this perfectly (see https://github.com/confluentinc/ksql/issues/7982) , but they provide enough support for most use cases.

Describe alternatives you've considered Adding testing without coverage for partition/offset values. This is probably fine for now but can be improved upon.

Guida contributor