Repository navigation
v0.9.3 - peek before you write
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
kenzewith no arguments opens the interactive shell, which previews the result after every step and lets youundo- handy for exactly this kind of check.