Releases: jqnatividad/qsv
0.134.0
qsv pro v1 is here! 🎉
If you've been using qsv for a while, even if you're a command-line ninja, you'll find a lot of new capabilities in qsv pro that can make your data wrangling experience even better!
Apart from making qsv easier to use, qsv pro has a multitude of features including: view interactive data tables; browse stats/frequency/metadata; run recipes and tools (scripts); run Polars SQL queries; use Natural Language queries (using Retrieval Augmented Generation (RAG) techniques); regular expression search; export to multiple file formats; download/upload from/to compatible CKAN instances; design custom node-based flows and data pipelines; interact with a local API from external programs including the qsv pro command; run various qsv commands in a graphical user interface; and the list goes on!
And that's just the beginning, there's more to come! You just have to try it!
Download qsv pro v1 now at qsvpro.dathere.com.
Other highlights include:
pro
: new command to allow qsv to interact with the qsv pro API to tap into qsv pro exclusive features.lens
: new command to interactively view CSVs using the csvlens crate.- The ludicrously fast
diff
command is now easier to use with its--drop-equal-fields
option. @janriemer continues to work on hiscsv-diff
crate, and there's morediff
UX improvements coming soon! stats
addssum_length
andavg_length
"streaming" statistics in addition to the existingmin_length
andmax_length
metrics. These are especially useful for datasets with a lot of "free text" columns.stats
also got "smarter" and "faster" by dog-fooding its own statistics to make it run faster!
It's a little complicated, but the waystats
works is that it compiles the "streaming" statistics on the fly first as it multiplex load the data across several threads, and the more expensive advanced statistics are "lazily" computed at the end.
Since we now compile "sort order" in a streaming manner, we use this info when deriving cardinality at the end to see if we can skip sorting - an otherwise necessary step to get cardinality which is done by "scanning" all the sorted values of a column. Everytime two neighboring values differ in a sorted column, it increments the cardinality count.
Apart from this "sort order" optimization, we also improved the "cardinality scan" algorithm - halving its memory footprint and making it faster still for larger datasets by parallelizing the computation!
This in turn, makes thefrequency
command faster and more memory efficient!- we now also use our own fork of the
csv
crate, featuring SIMD-accelerated UTF-8 validation and other minor perf tweaks, making the entire qsv suite faster still!
Added
pro
: addqsv pro
command to interact with qsv pro API by @rzmk in #2039lens
: new command to interactively view CSVs using the csvlens crate #2117apply
: add crc32 operation #2121count
: add --delimiter option #2120diff
: add flag--drop-equal-fields
by @janriemer in #2114stats
: addsum_length
andavg_length
columns #2113stats
: smarter cardinality computation - added new parallel algorithm for large datasets (10,000+ rows) and updated sequential algorithm for smaller datasets 4e63fec
Changed
count
: added comment to justify magic number 5241e39stats
: use simdjson for faster JSONL parsing; micro-optimizecompute
hot loop 0e8b734stats
: standardized OVERFLOW and UNDERFLOW messages 38c6128sort
: renamed symbol so eliminate devskim lint false positive warning 12db739- enable
lens
feature in GH workflows #2122 deps
: bump polars 0.42.0 to latest upstream at time of release 3c17ed1deps
: use our own optimized fork of csv crate, with simdutf8 validation and other minor perf tweaks e4bcd71- build(deps): bump serde from 1.0.209 to 1.0.210 by @dependabot in #2111
- build(deps): bump serde_json from 1.0.127 to 1.0.128 by @dependabot in #2106
- build(deps): bump qsv-stats from 0.19.0 to 0.22.0 #2107 #2112 cb1eb60
- apply select clippy lint suggestions
- updated several indirect dependencies
- made various doc and usage text improvements
Fixed
schema
: Print an error if theqsv stats
invocation fails by @abrauchli in #2110
New Contributors
- @abrauchli made their first contribution in #2110
Full Changelog: 0.133.1...0.134.0
0.133.1
Highlights
![]() |
This release doubles down on Polars' capabilities, as we now, as a matter of policy track the latest polars upstream. If you think qsv has a torrid release schedule, you should see Polars. They're constantly fixing bugs, adding new features and optimizations! To keep up, we've added Polars revision info to the --version output, and the --envlist option now includes Polars relevant env vars. We've also added support for the POLARS_BACKTRACE_IN_ERR env var to control whether Polars backtraces are included in error messages.We also removed the to parquet subcommand as its redundant with the Polars-powered sqlp 's ability to create parquet files. This removes the HUGE duckdb dependency, which should markedly make compile times shorter and binaries smaller. |
Other highlights include:
- New
edit
command that allows you to edit CSV files. - The
count
command's--width
option now includes record width stats beyond max length (avg, median, min, variance, stddev & MAD). - The
fixlengths
command now has--quote
and--escape
options. - The
stats
command adds asort_order
streaming statistic.
NOTE: 0.133.0 was skipped because of a dev dependency conflict with the
csvs_convert
crate, preventing us from publishing 0.133.0 to crates.io. This has been resolved in 0.133.1.
Added
count
: expanded--width
options, adding record width stats beyond max length (avg, median, min, variance, stddev & MAD). Also added--json
output when using--width
#2099edit
: addqsv edit
command by @rzmk in #2074fixlengths
: added--quote
and--escape
options #2104stats
: addsort_order
streaming statistic #2101polars
: add polars revision info to--version
output e60e44fpolars
: added Polars relevant env vars to--envlist
option 0ad68fepolars
: add & documentPOLARS_BACKTRACE_IN_ERR
env var f9cc559
Changed
- Optimize polars optflags #2089
deps
: bump polars 0.42.0 to latest upstream at time of release 3b7af51- bump polars to latest upstream, removing smartstring #2091
- build(deps): bump actions/setup-python from 5.1.1 to 5.2.0 by @dependabot in #2094
- build(deps): bump flate2 from 1.0.32 to 1.0.33 by @dependabot in #2085
- build(deps): bump flexi_logger from 0.28.5 to 0.29.0 by @dependabot in #2086
- build(deps): bump indexmap from 2.4.0 to 2.5.0 by @dependabot in #2096
- build(deps): bump jsonschema from 0.18.0 to 0.18.1 by @dependabot in #2084
- build(deps): bump serde from 1.0.208 to 1.0.209 by @dependabot in #2082
- build(deps): bump serde_json from 1.0.125 to 1.0.127 by @dependabot in #2079
- build(deps): bump sysinfo from 0.31.2 to 0.31.3 by @dependabot in #2077
- build(deps): bump qsv-stats from 0.18.0 to 0.19.0 by @dependabot in #2100
- build(deps): bump tokio from 1.39.3 to 1.40.0 by @dependabot in #2095
- apply select clippy lint suggestions
- updated several indirect dependencies
- made various doc and usage text improvements
- pin Rust nightly to 2024-08-26 from 2024-07-26, aligning with Polars pinned nightly
Fixed
- Ensure portable binaries are "added" to the publish zip archive, instead of replacing all the binaries with just the portable version. Fixes #2083. 34ad206
Removed
- removed
to parquet
subcommand as its redundant withsqlp
's ability to create parquet files. This also removes the HUGE duckdb dependency, which should markedly make compile times shorter and binaries much smaller #2088 - removed
smartstring
dependency now that Polars has its own compact inlined string type 47f047e - removed
to parquet
benchmark
Full Changelog: 0.132.0...0.133.1
-
ChatGPT prompt: Using the logos for the Polars project and the qsv project as a baseline, can you create a version with the cowboy riding a polar bear instead? ↩
0.132.0
Highlights
With this release, we finally finish the stats
caching refactor started in 0.131.0, replacing the binary encoded stats cache with a simpler JSONL cache. The stats
cache stores the necessary statistical metadata to make several key commands smarter & faster. Per the benchmarks:
frequency
is 6x faster (frequency_index_stats_mode_auto
).
Not only is it faster, it now doesn't need to compile a hashmap for columns with ALL unique values (e.g. ID columns) - practically, making it able to handle "real-world" datasets of any size (that is, unless all the columns have ALL unique cardinalities. In that case, the entire CSV will have to fit into memory).tojsonl
is 2.67x faster (tojsonl_index
)schema
is two orders of magnitude (100x) faster!!! (schema_index
)
The stats cache also provides the foundation for even more "smart" features and commands in the future. It also has the side-benefit of adding a way to produce stats in JSONL format that can be used for other purposes beyond qsv.
The search
, searchset
, and replace
commands now also have a --literal
option that allows you to search for and replace strings with regex special/reserved characters. This makes it easier to search for and replace strings that contain otherwise reserved regex characters without having to escape them (especially useful with URL columns that often contain characters like ?
,:
,-
,.
, etc.)
Added
search
,searchset
&replace
: add--literal
option #2060 & 7196053slice
: added usage text examples 04afaa3publish
: added workflow to build "portable" binaries with CPU features disabledcontrib(completions)
: add--literal
forsearch
andsearchset
by @rzmk in #2061contrib(completions)
: add--literal
completion toreplace
by @rzmk in #2062- add more polars metadata in
--version
info #2073 docs
: added more info to SECURITY.md 609d4dfdocs
: expanded Goals/Non-Goals 54998e3docs
: added Installation "Option 0" quick start bf5bf82- added
search --literal
benchmark
Changed
-
stats
,schema
,frequency
&tojsonl
: stats caching refactor, replacing binary encoded stats cache with a simpler JSONL cache #2055 -
rename
stats --stats-json
option tostats --stats-jsonl
#2063 -
changed "broken pipe" error to a warning 7353275
-
docs
: update multithreading and caching sections of PERFORMANCE.md 5e6bc45 -
deps
: switch to our qsv-optimized fork of csv crate 3fc1e82 -
deps
: bump polars from 0.41.3 to 0.42.0 #2051 -
build(deps): bump actix-web from 4.8.0 to 4.9.0 by @dependabot in #2041
-
build(deps): bump flate2 from 1.0.31 to 1.0.32 by @dependabot in #2071
-
build(deps): bump indexmap from 2.3.0 to 2.4.0 by @dependabot in #2049
-
build(deps): bump reqwest from 0.12.6 to 0.12.7 by @dependabot in #2070
-
build(deps): bump rust_decimal from 1.35.0 to 1.36.0 by @dependabot in #2068
-
build(deps): bump serde from 1.0.205 to 1.0.206 by @dependabot in #2043
-
build(deps): bump serde from 1.0.206 to 1.0.207 by @dependabot in #2047
-
build(deps): bump serde from 1.0.207 to 1.0.208 by @dependabot in #2054
-
build(deps): bump serde_json from 1.0.122 to 1.0.124 by @dependabot in #2045
-
build(deps): bump serde_json from 1.0.124 to 1.0.125 by @dependabot in #2052
-
apply select clippy lint suggestions
-
updated several indirect dependencies
-
made various usage text improvements
Fixed
stats
: fix--output
delimiter inferencing based on file extension #2065- make process_input helper handle stdin better #2058
docs
: fix completions for--stats-jsonl
and qsv pro installation text update by @rzmk in #2072docs
: added Note about whyluau
feature is disabled in musl binaries - ffa2bc5 & 27d0f8e
Removed
Full Changelog: 0.131.1...0.132.0
0.131.1
Changed
- deps: bump polars to latest upstream post py-1.41.1 release at the time of this release
- build(deps): bump filetime from 0.2.23 to 0.2.24 by @dependabot in #2038
Fixed
frequency
: change--stats-mode
default tonone
fromauto
.
This is because of a big performance regression when using--stats-mode auto
on datasets with columns with ALL unique values.
See #2040 for more info.
Full Changelog: 0.131.0...0.131.1
0.131.0
Highlights
- Refactored
frequency
to make it smarter and faster.
frequency
's core algorithm essentially compiles an in-memory hashmap to determine the frequency of each unique value for each column. It does this using multi-threaded, multi-I/O techniques to make it blazing fast.
However, for columns with ALL unique values (e.g. ID columns), this takes a comparatively long time and consumes a lot of memory as it essentially compiles a hashmap of the ENTIRE column, with a hashmap entry for each column value with a count of 1.
Now, with the new--stats-mode
option (enabled by default),frequency
can compile the dataset in a more intelligent way by looking up a column's cardinality in the stats cache.
If the cardinality of a column is equal to the CSV's rowcount (indicating a column with ALL unique values), it short-circuits frequency calculations for that column - dramatically reducing the time and memory requirements for the ID column as it eliminates the need to maintain a hashmap for it.
Practically speaking, this makesfrequency
able to handle "real-world" datasets of any size.
To ensurefrequency
is as fast as possible, be sure toindex
and computestats
for your datasets beforehand. - Setting the stage for Datapusher+ v1 and...
The "itches we've been scratching" the past few months have been informed by our work at several clients towards the release of Datapusher+ 1.0 and qsv pro 1.0 (more info below) - both targeted for release this month.
DP+ is our third-gen, high-speed data ingestion/registration tool for CKAN that uses qsv as its data wrangling/analysis engine. It will enable us to reinvent the way data is ingested into CKAN - with exponentially faster data ingestion, metadata inferencing, data validation, computed metadata fields, and more!
We're particularly excited how qsv will allow us to compute and infer high-quality metadata for datasets (with a focus on inferring optional recommended DCAT-US v3 metadata fields) in "near real-time", while dataset publishers are still entering metadata. This will be a game-changer for CKAN administrators and data publishers! - ...qsv pro 1.0
qsv pro is datHere's enterprise-grade data wrangling/curation workbench that’s planned for v1.0 release this month.
Building the core functionality of qsv pro's Workflow feature is one of the primary reasons for a v1.0 release.
We feel qsv pro may be a game-changer for data wranglers and data curators who need to work with spreadsheets and large datasets to view statistical data and metadata while also performing complex data wrangling operations in a user-friendly way without having to write code.
Added
docs
: added Shell Completion section 556a2ffdocs:
add 🪄 emoji in legend to indicate "automagical" commands 2753c90- Add building deb package (WIP) by @tino097 in #2029
- Added GitHub workflow to test debian package (WIP) by @tino097 in #2032
tests
: added false positive to _typos.toml configuration d576af2- added more benchmarks
- added more tests
Changed
fetch
&fetchpost
: remove expired diskcache entries on startup 9b6ab5dfrequency
: smarter frequency compilation with new--stats-mode
option #2030json
: refactored for maintainability & performance 62e9216 and 4e44b18- improved
self-update
messages 5c874e0 and 0aa0b13 contrib(completions)
:frequency
updates & remove bashly/fish by @rzmk in #2031- Debian package update by @tino097 in #2017
publish
: optimized enabled CPU features when building release binaries in all GitHub Actions "publishing" workflowspublish
: ensure latest Python patch release is used when buildingqsvpy
binary variants 2ab03a0 and ec6f486tests
: also enabled CPU features in CI testsdocs
: wordsmith qsv "elevator pitch" cc47fe6docs
: point to https://100.dathere.com in Whirlwind tour fc49aefdeps
: bump polars to latest upstream post py-1.41.1 release at the time of this release- build(deps): bump bytes from 1.6.1 to 1.7.0 by @dependabot in #2018
- build(deps): bump bytes from 1.7.0 to 1.7.1 by @dependabot in #2021
- build(deps): bump flate2 from 1.0.30 to 1.0.31 by @dependabot in #2027
- build(deps): bump indexmap from 2.2.6 to 2.3.0 by @dependabot in #2020
- build(deps): bump jaq-parse from 1.0.2 to 1.0.3 by @dependabot in #2016
- build(deps): bump redis from 0.26.0 to 0.26.1 by @dependabot in #2023
- build(deps): bump regex from 1.10.5 to 1.10.6 by @dependabot in #2025
- build(deps): bump serde_json from 1.0.121 to 1.0.122 by @dependabot in #2022
- build(deps): bump sysinfo from 0.30.13 to 0.31.0 by @dependabot in #2019
- build(deps): bump sysinfo from 0.31.0 to 0.31.2 by @dependabot in #2024
- build(deps): bump tempfile from 3.11.0 to 3.12.0 by @dependabot in #2033
- build(deps): bump serde from 1.0.204 to 1.0.205 by @dependabot in #2036
- apply select clippy suggestions
- updated several indirect dependencies
- made various usage text improvements
- bumped MSRV to 1.80.1
Fixed
sqlp
&joinp
: fixed.ssv.sz
output auto-compression support 5397f6c & d86ba63docs
: fix link by @uncenter in #2026tests
: correct misnamed test 8ae6000tests
: fix flakyreverse
property tests d86ba63
Removed
docs
: "Quicksilver" is the name of the logo horse, not how you pronounce "qsv" e4551ae
New Contributors
Full Changelog: 0.130.0...0.131.0
0.130.0
Following the 0.129.0 release - the largest release to date, 0.130.0 continues to polish qsv as a data-wrangling engine, packing new features, fixes, and improvements, previewing upcoming features in qsv pro 1.0. Here are a few highlights:
Highlights
- Added
.ssv
(semicolon separated values) automatic support. Semicolon separated values are now automatically detected and supported by qsv. Though not as common as CSV, SSV is used in some regions and industries, so qsv now supports it. - Added cargo deb compatibility. In preparation for the release of DataPusher+ 1.0, we're now making it easier to upgrade
qsvdp
so CKAN administrators can install and upgrade it easily usingapt-get install qsvdp
orapt-get upgrade qsvdp
.
DP+ is our next-gen, high-speed data ingestion tool for CKAN that uses qsv as its analysis engine. Its not only a robust, fast, validating data pump that guarantees high quality data, it also does extended analysis to infer and automatically derive high-quality metadata - what we call "automagical metadata". - Upgraded to the latest Polars upstream at the py-polars-1.3.0 tag. Polars tops the TPC-H Benchmark and is several orders of magnitude faster than traditional dataframe libraries (cough - 🐼 pandas). qsv proudly rides the 🐻❄️ Polars bear to get subsecond response times even with very large datasets!
- qsv v0.130.0 shell completions files are available for download here. With shell completions, pressing tab in a compatible shell provides suggestions for various qsv commands, subcommands, and options that you can choose from. Supported shells include bash, zsh, powershell, fish, nushell, fig, and elvish. View tips on how to install completions for the bash shell here.
Added
apply
: add base62 encode/decode operations #2013headers
: add--just-count
option #2004json
: add--select
option #1990searchset
: add--not-one
flag by @rzmk in #1994- Added
.ssv
(semicolon separated values) automatic support #1987 - Added cargo deb compatibility by @tino097 in #1991
contrib(completions)
: add--just-count
forheaders
by @rzmk in #2006contrib(completions)
: add--select
forjson
by @rzmk in #1992- added several benchmarks
- added more tests
Changed
diff
: allow selection of--key
and--sort-columns
by name, not just by index #2010fetch
&fetchpost
: replace deprecated Redis execute command 75cbe2bstats
: more intelligent--infer-len
option c6a0e64validate
: return delimiter detected upon successful CSV validation #1977- bump polars to latest upstream at py-polars-1.3.0 tag #2009
- deps: bump csvs_convert from 0.8.12 to 0.8.13 d1d0800
- build(deps): bump cached from 0.52.0 to 0.53.0 by @dependabot in #1983
- build(deps): bump cached from 0.53.0 to 0.53.1 by @dependabot in #1986
- build(deps): bump postgres from 0.19.7 to 0.19.8 by @dependabot in #1985
- build(deps): bump pyo3 from 0.22.1 to 0.22.2 by @dependabot in #1979
- build(deps): bump redis from 0.25.4 to 0.26.0 by @dependabot in #1995
- build(deps): bump serde_json from 1.0.120 to 1.0.121 by @dependabot in #2011
- build(deps): bump simple-expand-tilde from 0.1.7 to 0.4.0 by @dependabot in #1984
- build(deps): bump tokio from 1.38.0 to 1.38.1 by @dependabot in #1973
- build(deps): bump tokio from 1.38.1 to 1.39.1 by @dependabot in #1988
- build(deps): bump xxhash-rust from 0.8.11 to 0.8.12 by @dependabot in #1997
- apply select clippy suggestions
- updated several indirect dependencies
- made various usage text improvements
- pin Rust nightly to 2024-07-26
Fixed
diff
: clarify--key
usage examples, resolves #1998 by @rzmk in #2001json
: refactored so it didn't need to use threads to spawnqsv select
to order the columns. Had to do this as sometimes intermediate output was sent to stdout before the final output was ready 0f25defpy
: replace row with col in usage text by @allen-chin in #2008reverse
: fix indexed bug #2007validate
: properly auto-detect tab delimiter when file extension is TSV or TAB #1975- fix panic when process_input helper fn receives unexpected input from stdin 152fec4
Removed
New Contributors
- @tino097 made their first contribution in #1991
- @allen-chin made their first contribution in #2008
Full Changelog: 0.129.1...0.130.0
To stay updated with datHere's latest news and updates (including qsv pro, datHere's CKAN DMS, and analyze.dathere.com), subscribe to the newsletter here: dathere.com/newsletter
0.129.1
This is a small patch release to fix some publishing issues, update tab completion, and to fix minor CI errors.
See 0.129.0 release notes to get the details on qsv's biggest release to date!
Changed
clipboard
: add error handling based onclipboard::Error
by @rzmk in #1970contrib(completions)
: add all commands (exceptapplydp
&generate
) by @rzmk in #1971- Temporarily suppressed some CI tests that were flaky on GH macOS Apple Silicon action runners. They previously worked fine on self-hosted macOS Apple Silicon action runners that are temporarily unavailable.
Full Changelog: 0.129.0...0.129.1
0.129.0
This release is the biggest one ever!
Packed with new features, improvements, and previews of upcoming qsv pro features, here are a few highlights:
📌 Highlights (click each dropdown for more info)
Meet @rzmk - qsv pro's software engineer now also co-maintains qsv!
@rzmk has contributed to projects in the qsv ecosystem including qsv's describegpt
, prompt
, json
, and clipboard
commands; qsv's tab completion support; qsv.dathere.com including its online configurator and benchmarks page; 100.dathere.com with its qsv lessons and exercises; and qsv pro the spreadsheet data wrangling desktop app (along with its promo site). @rzmk now also co-maintains qsv!
With @rzmk now also co-maintaining qsv, our data-wrangling portfolio's roadmap may get more intriguing as @rzmk's work on qsv pro, 100.dathere.com, and other initiatives can result in contributions to qsv as we've seen in this release. Perhaps some aims may be put towards AI; "automagical" metadata inferencing; DCAT 3; and expanded recipe support with the accelerated evolution of qsv pro as an enterprise-grade Data-Wrangling/Data Curation Workbench.
Polars v0.41.3 - numerous sqlp
and joinp
improvements
sqlp
: expanded SQL support- Natural Join support
- DuckDB-like
COLUMNS
SQL function to select columns that match a pattern - ORDER BY ALL support
- Support POSTGRESQL
^@
("starts with"),~~
,~~*
,!~~
,!~~*
("like", "ilike") string-matching operators - Support for SQL
SELECT * ILIKE
wildcard syntax - Support SQL temporal functions
STRFTIME
andSTRPTIME
sqlp
: added--streaming
option
New command qsv prompt
- Use a file dialog for qsv file input and output
Be more interactive with qsv by using a file dialog to select a file for input and output.
Here are a few key highlights:
- Start with
qsv prompt
when piping commands to provide a file as input from an open file dialog and pipe it into another command, for example:qsv prompt | qsv stats
. - End with
qsv prompt -f
when piping commands to save the output to a file you choose with a save file dialog.
There are other options too, so feel free to explore more with qsv prompt --help
.
This will allow you to create qsv pipelines that are more "user-friendly" and distribute them to non-technical users. It's not as flexible as qsv pro's full-blown GUI, but it's a start!
New command qsv json
- Convert JSON data to CSV and optionally provide a jq-like filter
The new json
command allows you to convert non-nested JSON data to CSV. If your data is not in the expected format, try using the --jaq
option to provide a jq-like filter. See qsv json --help
for more information and examples.
Here are a few key highlights:
- Specify the path to a JSON file to attempt conversion to CSV with
qsv json <filepath>
. - Attempt conversion of JSON to CSV data from
stdin
, for example:qsv slice <filepath.csv> --json | qsv json
. - Write the output to a file with the
--output <filepath>
(or-o
for short) option. - Use the
--jaq <filter>
option to try converting nested or complex JSON data into the intended format before parsing to CSV.
You may learn more by running qsv json --help
.
Along with the jsonl
command, we now have more options to convert JSON to CSV with qsv!
New command qsv clipboard
- Provide input from your clipboard and save output to your clipboard
Provide your clipboard content using qsv clipboard
and save output to your clipboard by piping into qsv clipboard --save
(or -s
for short).
100.dathere.com - Try out lessons and exercises with qsv from your browser!
You may run qsv commands from your browser without having to install it locally at 100.dathere.com.
Within the lesson (in-page) using Thebe | In a Jupyter Lab environment |
---|---|
![]() |
![]() |
Thanks to Jupyter Book, datHere has released a website available at 100.dathere.com where you may explore lessons and exercises with qsv by running them within the web page, in a Jupyter Lab environment, or locally after following the provided installation instructions. There are multiple exercises planned, but feel free to try out the first few available lessons/exercises by visiting 100.dathere.com and star the source code's repository here.
New multi-shell completions draft (bash, zsh, powershell, fish, nushell, fig, elvish)
There's a draft of more qsv shell completion support including 7 different shells! The plan is to add the rest of the commands in this implementation since we can use one codebase to generate the 7 shell completion script files. Feel free to try out the various shell completions in the examples
folder from contrib/completions
to verify if the examples work (as of today's release date only qsv count
and qsv clipboard
may be available) and also contribute to adding the rest of the completions if you know a bit of Rust.
The existing Bash shell completions for v0.129.0 and fish shell completions draft are available for now as the multi-shell completions draft is being developed.
Bash completions demo | Fish completions demo |
---|---|
![]() |
![]() |
With shell completions enabled, you may identify qsv commands more easily when pressing the tab
key on your keyboard in certain positions using the relevant Bash or fish shell from your terminal. You may follow the instructions from 100.dathere.com here to learn how to install the Bash completions and under the Usage section here for fish shell completions. Note that the fish shell completions are incomplete and both of the implementations may be replaced by the multi-shell completions implementation once complete.
qsvpro.dathere.com - Preview: Download spreadsheets from a compatible CKAN instance into the qsv pro Workflow
This is a preview of a feature, meaning it is planned for an upcoming release but may change by the time it is released.
In addition to importing local spreadsheet files and uploading to a CKAN instance, this new feature allows users to select a locally registered CKAN instance where they have the create_dataset
permission to download a spreadsheet file from their CKAN instance and load the new local spreadsheet file into the Workflow. qsv pro's Workflow would therefore have both upload and download capability to and from a compatible CKAN instance.
qsvpro.dathere.com - Preview: Attempt SQL query generation from natural language with a compatible LLM API instance
This is a preview of a feature, meaning it is planned for an upcoming release but may change by the time it is released.
Also note that this video is sped up as you may see by...
0.128.0
[0.128.0] - 2024-05-25
❤️ csv,conf,v8 Edition 🎉
🏇🏽 ¡Ándale! ¡Ándale! ¡Arriba! ¡Arriba! 💨
Yii-hah! We're Mexico bound as we head to csv,conf,v8 to present and share qsv with fellow data-makers and wranglers from all over!
And we've packed a lot into this release for the occasion:
search
got a lot of love as it now powers qsv pro's newsearch
feature to get near-instant search results even on large datasets.stats
- the ❤️ of qsv, now has several cache fine-tuning options with--cache-threshold
. It now also computesmax_precision
for floats andis_ascii
for strings. It also has a new--round
9999 sentinel value to suppress rounding of statistics.schema
&tojsonl
are now faster thanks tostats --cache-threshold
autoindex & cache creation/deletion logic.- We upgraded Polars to 0.40.0 to unlock additional capabilities in the
count
,joinp
&sqlp
commands. count
now has an additional blazing fast counting mode using Polars'read_csv()
table function.frequency
gets some micro-optimizations for even faster frequency analysis.luau
is now bundled with luau 0.625 from 0.622. We also upgraded the bundled LuaDate library from 2.2.0 to 2.2.1. All of this, while making it ~10% faster!
Overall, qsv manages to keep its performance edge despite the addition of new capabilities and features. We'll give a whirlwind tour of qsv and these updates in our talk at csv,conf,v8.
We'll also preview what we've been calling the People's APPI - our "Answering People/Policymaker Interface" in qsv pro.
This is a new way to interact with qsv that's more conversational and less command-line-y using a natural language interface. It's a way to make qsv more accessible to more people, especially those who are not comfortable with the command line.
We're excited to share all these qsv innovations with the csv,conf,v8 community and the wider world! Nos vemos en Puebla!
¡Ándele! ¡Ándele! ¡Epa! ¡Epa! ¡Epa!
Added
count
: additional Polars-powered counting mode usingread_csv()
SQL table function 05c5809input
: add--quote-style
option df3c8f1joinp
: add--coalesce
option 8d142e5search
: add--preview-match
option #1785search
: add--json
output option #1790search
: add "match-only"--flag
option mode #1799search
: add--not-one
flag for not using exit code 1 when no match by @rzmk in #1810sqlp
: add--decimal-comma
option #1832stats
: add--cache-threshold
option #1795stats
: add--cache-threshold
autoindex creation/deletion logic #1809stats
: add additional mode to--cache-threshold
63fdc55stats
: now computes max_precision for floats #1815stats
: add--round
9999 sentinel value support to suppress rounding #1818stats
: addis_ascii
column #1824- added new benchmarks for
search
command 58d73c3
Changed
count
: document three count modes 3d5a333describegpt
: update--max-tokens
type for LLMs with larger context sizes by @rzmk #1841excel
: use simplerrange::headers()
to get headers 069acbffrequency
: ensure--other-sorted
works with--other-text
7430ad7frequency
: microoptimize hot loop d9c01e1, 7c9f925 andluau
: improve usage text cb6b4d9luau
: we now bundle luau 0.625 from 0.622 4060975luau
: update vendored LuaDate library from 2.2.0 to 2.2.1 #1840schema
: adjust to reflectstats --cache-threshold
option 92fed86slice
: move json output helpers to util 1f44b48tojsonl
: refactor boolcheck helper 74d5f5adocs
: cross-referencesplit
&partition
commands #1828- contrib(bashly): update completions.bash for qsv v0.127.0 by @rzmk in #1776
- contrib(bashly): update completions.bash for qsv v0.128.0 by @rzmk in #1838
deps
: upgrade to polars 0.40.0 #1831- build(deps): bump actix-web from 4.5.1 to 4.6.0 by @dependabot in #1825
- build(deps): bump anyhow from 1.0.82 to 1.0.83 by @dependabot in #1798
- build(deps): bump anyhow from 1.0.83 to 1.0.85 by @dependabot in #1823
- build(deps): bump anyhow from 1.0.85 to 1.0.86 by @dependabot in #1826
- build(deps): bump cached from 0.50.0 to 0.51.0 by @dependabot in #1789
- build(deps): bump cached from 0.51.0 to 0.51.1 by @dependabot in #1793
- build(deps): bump cached from 0.51.1 to 0.51.2 by @dependabot in #1802
- build(deps): bump cached from 0.51.2 to 0.51.3 by @dependabot in #1805
- build(deps): bump crossbeam-channel from 0.5.12 to 0.5.13 by @dependabot in #1827
- build(deps): bump csvs_convert from 0.8.9 to 0.8.10 by @dependabot in #1808
- build(deps): bump data-encoding from 2.5.0 to 2.6.0 by @dependabot in #1780
- build(deps): bump file-format from 0.24.0 to 0.25.0 by @dependabot in #1807
- build(deps): bump flate2 from 1.0.28 to 1.0.29 by @dependabot in #1778
- build(deps): bump flate2 from 1.0.29 to 1.0.30 by @dependabot in #1784
- build(deps): bump hashbrown from 0.14.3 to 0.14.5 by @dependabot in #1781
- build(deps): bump itertools from 0.12.1 to 0.13.0 by @dependabot in #1822
- deps: bump forked jsonschema from 0.17.1 to 0.18.0 f02620f
- build(deps): bump mimalloc from 0.1.41 to 0.1.42 by @dependabot in #1829
- build(deps): bump mlua from 0.9.7 to 0.9.8 by @dependabot in #1821
- build(deps): bump qsv-stats from 0.16.0 to 0.17.1 by @dependabot in #1813
- build(deps): bump qsv-stats from 0.17.1 to 0.17.2 by @dependabot in #1814
- build(deps): bump qsv-stats from 0.17.2 to 0.18.0 by @dependabot in #1816
- build(deps): bump ryu from 1.0.17 to 1.0.18 by @dependabot in #1801
- build(deps): bump semver from 1.0.22 to 1.0.23 by @dependabot in #1800
- build(deps): bump serde from 1.0.198 to 1.0.199 by @dependabot in #1777
- build(deps): bump serde from 1.0.199 to 1.0.200 by @dependabot in #1787
- build(deps): bump serde from 1.0.200 to 1.0.201 by @dependabot in #1804
- build(deps): bump serde from 1.0.201 to 1.0.202 by @dependabot in #1817
- build(deps): bump serde_json from 1.0.116 to 1.0.117 by @dependabot in #1806
- build(deps): bump serial_test from 3.1.0 to 3.1.1 by @dependabot in #1779
- build(deps): bump simple-expand-tilde from 0.1.5 to 0.1.6 by @dependabot in #1811
- build(deps): bump sysinfo from 0.30.11 to 0.30.12 by @dependabot in https://github.com/jq...
0.127.0
📊 Enhanced Frequency Analysis 📊
This a quick release adding several frequency
enhancements for more detailed frequency analysis. The frequency
command now includes a percentage column, calculates other
values, and supports limiting unique counts and negative limits.
These options provides additional context for Datapusher+, qsv-pro and describegpt
so their metadata inferences are more accurate and comprehensive.
Previously, for a 775-row CSV file containing one column named state
with entries for all 50 states, frequency
only showed1:
qsv frequency freq_state_example.csv | qsv table
field value count
state NY 100
state NJ 70
state CA 60
state MA 55
state FL 45
state TX 43
state NM 40
state AZ 39
state NV 38
state MI 35
Now, there's a new percentage
column and other
values calculation, both of which have configurable options:
qsv frequency freq_state_example.csv | qsv table
field value count percentage
state NY 100 12.90323
state NJ 70 9.03226
state CA 60 7.74194
state MA 55 7.09677
state FL 45 5.80645
state TX 43 5.54839
state NM 40 5.16129
state AZ 39 5.03226
state NV 38 4.90323
state MI 35 4.51613
state Other (40) 250 32.25806
This release is also out of cycle to address a big performance regression in the excel
command caused by unnecessary formula info retrieval for the --error-format
option introduced in 0.126.0. This has been fixed, and the excel
command is now back to its speedy self.
Added
frequency
: added percentage column;other
values calculation, implementing #1774 #1775benchmarks
: added newfrequency
andexcel
benchmarks b83ad3a
Changed
- contrib(bashly): update completions.bash for qsv v0.126.0 by @rzmk in #1771
- build(deps): bump mimalloc from 0.1.39 to 0.1.41 by @dependabot in #1772
- build(deps): bump qsv-stats from 0.14.0 to 0.15.0 by @dependabot in #1773
- updated several indirect dependencies
- applied select clippy recommendations
Fixed
excel
: fixed performance regression because qsv was unnecessarily getting formula info (an expensive operation) for--error-format
option even when not required 772af34- renamed 0.126.0 sqlp_vs_duckdb benchmark results so they're next to each other for easy direct comparison. 7bcd59e.
Per the benchmarks,sqlp
is 2.87 times faster than duckdb v0.10.2 for a simple aggregation (0.066 secs vs 0.19 secs), and 1.42 times faster for an "expensive" aggregation (0.143 secs vs 0.203 secs).
Full Changelog: 0.126.0...0.127.0
-
with its default
--limit
setting of 10 only show the top 10 unique values in the column, sorted by occurence ↩