Highlights
~113 commits since 29.0.0. synthesize gets most of them: it now holds back rare source values by default, can generate rows conditioned on a target column, and splits, saves and shards its work across files, runs and machines. There's also a new time-series command, timebucketp, and luau is up to 5.3x faster.
synthesizeis privacy-aware and scales out.--min-count <k>(default 5) holds back rare source values (#5066, #5067). A real value of an enumerated column, or ajointtuple, seen fewer than k times in the source is not sampled, and numeric and date ranges end at the k-th smallest and largest values, so a lone outlier such as a top salary no longer reappears. Values drawn inside those ranges can still happen to equal a rare source value.--report <file>says how many synthetic rows exactly match a source row and what was held back (#5068).--target <col>generates the other columns conditionally on a label's class, for training classifiers (#5084).--discover-relationships <file>findsjoint,correlatedandorderedcolumn groups in the source and writes them out for review (#5085).correlatedgroups can now include categorical columns (#5093).- Generate once, anywhere:
- Rows are generated in parallel, 3.3x faster on 16 cores, and a seed gives the same rows at any
--jobswhilestatscomputes exact statistics (approximate ones, requested through--stats-optionsor switched on when the input won't fit in memory, can differ) (#5069).--quantiles <n>keeps long-tailed columns closer to the source (#5078), and floats keep their source's decimal places (#5080).
- New command:
timebucketpbuckets time-series data into time windows over a date, datetime or integer column. Windows can be fixed or overlapping (--every 15m --period 1h), grouped--bya column, and aggregated with several functions at once.--rollinggives look-back windows instead, and--fill-gapsfills empty windows. It's powered by Polars (#5112). luauis up to 5.3x faster. A row's values become Lua strings only when a script reads them, soluau filter "Borough == 'BROOKLYN'"on 1M rows × 41 columns takes 0.84 s instead of 4.5 s (#5133, #5134, #5135).sqlpcan change tables, not just query them, with the newer Polars.INSERT INTO ... VALUES,UPDATE ... SETandCOPY <table> FROM '<file>'change a registered table for the statements after them in a.sqlscript (never the input file). It also addsPIVOT/UNPIVOT,CREATE MACROandCOPY (<query>) TO '<file>';QSV_SQL_DISABLE_FILE_WRITESturns the last one off (#5081, #5111).excel:validateandstatsread data quoted with another character (--quote "'"), escaped with a backslash (--escape) or not quoted at all (--no-quoting) (#5104).- Security.
- The MCP server patch releases 29.0.1 and 29.0.2 fixed two advisories: GHSA-vm54-v922-fpq5 (DuckDB CLI invocation and plugin-mode sandbox) and GHSA-5763-32xg-7rh3 (credential and shell-startup paths). The 30.0.0 MCP server and plugin carry both fixes; see the MCP Server changelog.
- Vulnerabilities can now be reported privately through GitHub's private vulnerability reporting (see SECURITY.md).
- RUSTSEC-2026-0620 (
curve25519-dalek's AVX-512 backend, viaself_update's signature check) doesn't affect the stable-built release binaries. Theqsv-nightlyx86_64 builds now force the unaffected serial backend.
This is a major release because some excel --table, joinp, sqlp, synthesize, luau, validate, sniff and stats results change, and sqlp/joinp now refuse .jsonl inputs. See Breaking Changes. The MSRV stays Rust 1.100.
🙏 Contributors
Thanks to everyone who made 30.0.0 possible:
- @mhkeller for asking for a quote-character option in
statsandvalidate(#4610), which became--quote,--escapeand--no-quoting. - @sronix for reporting that
writestatwrote very small numbers to.xptas missing and to.poras 0 (#5094). - @jrothbaum for releasing polars_readstat 0.27.1 with exact SPSS portable (
.por) numbers after our report (jrothbaum/polars_readstat#72), so qsv no longer carries its own fix.
Breaking Changes
excel --tableexports one more row: the table's first data row is no longer dropped, so the row count in the summary also goes up by one (#5140).joinp: empty text keys no longer match without--nulls(#5116).--nullsdid the opposite of its help for text keys; an inner join on a text key now pairs rows whose keys are both empty only with--nulls.sqlpandjoinprefuse.jsonl/.ndjsoninputs with a usage error instead of reading them as CSV (#5128). Insqlpuseread_ndjson(); forjoinp, convert withqsv jsonlfirst.sqlp: some results change with the Polars bumps. See the Polars entries under Changed for the full list:- A cast of a string to
DATEorTIMESTAMPreads only year-first dates;CAST('3/5/2024' AS DATE)now fails (pola-rs/polars#31082). UseSTRPTIMEwith a format. UNNESTof an empty or NULL list returns no rows,STRPOS/POSITIONcount characters rather than bytes, and an aggregate inWHEREfails instead of returning every row.DELETEchanges the table for the statements after it, a NULL length makesLEFTandSUBSTRINGNULL,DESCRIBEreports SQL type names (VARCHAR,BIGINT), and a repeated unaliased expression is named with a:1suffix.read_ndjson()with an inferred schema fails on a key first seen after the inference window, instead of dropping it (pola-rs/polars#31139).
- A cast of a string to
synthesizeoutput changes. See Added and Changed for the details:--min-countdefaults to 5, so enumerated values andjointtuples seen 1–4 times are no longer sampled, and numeric/date ranges end at the 5th smallest and largest values (still the extreme when 5 or more rows share it; draws inside a range can still equal a rare source value).--min-count 1turns this suppression and range trimming off; it does not reproduce 29.0.0's rows, which also differ by seed sequence and rounding (below) (#5066, #5067).- A given
--seedproduces different rows than in 29.0.0 (#5069), and Float values are rounded to the source's decimal places (#5080). Saved models use format version 3; models saved before #5080 must be fitted again. - Enumerated columns with blank cells now emit their real values, and
orderedgroups over dates in other formats now apply (#5066, #5085).
luau: the globalintegerlibrary is gone with Luau 0.748 (#5101); use plain numbers, which are exact up to 2^53. Column values are now bound lazily (#5135). Scripts that enumeratecolor use_G/getfenvstill get eager binding, andQSV_LUAU_EAGER_BINDING=trueforces it.validate schema: a Draft 4 schema with an emptyenum, or with equal members such as[0, 0.0], fails the meta-schema check, and some error messages changed (jsonschema 0.63.1, #5100).sniffresults can change on messy files (csv-nose 2.0.1, #5139).fields,typesandnum_fieldsalways have the same length, and header and preamble detection changed for ragged tables and blank top rows.stats:NaNcells are skipped by a Float column'smin,max,range,sort_orderandsortiness(#5137). A leadingNaNno longer pinsminandmaxatNaN.
Added
excel --fill-mergedcopies the value of each merged region's top-left cell into the region's other cells, which are otherwise exported empty, so a category label merged down several rows or a heading merged across columns repeats on every row or column it covers. It works for XLS, XLSX, XLSM and XLSB files (calamine 0.39 added XLSB merged cells) and with--sheet,--rangeand--table. Only the part of a region inside the exported cells is filled, and a region whose top-left cell is outside them stays empty. A header cell merged across columns repeats its name in each of them, so pipe the output toqsv safenamesif you need unique names. With--error-format formulaorboth, a filled error cell also reports its region's formula. ODS files are rejected for exports (not for--metadata), as calamine can't read their merged regions. Merged regions that overlap within the exported cells, which Excel never writes, are an error, rather than a result that depends on the regions' order. (#5141)scripts/benchmarks.sh10.3.0:timebucketpbenchmarks (#5145). Six benchmarks bucket the 1M-row NYC 311 sample byCreated Date:timebucketp_daily(--every 1d),timebucketp_weekly_by(weeks from Monday,--by Borough),timebucketp_monthly_aggs(len,mean,maxand a median),timebucketp_overlapping(1-hour windows every 15 minutes),timebucketp_fill_gaps(hourly, with the empty hours) andtimebucketp_rolling(7-day look-back per row). They pass--date-format "%m/%d/%Y %I:%M:%S %p", since the column's 12-hour times don't match a guessed format. Each has a--verifycheck: thecountcolumn must add up to the rows the windows hold in total (the 1M rowcount, 3,999,856 for the overlapping windows, or 1,804,961,061 for the 7-day rolling windows, one per row), and the output must have the expected number of windows (1M for--rolling). They are skipped when the qsv under test has notimebucketp(before 30.0.0).scripts/benchmarks.sh10.2.0: matchedluauvspybenchmarks (#5136). Each pair does exactly the same work, reads columns the same way (col['...']) and writes byte-identical output:luau_passthrough/py_passthrough(map x 1, per-row overhead),luau_upper/py_upper(uppercase one column) andluau_distance/py_distance(parse two floats, square root, format). Two new luau benchmarks pair with existing py ones:luau_filter_colwithpy_filter(the samecol['Location'] == ''expression) andluau_dateformatwithpy_dateformat(one day-of-week column; LuaDate vs Python's datetime, so it compares the date libraries too). The existing mirrors weren't like for like:py_dateformatcomputes one column whereluau_multicomputes three, andpy_filterreadscol['Location']whereluau_filterreads theLocationglobal. Both sides of every pair run on the Python-enabled binary (qsv_py_bin), so the PGO-builtqsv_bindoesn't skew them, and they only run when it is available. They time the whole command:pyalso builds a dict of every column for each row, whileluaubinds values lazily. Every new benchmark checks its output: a map must keep all rows and fill its new column on as many rows as its source column, and the filter must return the rows with an empty Location, counted independently withsearch.timebucketp: new Polars-powered command that buckets time-series data into time windows over a date, datetime or integer index column. Window mode (--every,--period,--offset) groups rows into fixed or overlapping windows that need not be calendar units (e.g.--every 15m --period 1h), with--label,--closed,--start-by(incl. a weekday) and--boundaries;--rollinginstead gives each row a trailing(index - period, index]window.--bycomputes windows per group, and--aggtakes severalfunc:columnaggregations at once (first, last, sum, min, max, mean, median, quantile@, len), output as
<column>_<func>.--fill-gapsalso emits the empty windows between each group's first and last window (count, sum and len 0, other aggregations empty); it needs the default left labels, since window ends are not evenly spaced with calendar or overlapping periods. Ambiguous dates such as01/03/2024are read month-first like the rest of qsv (Polars alone reads them day-first), or day-first withQSV_PREFER_DMY;--date-formatsets an explicit index format. An index that mixes dates and datetimes, asdatefmtwrites midnight values, is read as datetimes, its dates as midnight (#5130, #5131). Text columns holding only dates are parsed the same way for min/max/mean/median/quantile, so they compare as dates rather than text, while first/last keep the values as written. Dates need 4-digit years unless--date-formatis given (chrono would read10/05/24as the year 10).--sortedskips the sort for pre-sorted input, but still verifies the order: Polars' lazygroup_by_dynamicdoes not check it without--byand silently builds wrong windows from unsorted input. Enables Polars'dynamic_group_byfeature (#5112).sqlp: new SQL from the Polars bump to08b2814(all failed on93d31f0):INSERT INTO <table> VALUES ...andUPDATE <table> SET ...on registered tables (#30958), which change the table for the statements after them in a.sqlscript but never the input file;COPY <table> FROM '<file>', which appends a file's rows to a table as in Postgres (give(HEADER true)for a file with a header row; without it the header is read as a data row, which fails on a numeric column) (#30975);UNNEST ... WITH ORDINALITY(#31017); window frames that end before the current row, e.g.ROWS BETWEEN 2 PRECEDING AND 1 PRECEDING(#31022);SHOW FUNCTIONS(#31002); and the functionsREGEXP_SUBSTR,JSON_EXTRACT_PATHandJSON_EXTRACT_PATH_TEXT(#31003).RANDOM()inLIMIT/OFFSETis drawn once, so it no longer fails (#30944).QSV_SQL_DISABLE_FILE_WRITESstill refusesCOPY ... TO; it doesn't blockINSERT,UPDATEorCOPY ... FROM, which write no files (SQL could already read any file throughread_csv()). (#5111)validate,stats: new--quote,--escapeand--no-quotingoptions for reading CSV data quoted with another character (e.g.'), with quotes escaped as\"instead of"", or with no quoting at all. Both commands used to read only"-quoted data, so a field like'x,1'was split in two:validate --split-raggedquarantined good rows as ragged, andstatsfailed with "found record with 4 fields".validatestill writes its.valid/.invalidsplit files with standard"quoting. Under any non-default quoting, neither an index nor Polars' row count is used, since both assume"quoting, sostatsruns sequentially (slower on large files). A stats cache computed under one quoting is not reused under another. Requested in #4610 (#5104).validate: an unknown JSON Schemaformatnow names the closest known one when it looks like a typo, in row validation's warning (Unknown format "emial" is not checked (did you mean "email"?)) and invalidate schema's error (... Did you mean "email"?). Names are compared case-insensitively, within a third of the name's length (at least one edit, a swapped pair of letters counting as one), against the formats the schema's draft checks and qsv's owncurrency. A name close to none of them gets no hint, and the warning is otherwise unchanged. (#5100)synthesize:correlatedrelationships may now take categorical members (up to 50 values; not dates or faker columns), e.g.{"kind": "correlated", "members": ["borough", "latitude", "longitude"]}. The rows split into strata, one per source combination of the categorical values seen at least--min-counttimes. Each stratum keeps its share of rows, and the numeric members are drawn from that stratum's own quantile buckets, coupled by a copula fitted within strata, so each borough keeps its own coordinates. Ajointgroup sharing a categorical member joins the strata, so its tuples stay real, provided no other relationship names its columns (otherwise the usual first-relationship-wins order applies); the rows of a tuple too rare to print count toward the kept tuples sharing its categorical value, which draw that share of their numbers from the rare rows' own buckets, so each value keeps its share and its numeric range (a row printed as a kept city may then carry a rarer city's numbers in the same borough). A stratum too small for buckets of its own (fewer than 2 ×--min-count− 1 values) uses its categorical value's, then the column's. Categorical members stay only when the strata explain some numeric member by a rank-based correlation ratio at or above--correlation-threshold, and a numeric member stays when the strata explain it or it correlates with another member within strata; otherwise the numeric members fall back to a plaincorrelatedgroup and thejointgroups it took in resolve on their own (or the run aborts under--strict-relationships).--discover-relationshipsproposes such members at a correlation ratio of 0.7 or more: onNYC311-500.csv,BoroughjoinsIncident Zip,BBL, both State Plane coordinates,LatitudeandLongitudein one group, and synthetic Latitude and Longitude keep Borough's correlation ratio (0.894 and 0.892, vs 0.892 and 0.878 in the source) and their 5th-95th percentiles. A discovered group holds up to 8 of its own members; thejointcolumns its strata take in don't count toward it. Groups without categorical members write the same bytes as before, and save the same model. #5093synthesize: new--discover-relationships <file>findsjoint,correlatedandorderedgroups in the source, uses them in the same run, and writes them, each with a score, to<file>for review.<file>is the--dictionary(or the--infer-content-typedictionary, or{"fields": []}without one) with the groups appended to itsrelationships, so a rerun with--dictionary <file>writes the same bytes, as does a--modelsaved from the run. Relationships the dictionary declares win, and discovery leaves their columns alone. Pairs score by bias-corrected Cramér's V forjoint(raw V is near 1 for any many-valued column) and by Spearman's rho forcorrelated(numeric columns) andordered(dates), at 0.7 or more. Only columns that would sample an enumerated pool of 2 to 50 values can join ajointgroup, and it must keep 80% of rows in tuples seen at least--min-counttimes. Anorderedpair also needs the later date to come first in at most 1% of the sampled rows holding both (the fit clamps those, as for a declared group), overlapping ranges, and the same dictionary date format, or none on either (it writes every member in its anchor's format). Columns with a faker content type, filler, constant and all-unique integer columns, and the--targetare never proposed; groups don't share columns and hold up to 8. Scores are read from at most 100,000 rows (a fixed stride beyond) and 64 columns of each family, with no RNG, so the result is the same at any--jobs. On NYC 311 data it finds X/Longitude and Y/Latitude, Borough/Park Borough with City, and Agency/Agency Name. It can't be combined with--no-relationships,--strict-relationshipsor--model. Without the flag, output, saved models and reports are unchanged. (#5085)synthesize: new--target <col>generates the other columns conditionally on the class of<col>, e.g. a label to train a classifier on. Each synthetic row first draws a class by its share of the input's rows, then fills every other column from that class's own profile, so each column keeps its distribution within each class (on a 10%-positive label whose positive rows have a 10x largeramount, the synthetic positives' meanamountwas 499 against the source's 499, and 116 without--target). A column with at most 50 distinct (trimmed) values is split by value, an empty value being a class of its own (not counted toward the 50); a numeric column with more is split by its own quantile buckets (--quantiles), each class drawn at the share of rows its bucket holds, and each value from the written values that land back in that bucket; any other column is refused. With tied bucket edges that follows the source more closely than an ordinary fit: on 900 zeros and the integers 1–100, 89.8% of synthetic targets were zeros, against 90% in the source and 75.1% without--target.statsandfrequencyrun once more per class, on a temporary copy of the input split by class. A class seen in fewer than--min-countrows is dropped and its share redistributed (listed in--report, which also records the target and tags per-class suppressions with their class). Fake-value columns use their whole-input generator (blank rate included, though a column blank throughout a class stays blank), so--consistent-fakeskeeps one fake per source value across classes, and so does any column a class can't profile as well as the whole input (filler text, or a generator that would write the column in another form, such as raw dates in a column the dictionary formats, or zero-padded codes as numbers) or has too few values to profile (a numeric or date column needs 2k−1 values in the class, so at the default--min-countof 5 a class of fewer than 9 rows takes them all from the whole input). Relationships that name the target drop it from their members, in the whole-input fit too, and in a class so do fake-value columns, so a class group never writes a column's real values where the whole input fakes it. Dropping the target can make a group eligible that an ordinary fit skips (it overlapped an earlier one only on the target); it still yields to earlier groups, and ajointone writes real value-tuples, so a column an ordinary fit fakes can then write real values. Each class fits relationships on its own rows, and--strict-relationshipsapplies there, so a relationship that only holds within classes (e.g. y rising with x in one class and falling in another) is kept. Class files quote every field, so aQSV_COMMENT_CHARvalue can't hide a row. Output is the same bytes at any--jobs, from--model, and across--shardand--rows-per-file; without--targetit is unchanged. Saved models hold per-class profiles, so the model format is version 4 and models saved before this change must be fitted again.--targetcan't be combined with--model. (#5084)synthesize: new--quantiles <n>sets how many equal-share buckets reproduce each numeric and date column's shape, and the gaps oforderedrelationships: 2, 4, 5, 10, 20, 25, 50 or 100 (divisors of 100, so every bucket edge is a whole percentile and every bucket holds the same share of rows). More buckets keep skewed and long-tailed columns closer to the source: on a column whose values double every 5% of rows, the 90th percentile came out 2.4× too high with the quartiles and 2% high with--quantiles 20. The default of 4 still cuts at the source quartiles, so output is unchanged; other values cut atstats --percentiles, which are real source values, so a column gets fewer buckets when it has too few non-null values for each bucket to hold more than--min-countof them (at worst, the quartiles). Percentile edges are read unrounded (stats --round 9999, unless--stats-optionssets--round), so small-magnitude floats keep distinct edges. The model format is unchanged.--quantilescan't be combined with--model, and with a value other than 4--stats-optionsmay not include--percentilesor--percentile-list. (#5078)synthesize: new--rows-per-file <n>splits the output into files of<n>rows. The--outputname must contain{}, which is replaced by the zero-based row number of each file's first row, as inqsv split, zero-padded so the names sort in order (-o synthetic_{}.csvwritessynthetic_000.csv,synthetic_250.csv, …). The files hold the same rows as a single-file run, in order, at any--jobsand from a--modelrun, and join the same way as--shardslices; each CSV file has a header row and each Parquet file its schema. It can't be combined with--shard, and a template that would write over the input, dictionary, model or report file is refused. (#5077)synthesize: new--format csv|jsonl|parquet. JSONL and Parquet keep each column's type: integers and floats as such, dates as ParquetDate/Datetime(JSONL writes them as strings), and empty values as null. Atrue/falsecolumn is written as booleans only whenstatstypes it Boolean (--stats-options --infer-boolean); otherwise it is text. Types are decided once when the model is fitted, from the generator where it has one; a column sampled from real values keeps itsstatstype only if every value converts unchanged, so a zero-padded code such as a ZIP stays text, and a date format that can't read its own output back (%Y-%m,%y) is written as text. Output is the same bytes at any--jobsand from a--modelrun; Parquet row groups hold at most 65,536 rows (fewer for very wide rows, to bound memory) and split at the same points whatever--jobs. Parquet needs--outputand thepolarsfeature. Saved models now record the column types, so the model format is version 2 and models saved before this change must be fitted again. (#5075)synthesize: new--save-model <file>saves the fitted model (the per-column generators and relationship groups) as JSON, and--model <file>generates from it without the source, so a dataset can be profiled once and generated anywhere. A--modelrun with the same--rowsand--seedwrites the same bytes as the run that saved the model, and slices made with--shardfrom one model join to that output whatever memory each machine has. The model holds real values from the source (such as enumerated values, quartile boundaries and range ends), including some the output may never show, so share it at least as carefully as the output. Its format is internal to qsv and versioned: a model of another version is refused with a message to fit it again, and a malformed model is refused before generating. Options that shape the fit or read the source (--dictionary,--stats-options,--report, …) are refused with--model; defaulted ones such as--localeare ignored.serde_json'sfloat_roundtripfeature is now declared directly, since model runs depend on exact float round-trips (it was already enabled through other dependencies). (#5074)synthesize: new--shard <k/N>generates only slice k of N of the rows--rowsasks for, so several machines can each produce part of one dataset. It requires--seed. Each slice is a run of whole 8,192-row blocks, and slices 1 to N joined in order withqsv cat rowsare byte-identical to one unsharded run. Every slice still profiles the whole source, so they must all use the same input, options, qsv version and dictionary file (--infer-content-typewithout--dictionaryis refused, since each slice would make its own LLM call), and none may hit the automatic switch ofstatsorfrequencyto approximate estimators for lack of memory.synthesizenow passes on the warnings of its internalstatsandfrequencyruns, which it used to discard, so that switch is visible. With--report, row counts and matches are for the slice, and the report records theshard. (#5073)synthesize: new--report <file>writes a JSON report of how much of the source a run reproduced: source and synthetic row counts, the--min-countused, how many synthetic rows exactly match a source row (and the rate), and the values andjointtuples--min-countdropped per column or group. Numbers and dates are compared by value, so2020-01-05matches a source01/05/2020; other columns are compared as text. A row with a float, free-text or faker column rarely matches exactly, so a low rate alone does not show the output is private. Takes one extra pass over the input and holds one hash per distinct source row; output is unchanged with or without it. (#5068)synthesize:--min-countnow also trims numeric and date/datetime ranges, and the gaps learned fororderedrelationships. Each range end becomes the k-th smallest / k-th largest value, so at least k source rows lie at or beyond it and a lone outlier (a top salary, an earliest date, a decades-long tenure) no longer sets the range or reappears at its real value. The ends are still real values, and integers and dates can land on them. Quartiles are clamped into the trimmed range. A numeric or date column with fewer than 2k−1 non-null values (9 at the default) has no such range and is left empty, with a warning, unless its real values are sampled.orderedfollowers are clamped into their own trimmed range, and anorderedpair with fewer than 2k−1 rows that have both values is dropped to independent generation (or aborts under--strict-relationships). Costs one extra streaming pass over the input, skipped when there are no numeric/date columns or with--min-count 1, which keeps the real min/max. Behavior change: numeric/date output no longer reaches the source's extreme values by default. (#5067)synthesize: new--min-count <k>privacy threshold (default 5). Real values of enumerated columns, and realjointrelationship tuples, seen fewer than k times in the source are dropped from the values it samples; their share is redistributed over the kept values. A column whose values are all below k falls back to its faker or type-based generator (numeric and date columns to their numeric/date range), and a joint group to independent columns, or aborts under--strict-relationships. A warning is printed when a column or joint group is fully suppressed. Behavior change: existing runs no longer sample values or tuples seen 1–4 times, and small or highly varied sources can see whole categorical columns replaced by filler;--min-count 1turns this suppression off (it does not reproduce 29.0.0's rows; see Breaking Changes). (#5066)sqlp: new SQL from the Polars bump to93d31f0(all failed on2d9938d):PIVOTandUNPIVOT(#30799);COPY (<query>) TO '<file>', which writes the result itself in the format of the file's extension or a(FORMAT ...)option (#30834);CREATE MACRO(#30852); reuse of aSELECTalias later in the sameSELECT(#30819); RANGE window frames with an offset, e.g.RANGE BETWEEN 3 PRECEDING AND CURRENT ROW(#30849; qsv now enables polars'rolling_window_byfeature for it);CASTtoCATEGORICAL(#30801);E'...'escape strings (#30845); and the functionsMAKE_DATE,CHR,DATE_DIFF,TYPEOF,TO_CHAR,TO_DATE,TO_TIMESTAMP,TRY_STRPTIME,REGEXP_MATCHES,PRINTFandFORMAT(FORMATtakes{}placeholders,PRINTF%ones). String functions now accept aNULLliteral (#30848), soUPPER(NULL)is NULL instead of an error. (#5081)sqlp,joinp --sql-filter,profile,scoresql: newQSV_SQL_DISABLE_FILE_WRITESenvironment variable. When set, Polars SQL'sCOPY ... TOfails with "writing files is disabled by QSV_SQL_DISABLE_FILE_WRITES" and writes nothing; reading files and--outputare unaffected. Without it,COPY ... TOcan write any path the query names. The qsv MCP server sets it in plugin mode (Cowork and the Claude Code plugin). (#5081)
Fixed
excelno longer empties an existing--outputfile when it fails before writing anything. The output was opened, truncating the file, before the sheet, table or range was resolved, so an error such as a missing table, a sheet that doesn't exist or an unsupported--fill-mergedon ODS left the file empty. It's now opened only once there's something to write; an error while writing, such as a full disk, can still leave partial output.--metadata j,JandS(JSON, pretty JSON and short JSON) now write to--outputtoo: they printed to stdout and left the--outputfile empty. (#5142, #5143)excel --tablewith--error-format formulaorbothfailed withWorksheet '' not found: the formula lookup used the export's sheet name, which is unset in table mode. It now uses the table's worksheet. (#5142, #5143)excel --rangewith--error-format formulaorbothlooked up an error cell's formula in the wrong column when the range didn't start at column A: it used the cell's column within the range as if it were the sheet's column, so it reportedcannot get formula, or the formula of an unrelated cell to the left. (#5140)- Behavior change:
excel --tableno longer drops the table's first data row. A table's headers come from its metadata and its data starts below them, but qsv skipped the first data row as if it were a header row, so a table of six rows exported five, and the row count in the summary was one short too. A table now exports one more row than before, so a script that added the missing row back will get it twice. (#5140) stats:NaNcells are now skipped by a Float column'smin,max,range,sort_orderandsortiness, as they already were by the mean, sum and quantiles (#5137). A leadingNaNpinned bothminandmaxatNaNfor the whole column (NaN,1,2reportedmin=NaN max=NaN), and an indexed parallel run could differ by chunking.schemaomittedminimum/maximumfor such a column; it now infers them from the numeric values. An all-NaNcolumn now has emptymin/max/range/sort_order(it reportedNaN,NaNandUnsorted), like an all-null column.luau: the MAIN script now reads a global's current value when a function changed it during the same row. With--begin "count = 0; function inc() count = count + 1 end"andinc(); return count, rows got 0, 1, 2… instead of 1, 2, 3…, because Luau resolved globals the chunk only reads when the chunk was loaded. The MAIN script is also loaded once instead of on every row, cutting 12–22% of instructions on NYC 311 1M (e.g.luau mapwithstring.gsub5.4 s → 4.2 s) (#5133).- Help docs (
docs/help/*.md):<placeholder>text such as<file>,<column>orquantile@<p>was read by GitHub as HTML, so it vanished from option tables, descriptions and examples (e.g. "Write output to instead of stdout."), and<p>split table cells. The help generator now escapes it outside code spans, keeping its own<br>/<ul>/<li>tags and<https://...>links.timebucketp's--start-byvalues were missing from its help doc, and its--labelvalues ran together; both now render as lists (#5132). - JSONL/NDJSON inputs: object and array values are written as their JSON text (e.g.
{"k": 1},["a", "b"]), so a file with nested values converts instead of failing with "CSV format does not support nested data". This also covers a nested key that first appears after the first 100 rows, which #5125's whole-file inference would otherwise have turned into that error (before #5125 such a key was silently dropped). A.pschema.jsonstill decides the columns. Thesqlphelp also notes that only a query selecting a lateread_ndjson()key fails, and that a.pschema.jsoncan type a column as a date beforeCASTruns. (#5127) pivotp: when every column was a pivot or--indexcolumn, the default--values(all remaining columns) was empty, and the pivot failed with a raw Polars error ("pivotcalled withoutvaluescolumns").pivotp region --index sexnow counts the rows of each cell, as--values region --agg lenalready did. Any aggregation other thanlen(the default here) stops with an error asking for--values. Fixes #5122. (#5124)pivotp: a generated pivot column could take the name of an--indexcolumn, and the pivot failed with "Duplicate: column with name '...' has more than one occurrence". Generated columns are named<value column><--col-separator><pivot value>(or just the pivot value with one value column), soreadstat --sentinels-asoutput, wherenamesits next toname_null, hit this whenname_nullwas the--index,namea value column, and the pivot column had empty cells. Such a generated column is now renamed to the first free<name>_<n>(from 2), with a warning on stderr (unless--quiet). Two generated names that coincide (e.g.a_b×canda×b_c) still stop the pivot, now with an error suggesting--col-separatoror--values. Fixes #5123. (#5124)joinp:--nullsdid the opposite of its help for text keys. Empty text join keys matched without--nullsand stopped matching with it, and empty numeric keys never matched. In the standard joins (not cross, non-equi or asof),--nullsnow makes empty keys match each other, including a quoted""and an unquoted empty. Without it they never match, whatever the key's type. Outer joins still output such rows, unmatched, with their key values unchanged.--ignore-leading-zeros(-z) now keeps a key's last zero, so000becomes0and still matches0, but no longer becomes empty and matches an empty key. The--ignore-errorshelp now says that in the standard joins, a key that can't be parsed, like an empty one, matches only with--nulls. Behavior change: an inner join on a text key no longer pairs rows whose keys are both empty unless--nullsis given. (#5116)sqlp,joinp,pivotp: the--ignore-errorshelp said rows that can't be parsed are skipped (insqlpandjoinp, the whole batch around them). Polars instead reads such a value as empty (null) and keeps its row, soCOUNT(*)andlenstill count it. The help now says so. (#5114)moarstats,pragmastat,scoresql: a stats cache computed under other CSV parsing options than the command reads the input with (another--delimiter,--no-headers,--flexible, sniffed preamble, orstats --quote/--escape/--no-quoting) was reused anyway, since these commands read the cache files directly and checked only their age.moarstats, andpragmastatwhen it appends to the stats CSV, extended such a baseline with statistics of another reading, e.g. a column'smaxof 4 where the input as read holds a 9.pragmastat --standaloneskipped numeric columns the cache had typed as text. All three now apply the parsing-options check the other cache readers use: they recompute the baseline, orpragmastat --standaloneignores the cache. Fixes #5105 (#5106).writestat: numbers very close to 0 were lost without a warning. A SAS transport (.xpt) file wrote a non-zero number closer to 0 than ±5.4e-79 (16^-65, the smallest IBM float) as missing, or as 0 below ±2.2e-308, andwritestatchecked only the ±7.2e75 end of the range. Such numbers are now refused like the large ones, and with--lossythe warning names them. An SPSS portable (.por) file can hold them, but its writer lost precision from about 1e-56 and wrote numbers below about 4e-73 as 0 (or -0). It now writes every finite number so that it reads back exactly. The.porwriter and reader fixes come frompolars-readstat-rs0.27.1 (jrothbaum/polars_readstat@ace0caa), after our fix was offered upstream in jrothbaum/polars_readstat#72. Fixes #5094. (#5103, #5121)synthesize: anorderedrelationship read its source dates only as RFC 3339 orYYYY-MM-DD, so on columnsstatstypes as dates in other forms (04/18/2019 09:55:45 PM,2022-01-21 13:47:00) it found no rows with both dates and was dropped with only a log warning, leaving the columns independent and out of order. Source dates are now read with the parserstatsuses, honoring--prefer-dmy/QSV_PREFER_DMY, byorderedgroups and by--discover-relationships. Behavior change: such groups now apply, so their output changes. (#5085)synthesize: input with non-UTF8 cells failed outright when it had any numeric or date column ("invalid UTF-8"), or when a column it enumerated held one ("Unable to parse output of qsv command frequency"). It also failed when a relationship was declared, and withQSV_NO_HEADERSwhen the first row held one. Every pass now reads raw bytes, and invalid bytes are written as U+FFFD (�), asstatsalready reports them, and--reportkeys source cells the same way, so a copied row still counts as an exact match. A non-UTF8 header is still refused bystats. (#5084)synthesize: underQSV_NO_HEADERS,statsnumbers columns from 0 andfrequencyfrom 1, so each column was paired with the next column's frequency table: a column could be filled with its neighbor's values, and the first fell back to filler text. Frequency's column numbers are now shifted to match. (#5068)synthesize: relationship learning read source columns by their position in thestatsoutput, so--stats-optionsthat selected or reordered columns (e.g.--select city,zip) madejoint,orderedandcorrelatedgroups learn from the wrong columns, such as pairing IDs with cities. Source columns are now mapped by position when the stats output matches the header, by unique header name under a selection, and by index for headerless input (QSV_NO_HEADERS).--stats-optionsmay no longer include--select/-sor--weight, which change which columnsstatsreports; runqsv selecton the input first. (#5067)synthesize: a column with any null was never treated as fully enumerated, because frequency's(NULL)row parses to rank 0, the same as an "Other" bucket. Such columns fell back to fakers, filler or the min/max range instead of sampling their real values by frequency, which also let them bypass--min-count. Nulls are still reproduced through the null ratio. Behavior change: columns with blank cells now emit their real values (those seen at least--min-counttimes), like every other enumerated column. With a Data Dictionary but without--consistent-fakes, a name, email or address column that has blanks goes from generated fakes to real values; pass--consistent-fakesto keep fakes. (#5066)joinp: with a key transformation (-i,-zor-N) and--coalesce, right-only rows of a--fullor--rightjoin on same-named keys lost their key, written as empty. The cleanup also dropped any column named<left key>_right, even one that wasn't a key copy, and when selected key names collided, such asidandid_right, it dropped a key. Now the left key is filled from its same-named right key before--sql-filterruns, and only that key's right copy is dropped, in joins that output right columns. (#5117)joinp: with a key transformation (-i,-zor-N), the temporary transformed key columns were still in the join result when--sql-filterran, so a positionalORDER BYorGROUP BYcould hit a temporary key instead of the intended column. They were then removed by matching any column name containing-transformed, which also dropped user columns and SQL aliases with that in their name, such asstatus-transformed. Now the temporary columns are dropped by their exact names before--sql-filterruns. (#5118)
Changed
-
luau: a row's values now become Lua strings only when a script reads them, instead of every column of every row being copied intocoland the column globals. On NYC 311 1M (41 columns) that makesluau filter "Borough == 'BROOKLYN'"5.3x faster (4.5 s → 0.84 s, close to the 0.68 s a plain read and write takes), a two-columnmap3.3x faster (4.9 s → 1.5 s), and a ten-columnmap1.5x faster. Output is unchanged. A script that could tell the difference keeps the previous eager binding:colis filled eagerly unless every use ofcolin the BEGIN, MAIN and END scripts is an index (col.name,col[...]), sopairs(col),#col,rawget(col, ...)or passingcolto a function see every column; and both are bound eagerly when a script uses_G,getfenv,setfenvorrequire(other than the LuaDate library qsv writes forrequire "./date"), or a column is namedcol,_IDX,_INDEX,_ROWCOUNT,_LASTROWor starts with_qsv(the names of qsv's own state). Setting a column to nil (letter = nil, or a lookup that misses) keeps it nil for the rest of the row, as before. Setting the newQSV_LUAU_EAGER_BINDINGenvironment variable to true always binds eagerly, for any script those checks miss.qsv_loadcsv,qsv_loadjsonandqsv_register_lookupnow write their global with a normal assignment, so one named after a column is rebound on the next row (#5135). -
luau: the Lua strings for column names (andcol) are created once instead of on every row, cutting another 16–22% of instructions on NYC 311 1M after #5133 (e.g.luau filter5.7 s → 4.4 s,luau mapwith column globals 6.0 s → 4.8 s) (#5134). -
sqlp,joinp: a.jsonl/.ndjsoninput is refused with a usage error. Both commands read inputs with Polars' CSV reader, so a JSONL file's first line became the header and each object was split at its commas:sqlp'sCOUNT(*)came out one record short, andjoinpfailed with a confusing "unable to find column". Forsqlp, use theread_ndjson()table function instead (qsv sqlp SKIP_INPUT "SELECT * FROM read_ndjson('events.jsonl')"). Forjoinp, convert first withqsv jsonl. (#5126, #5128) -
deps: Polars bumped to upstream rev
4ba28fb(41 commits past py-2.2.0; crates stay 0.55.1). A SQL cast of a string toDATEorTIMESTAMP(CAST,TRY_CAST,::, and one-argumentDATE/TO_DATE) reads only year-first dates such as2024-03-05or2024/3/5(#31082). Before, the format was guessed from the column's first value: a column starting with3/5/2024read it as 2024-05-03 and turned the year-first rows into NULL. NowTRY_CAST('3/5/2024' AS DATE)is NULL andCASTfails; read such dates with a format, e.g.STRPTIME(s, '%d/%m/%Y'). New SQL functionversion()returns the Polars version (#31077). NDJSON reads with an inferred schema fail on a key that first appears after the inference window (#31139); before, the key was silently dropped. Insqlp,read_ndjson()infers from the first 100 rows by default, so passinfer_schema_length => NULLor aschema. qsv's own loading of.jsonl/.ndjsoninputs (e.g.qsv slice events.jsonl) now infers the schema from the whole file, so such keys become columns instead of being dropped or failing the read. The rest is performance and fixes outside qsv's SQL use (Iceberg/Delta sinks, Python). (#5125) -
deps: Polars bumped to upstream rev
08b2814(94 commits past93d31f0; crates stay 0.55.1).08b2814was then tagged py-2.2.0, so qsv now reports that release tag in--version. Somesqlpresults that already worked change:UNNESTof an empty or NULL list returns no rows (#30996); it used to return one NULL row. SoSELECT id, UNNEST(STRING_TO_ARRAY(data, ',')) AS value FROM tnow leaves out the rows whosedatais empty, where it used to keep them with an emptyvalue. It does so without a warning. To keep those rows, unnestSTRING_TO_ARRAY(COALESCE(data, ''), ',')instead.STRPOSandPOSITIONreturn a character position, not a byte offset (#31026):STRPOS('héllo wörld', 'w')is now 7, not 8. Only strings with multi-byte characters before the match change.- An aggregate in
WHEREfails with "aggregate functions are not allowed in WHERE" (#31004). Before,WHERE SUM(v) > 3returned every row; useHAVINGor a subquery. REPLACEwith an empty pattern leaves the string unchanged (#31039); it used to put the replacement between every character.LEFTandRIGHTwith a count of 0 return NULL on NULL input instead of""(#30941).- SQL join keys of a date and a timestamp, or of different time units, are cast to their common type (#31053); such joins used to fail with "datatypes of join keys don't match".
joinpis unchanged: a date key against a datetime key still fails. - The rest is mostly fixes to SQL forms qsv's tests don't use and performance (streaming joins, cumulative aggregations, Parquet writes).
COUNT(*)overUNION ALL ... LIMITstill panics (pola-rs/polars#30523).
(#5111)
-
deps: dropped the direct
filetimedependency. Its mtime calls are deprecated as of filetime 0.2.30, so qsv now reads and sets file times withstd::fs(Metadata::modified,std::fs::set_times), and no index or cache staleness check changes its precision.filetimeis still built throughtar, but no longer in builds without it, such asqsvlite. (#5119) -
deps: dropped the unused direct dependencies
bytemuck(polars,geocodefeatures) andspreadsheet-ods(tofeature); qsv never calls either. Both are still built through polars andcsvs_convert, andspreadsheet-odsstill resolves to our quick-xml-patched fork through[patch.crates-io]. No change in behavior, build time or binary size. (#5110) -
deps:
mluabumped from a git pin (a0ad453, Luau 0.745) to the released 0.12.3, with Luau 0.748 (mlua-sys0.14.0,luau0-src0.24.1);luauandfrequency --stats-filterscripts now run on Luau 0.748, and every mlua crate comes from crates.io again. Upstream highlights: Luau 0.746–0.748 improve native code generation and tiered runtime recompilation, and fix inlined functions clobbering captured values; mlua 0.12.3 fixes several userdata, callback and Lua thread bugs. Behavior change: Luau removed its experimental 64-bitintegerlibrary, so the globalintegerthat qsv 29.0.0 scripts could call (e.g.integer.create) is nownil; use plain numbers, which are exact up to 2^53. The newwhile localsyntax andbuffer.readvectorf32x*functions are still behind experimental Luau flags upstream, so qsv does not enable them. (#5101) -
deps:
polars-readstat-rsbumped from 0.27.0 to 0.27.1 forreadstatandwritestat. Upstream highlights: SAS rows that are flagged, deleted or moved, or stored in META2 pages, are handled as SAS intends, and SPSS portable (.por) numbers are written and read exactly. qsv still builds it from our fork, now upstream 0.27.1 plus only theslicechange needed for the pinned Polars rev (dathere/polars_readstat@43b9b7b); the fork's own.porfix is no longer needed. (#5121) -
deps:
jsonschemabumped from 0.61 to 0.63.1 forvalidate,describegptandprofile. Upstream highlights:patternandpatternPropertiesmatch common shapes (such as^[a-z][a-z0-9-_]{1,63}$or^[1-5](?:[0-9]{2}|XX)$) without a regex engine; a pattern with a large bounded count (e.g..{0,404600}) no longer fails with a regex engine error after--size-limitwas raised to compile it; named backreferences compile, and with--fancy-regex,\d,\w,\sand.follow ECMA 262 in patterns with a backreference or lookaround;$refto another draft's meta-schema resolves, and a subschema's own$schemais honored; and several$dynamicRef/$recursiveRefcycle and error-location fixes. Behavior change: a Draft 4 schema with an emptyenum, or one with equal members such as[0, 0.0], now failsvalidate schema's meta-schema check, and some error messages changed (an emptyenumis now named, andminContains/maxContainsmessages no longer claim no item matched). (#5100) -
deps:
qsv-statsbumped from 0.57.1 to 0.58.0, and ourcsvs_convertfork moved to it too, so qsv builds a single copy.moarstats --advancednow reports agini_coefficientof exactly 0 for a constant column; before, a constant fractional column could get float residue such as2.220446049250313e-16, visible only with a high--round. Otherwise,stats(default and--everything, serial and indexed parallel) andmoarstats(with and without--advanced) were byte-identical on the NYC 311 1M sample and the test fixtures compared. Upstream highlights: on a constant column, kurtosis is now undefined and Gini is exactly 0 (qsv computes its own kurtosis, so only Gini reaches qsv);UnsortedskipsNaN(qsv already filters it out first); soundness fixes into_f64handling and inMinMaxdeserialization; andquartiles_with_selectionis deprecated (qsv doesn't use it). (#5138) -
deps:
csv-nosebumped from 1.4.0 to 2.0.1, the CSV dialect sniffer behindsniffand the input auto-detection all commands use, and ourcsvlensfork (lens) moved to it too, so qsv builds a single copy. The API is unchanged; the major version is for sniffing results that can change on messy files.sniff'sfields,typesandnum_fieldsnow always have the same length (the wider of the header row and the data's most common width), sofieldsgets placeholder names such asfield_13where it used to be shorter. A lone header row whose width differs from the data is now taken as the header, a ragged table is no longer reported as mostly preamble, and a blank row such as,,above the data is no longer taken as the header, sonum_preamble_rows,has_header_rowandfieldscan change on such files. Wide stacked tables no longer resolve to a delimiter that never occurs in the file,§is no longer a delimiter candidate, and a sample cut by a size limit no longer counts the partial last record. On qsv's 90 test fixtures, only one result changed: thefieldspadding above, on a prose file. (#5139) -
deps:
calaminebumped from 0.38 to 0.39 forexcel(anddescribegpt's spreadsheet input). Forexcel: XLSB formula cells whose cached value is an error (such as aVLOOKUPreturning#N/A) are exported with their error code instead of as empty cells, so a column of them is no longer dropped; newer Excel errors such as#SPILL!and#CALC!are recognized, and an unrecognized one no longer fails the whole sheet;--tableno longer panics on tables with unusual header or totals row counts, and no longer loses rows of a table with a totals row; XLSX and XLSB workbooks with an Excel 4.0 macro sheet open; and with--error-format formulaorboth, XLS and XLSB error cells get correct cell references, quoted sheet names and>=/>operators in their formulas, including in filled-down formula ranges. Upstream also fixes many panics, hangs and large allocations on malformed or crafted files, which matters when reading untrusted uploads, but notes it may now reject a malformed file it used to read. (#5140) -
deps:
vizvendors DataTables 3.1.6 (from 3.1.5) and DateTime 2.2.0 (from 2.1.3) for the Data Schematic data viewer. DataTables 3.1.6 fixes a possible XSS through attribute values, but only whenDataTable.ext.escape.attributesistrue, which qsv never sets. DateTime 2.2.0 changes only TypeScript types and npm packaging. Buttons stays at 4.1.3: 4.1.4's popover Tab-focus fix makes Tab from a dropdown in the Advanced Filter popover jump to "Clear All". ColumnControl stays at 2.1.3 and SearchBuilder at 2.1.1. The seven vendored DataTables locales are byte-identical at 3.1.6, so they are unchanged. The gallery is regenerated. (#5144) -
synthesize:orderedrelationship members now keep their own blanks. Before, a chain was blank whole when its anchor was and filled whole otherwise, so a follower blank more often than its anchor (aclosed_dateleft blank while a case is open) was never blank in the output. The fit now counts, in its existing pass over the source, how often each combination of blank members occurs, and each synthetic row draws one. Rows blank in every member stay blank whole, and the members left filled stay in order, a blank one between them included. A member's range is capped only by the later members left filled in that row, so a blank close date doesn't hold back the open dates of open cases. This applies to declared relationships too. A chain whose members are blank in the same rows writes the same bytes as before, while a seeded run of one whose blanks differ writes different rows.--discover-relationshipsno longer requiresordereddates to be blank in the same rows, so it can now find pairs like NYC 311's Created Date ≤ Due Date (Due Date blank in 66% of rows). Saved models hold the blank combinations, so the model format is version 5 and models saved before this change must be fitted again. (#5090, #5091) -
deps: Polars bumped to upstream rev
93d31f0(91 commits past2d9938d; crates stay 0.55.1). Somesqlpresults that already worked change:DELETEnow changes the table for the statements after it (#30869). Before,DELETE FROM t WHERE ...; SELECT COUNT(*) FROM t;still counted the deleted rows.- A NULL length makes
LEFTandSUBSTRINGNULL (#30934);LEFTused to return the whole string.SPLIT_PARTof NULL is NULL (#30936). DESCRIBEreports SQL type names (VARCHAR,BIGINT,BOOLEAN) instead of Polars ones (str,i64,bool).- A repeated unaliased expression no longer fails with "duplicate output name": the repeat is named with a
:1suffix (SELECT v + 1, v + 1gives columnsvandv:1; #30949). - An invalid
STRPTIME/DATEformat string fails with "invalid date/time format" (#30847). - Polars error messages now carry the SQL location and the failed plan as
Attached { ... }wrappers (#30894), so they are longer. - The rest is mostly performance (streaming group-by and join runs, parquet dictionary columns).
COUNT(*)overUNION ALL ... LIMITstill panics (pola-rs/polars#30523). - The bump changed
DataFrame::sliceto take oneSliceargument (#30887), whichpolars-readstat-rs0.27.0 doesn't build against. qsv patches it to a dathere fork with that 6-line fix until a release builds against polars main.
(#5081)
-
synthesize: Float columns now keep their source's decimal places. A synthetic value is rounded to the most places any value of the column shows in the input (statsmax_precision), so a 2-place price column prints106.86instead of106.85678552041723. Values print in their shortest form, so trailing zeros are dropped (12.50prints as12.5). This applies to independent columns and toorderedandcorrelatedrelationship members; in anorderedchain each member is rounded to its own places and still never prints below its predecessor or outside its range. A column whosemax_precisionis above 15 (binary-float noise such as0.30000000000000004) is left unrounded, as is a value too large to round exactly at its column's places (at 15 places, values from about 1.1 up; at 2 places, above about 10^13). Rounded floats can land exactly on real values, which--reportcounts as exact matches. The random draws are the same, so outsideorderedrelationships a seeded run gives the same rows as before with only Float cells rounded; in anorderedchain each member builds on the rounded value before it, so later members, Integer ones included, can differ by a step. Saved models now record each column's decimal places, so the model format is version 3 and models saved before this change must be fitted again. (#5080) -
synthesize: rows are now generated in parallel, in fixed blocks of 8,192 rows. Each block draws from its own random stream, worked out from--seedand the block's position, so a seeded run gives the same output at any--jobssetting.--jobsnow also sets the threads used to generate rows, not only those of the internalstatsandfrequencyruns. On a 16-core machine, 1M rows from a 10k-row source took 142 ms instead of 475 ms, and--jobs 1is as fast as before. Blocks are written in order, and the output held in memory at once is capped at about 256 MiB, so memory does not grow with-nor with core count (1M rows of a 100-column file peaked at 302 MiB on 16 cores, against 104 MiB before). Seeded output is the same at any--jobswhilestatscomputes exact statistics; approximate ones can differ, whether requested through--stats-options(e.g.--quantile-method approx) or switched on bystatsitself, with a warning, when the input won't fit in memory. Behavior change: a given--seednow produces different rows than in 29.0.0. The values follow the same distributions, but they come out in a different sequence, so seeded outputs saved from 29.0.0 or earlier will not be reproduced. (#5069) -
synthesize: the help now warns that synthetic output is not anonymized. It can copy real values and value combinations from the source: fully enumerated columns, enumerated structured-faker columns without--consistent-fakes,jointrelationship tuples, and outliers at the edge of numeric/date ranges. (#5064) -
sqlp: the--try-parsedateshelp now warns that Polars reads slash, dash and dot dates as day-first, so01/05/2024becomes2024-05-01, and thatCAST(col AS DATE)did the same (since #5125, a cast of a string reads only year-first dates). For month-first (US) dates, leave--try-parsedatesoff and useSTRPTIME(col, '%m/%d/%Y')(#5062). -
deps:
datasketchesbumped from 0.6.0 to 0.7.0 for the approximatestatsandfrequencyestimators (#5099). None of its API renames touch qsv's calls, and approximatestats --everythingandfrequency --sketch-method frequent_itemsoutput is byte-identical to 0.6.0. -
deps:
flexi_loggerbumped from 0.31.10 to 0.32.0 (#5098). -
geocode: the default index is rebuilt from current Geonames data, so some place labels differ from 29.0.0. For example,Wexfordnow suggests Wexford, Allegheny County, Pennsylvania instead of Wexford, County Wexford, Ireland, and Toronto has no admin2 (county-level) name again, so%city-admin2-admin1gives "Toronto, , Ontario".vizmaps that geocode their points pick up the same changes in hover labels and spatial-extent captions (the Pittsburgh 311 gallery map's extent now names Allegheny County). To keep 29.0.0's labels, load that release's index withqsv geocode index-load; it loads in 30.0.0.
CI/Actions
- The Polars-pinned nightly workflow builds again (#5058). Its
nightly-2026-09-01toolchain predates the stabilization ofstr::trim_prefix/trim_suffix, which qsv uses since the Rust 1.100 MSRV, so it had failed every night since 2026-11-13. Thenightlycargo feature now enablestrim_prefix_suffix; stable builds are unaffected. - The
qsv-nightlyx86_64 builds forcecurve25519-dalek's serial backend (--cfg curve25519_dalek_backend="serial"), so they never use the AVX-512 backend that RUSTSEC-2026-0620 affects.cargo auditignores that advisory with the reasoning in.cargo/audit.toml, along with the unreachable cookie advisory RUSTSEC-2026-0594 and the informational chrono, chrono-tz and humantime "unmaintained" notices. Two ignore entries that no longer matchedCargo.lock(RUSTSEC-2026-0173, RUSTSEC-2025-0134) were removed.
Full Changelog: 29.0.0...30.0.0