Skip to content

v0.9.3 - peek before you write

Choose a tag to compare

@Kenzy-Zero Kenzy-Zero released this 24 Jul 14:04
· 11 commits to main since this release

Added

--n on filter and dedup - cap the result so you can check an operation before writing the whole thing.

kenze filter sales.parquet --where "amount > 100" --n 20 -o -
kenze dedup  users.csv --on id --n 20 -o -

The condition is still evaluated against the entire file - --n only limits how many of the matching rows come back, so a limit can never return a row that does not match. --n matches the flag already used by sample and head.

Requested by a user who wanted to confirm a filter was correct without dropping into a full kenze sql query with a LIMIT clause. Thanks for the suggestion.

Tip: running kenze with no arguments opens the interactive shell, which previews the result after every step and lets you undo - handy for exactly this kind of check.