adevinta / zoe

The Kafka CLI for humans
https://adevinta.github.io/zoe
MIT License
287 stars 21 forks source link

Mix metadata attributes with data content attributes in a table view. #45

Closed rveve closed 3 years ago

rveve commented 3 years ago

I like to see in the table view, some metadata fields and some value data fields, together using dialect jq like below. But it seems, it is not possible. That would be nice to have something like that.

.metadata.timestamp| .metadata.key | .content.uuid
1632829602078      |  bob          | 1f7f7e4d-39dd-43bd-8084-58694f6f64a0 
wlezzar commented 3 years ago

Hi @rveve . Thanks for the issue. I like your suggestion!

To solve this use case, I added an option --expose-metadata to inject a special __metadata__ field containing the kafka record's metadata. This field can be used in --filter and --query options.

Sounds good for your use case?

wlezzar commented 3 years ago

@rveve Issue closed automatically closed as part of the PR merge. Please feel free to reopen to continue the discussion if this doesn't solve your problem!

wlezzar commented 3 years ago

The feature is available in the latest zoe version (v0.27.3). Feel free to reopen this issue if this doesn't answer your use case.

rveve commented 3 years ago

@wlezzar : Thank you, planing to give it a try later today,