Skip to content

30.0.0

Pre-release
Pre-release

Choose a tag to compare

@jqnatividad jqnatividad released this 30 Nov 04:48

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.

  • synthesize is 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 a joint tuple, 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> finds joint, correlated and ordered column groups in the source and writes them out for review (#5085). correlated groups can now include categorical columns (#5093).
    • Generate once, anywhere:
      • --save-model/--model fit a model once and generate from it without the source (#5074).
      • --shard <k/N> splits one seeded dataset across machines (#5073).
      • --rows-per-file splits the output into files (#5077).
      • --format jsonl|parquet writes typed output (#5075).
    • Rows are generated in parallel, 3.3x faster on 16 cores, and a seed gives the same rows at any --jobs while stats computes exact statistics (approximate ones, requested through --stats-options or 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: timebucketp buckets time-series data into time windows over a date, datetime or integer column. Windows can be fixed or overlapping (--every 15m --period 1h), grouped --by a column, and aggregated with several functions at once. --rolling gives look-back windows instead, and --fill-gaps fills empty windows. It's powered by Polars (#5112).
  • luau is up to 5.3x faster. A row's values become Lua strings only when a script reads them, so luau filter "Borough == 'BROOKLYN'" on 1M rows × 41 columns takes 0.84 s instead of 4.5 s (#5133, #5134, #5135).
  • sqlp can change tables, not just query them, with the newer Polars. INSERT INTO ... VALUES, UPDATE ... SET and COPY <table> FROM '<file>' change a registered table for the statements after them in a .sql script (never the input file). It also adds PIVOT/UNPIVOT, CREATE MACRO and COPY (<query>) TO '<file>'; QSV_SQL_DISABLE_FILE_WRITES turns the last one off (#5081, #5111).
  • excel:
    • --fill-merged repeats a merged region's value in every cell it covers (#5141).
    • --table no longer drops the table's first data row (#5140).
    • calamine 0.39 exports XLSB error cells and opens more workbooks (#5140).
  • validate and stats read 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, via self_update's signature check) doesn't affect the stable-built release binaries. The qsv-nightly x86_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 stats and validate (#4610), which became --quote, --escape and --no-quoting.
  • @sronix for reporting that writestat wrote very small numbers to .xpt as missing and to .por as 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 --table exports 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). --nulls did 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.
  • sqlp and joinp refuse .jsonl/.ndjson inputs with a usage error instead of reading them as CSV (#5128). In sqlp use read_ndjson(); for joinp, convert with qsv jsonl first.
  • sqlp: some results change with the Polars bumps. See the Polars entries under Changed for the full list:
    • A cast of a string to DATE or TIMESTAMP reads only year-first dates; CAST('3/5/2024' AS DATE) now fails (pola-rs/polars#31082). Use STRPTIME with a format.
    • UNNEST of an empty or NULL list returns no rows, STRPOS/POSITION count characters rather than bytes, and an aggregate in WHERE fails instead of returning every row.
    • DELETE changes the table for the statements after it, a NULL length makes LEFT and SUBSTRING NULL, DESCRIBE reports SQL type names (VARCHAR, BIGINT), and a repeated unaliased expression is named with a :1 suffix.
    • read_ndjson() with an inferred schema fails on a key first seen after the inference window, instead of dropping it (pola-rs/polars#31139).
  • synthesize output changes. See Added and Changed for the details:
    • --min-count defaults to 5, so enumerated values and joint tuples 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 1 turns 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 --seed produces 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 ordered groups over dates in other formats now apply (#5066, #5085).
  • luau: the global integer library 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 enumerate col or use _G/getfenv still get eager binding, and QSV_LUAU_EAGER_BINDING=true forces it.
  • validate schema: a Draft 4 schema with an empty enum, or with equal members such as [0, 0.0], fails the meta-schema check, and some error messages changed (jsonschema 0.63.1, #5100).
  • sniff results can change on messy files (csv-nose 2.0.1, #5139). fields, types and num_fields always have the same length, and header and preamble detection changed for ragged tables and blank top rows.
  • stats: NaN cells are skipped by a Float column's min, max, range, sort_order and sortiness (#5137). A leading NaN no longer pins min and max at NaN.

Added

  • excel --fill-merged copies 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, --range and --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 to qsv safenames if you need unique names. With --error-format formula or both, 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.sh 10.3.0: timebucketp benchmarks (#5145). Six benchmarks bucket the 1M-row NYC 311 sample by Created Date: timebucketp_daily (--every 1d), timebucketp_weekly_by (weeks from Monday, --by Borough), timebucketp_monthly_aggs (len, mean, max and a median), timebucketp_overlapping (1-hour windows every 15 minutes), timebucketp_fill_gaps (hourly, with the empty hours) and timebucketp_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 --verify check: the count column 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 no timebucketp (before 30.0.0).
  • scripts/benchmarks.sh 10.2.0: matched luau vs py benchmarks (#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) and luau_distance/py_distance (parse two floats, square root, format). Two new luau benchmarks pair with existing py ones: luau_filter_col with py_filter (the same col['Location'] == '' expression) and luau_dateformat with py_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_dateformat computes one column where luau_multi computes three, and py_filter reads col['Location'] where luau_filter reads the Location global. Both sides of every pair run on the Python-enabled binary (qsv_py_bin), so the PGO-built qsv_bin doesn't skew them, and they only run when it is available. They time the whole command: py also builds a dict of every column for each row, while luau binds 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 with search.
  • 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; --rolling instead gives each row a trailing (index - period, index] window. --by computes windows per group, and --agg takes several func:column aggregations at once (first, last, sum, min, max, mean, median, quantile@

    , len), output as <column>_<func>. --fill-gaps also 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 as 01/03/2024 are read month-first like the rest of qsv (Polars alone reads them day-first), or day-first with QSV_PREFER_DMY; --date-format sets an explicit index format. An index that mixes dates and datetimes, as datefmt writes 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-format is given (chrono would read 10/05/24 as the year 10). --sorted skips the sort for pre-sorted input, but still verifies the order: Polars' lazy group_by_dynamic does not check it without --by and silently builds wrong windows from unsorted input. Enables Polars' dynamic_group_by feature (#5112).

  • sqlp: new SQL from the Polars bump to 08b2814 (all failed on 93d31f0): INSERT INTO <table> VALUES ... and UPDATE <table> SET ... on registered tables (#30958), which change the table for the statements after them in a .sql script 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 functions REGEXP_SUBSTR, JSON_EXTRACT_PATH and JSON_EXTRACT_PATH_TEXT (#31003). RANDOM() in LIMIT/OFFSET is drawn once, so it no longer fails (#30944). QSV_SQL_DISABLE_FILE_WRITES still refuses COPY ... TO; it doesn't block INSERT, UPDATE or COPY ... FROM, which write no files (SQL could already read any file through read_csv()). (#5111)
  • validate, stats: new --quote, --escape and --no-quoting options 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-ragged quarantined good rows as ragged, and stats failed with "found record with 4 fields". validate still writes its .valid/.invalid split files with standard " quoting. Under any non-default quoting, neither an index nor Polars' row count is used, since both assume " quoting, so stats runs 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 Schema format now 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 in validate 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 own currency. A name close to none of them gets no hint, and the warning is otherwise unchanged. (#5100)
  • synthesize: correlated relationships 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-count times. 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. A joint group 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 plain correlated group and the joint groups it took in resolve on their own (or the run aborts under --strict-relationships). --discover-relationships proposes such members at a correlation ratio of 0.7 or more: on NYC311-500.csv, Borough joins Incident Zip, BBL, both State Plane coordinates, Latitude and Longitude in 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; the joint columns its strata take in don't count toward it. Groups without categorical members write the same bytes as before, and save the same model. #5093
  • synthesize: new --discover-relationships <file> finds joint, correlated and ordered groups 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-type dictionary, or {"fields": []} without one) with the groups appended to its relationships, so a rerun with --dictionary <file> writes the same bytes, as does a --model saved from the run. Relationships the dictionary declares win, and discovery leaves their columns alone. Pairs score by bias-corrected Cramér's V for joint (raw V is near 1 for any many-valued column) and by Spearman's rho for correlated (numeric columns) and ordered (dates), at 0.7 or more. Only columns that would sample an enumerated pool of 2 to 50 values can join a joint group, and it must keep 80% of rows in tuples seen at least --min-count times. An ordered pair 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 --target are 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-relationships or --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 larger amount, the synthetic positives' mean amount was 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. stats and frequency run once more per class, on a temporary copy of the input split by class. A class seen in fewer than --min-count rows 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-fakes keeps 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-count of 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 a joint one 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-relationships applies 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 a QSV_COMMENT_CHAR value can't hide a row. Output is the same bytes at any --jobs, from --model, and across --shard and --rows-per-file; without --target it 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. --target can'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 of ordered relationships: 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 at stats --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-count of them (at worst, the quartiles). Percentile edges are read unrounded (stats --round 9999, unless --stats-options sets --round), so small-magnitude floats keep distinct edges. The model format is unchanged. --quantiles can't be combined with --model, and with a value other than 4 --stats-options may not include --percentiles or --percentile-list. (#5078)
  • synthesize: new --rows-per-file <n> splits the output into files of <n> rows. The --output name must contain {}, which is replaced by the zero-based row number of each file's first row, as in qsv split, zero-padded so the names sort in order (-o synthetic_{}.csv writes synthetic_000.csv, synthetic_250.csv, …). The files hold the same rows as a single-file run, in order, at any --jobs and from a --model run, and join the same way as --shard slices; 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 Parquet Date/Datetime (JSONL writes them as strings), and empty values as null. A true/false column is written as booleans only when stats types 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 its stats type 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 --jobs and from a --model run; 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 --output and the polars feature. 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 --model run with the same --rows and --seed writes the same bytes as the run that saved the model, and slices made with --shard from 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 --locale are ignored. serde_json's float_roundtrip feature 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 --rows asks 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 with qsv cat rows are 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-type without --dictionary is refused, since each slice would make its own LLM call), and none may hit the automatic switch of stats or frequency to approximate estimators for lack of memory. synthesize now passes on the warnings of its internal stats and frequency runs, which it used to discard, so that switch is visible. With --report, row counts and matches are for the slice, and the report records the shard. (#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-count used, how many synthetic rows exactly match a source row (and the rate), and the values and joint tuples --min-count dropped per column or group. Numbers and dates are compared by value, so 2020-01-05 matches a source 01/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-count now also trims numeric and date/datetime ranges, and the gaps learned for ordered relationships. 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. ordered followers are clamped into their own trimmed range, and an ordered pair 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 real joint relationship 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 1 turns this suppression off (it does not reproduce 29.0.0's rows; see Breaking Changes). (#5066)
  • sqlp: new SQL from the Polars bump to 93d31f0 (all failed on 2d9938d): PIVOT and UNPIVOT (#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 a SELECT alias later in the same SELECT (#30819); RANGE window frames with an offset, e.g. RANGE BETWEEN 3 PRECEDING AND CURRENT ROW (#30849; qsv now enables polars' rolling_window_by feature for it); CAST to CATEGORICAL (#30801); E'...' escape strings (#30845); and the functions MAKE_DATE, CHR, DATE_DIFF, TYPEOF, TO_CHAR, TO_DATE, TO_TIMESTAMP, TRY_STRPTIME, REGEXP_MATCHES, PRINTF and FORMAT (FORMAT takes {} placeholders, PRINTF % ones). String functions now accept a NULL literal (#30848), so UPPER(NULL) is NULL instead of an error. (#5081)
  • sqlp, joinp --sql-filter, profile, scoresql: new QSV_SQL_DISABLE_FILE_WRITES environment variable. When set, Polars SQL's COPY ... TO fails with "writing files is disabled by QSV_SQL_DISABLE_FILE_WRITES" and writes nothing; reading files and --output are unaffected. Without it, COPY ... TO can write any path the query names. The qsv MCP server sets it in plugin mode (Cowork and the Claude Code plugin). (#5081)

Fixed

  • excel no longer empties an existing --output file 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-merged on 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, J and S (JSON, pretty JSON and short JSON) now write to --output too: they printed to stdout and left the --output file empty. (#5142, #5143)
  • excel --table with --error-format formula or both failed with Worksheet '' 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 --range with --error-format formula or both looked 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 reported cannot get formula, or the formula of an unrelated cell to the left. (#5140)
  • Behavior change: excel --table no 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: NaN cells are now skipped by a Float column's min, max, range, sort_order and sortiness, as they already were by the mean, sum and quantiles (#5137). A leading NaN pinned both min and max at NaN for the whole column (NaN,1,2 reported min=NaN max=NaN), and an indexed parallel run could differ by chunking. schema omitted minimum/maximum for such a column; it now infers them from the numeric values. An all-NaN column now has empty min/max/range/sort_order (it reported NaN, NaN and Unsorted), 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" and inc(); 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 map with string.gsub 5.4 s → 4.2 s) (#5133).
  • Help docs (docs/help/*.md): <placeholder> text such as <file>, <column> or quantile@<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-by values were missing from its help doc, and its --label values 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.json still decides the columns. The sqlp help also notes that only a query selecting a late read_ndjson() key fails, and that a .pschema.json can type a column as a date before CAST runs. (#5127)
  • pivotp: when every column was a pivot or --index column, the default --values (all remaining columns) was empty, and the pivot failed with a raw Polars error ("pivot called without values columns"). pivotp region --index sex now counts the rows of each cell, as --values region --agg len already did. Any aggregation other than len (the default here) stops with an error asking for --values. Fixes #5122. (#5124)
  • pivotp: a generated pivot column could take the name of an --index column, 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), so readstat --sentinels-as output, where name sits next to name_null, hit this when name_null was the --index, name a 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 × c and a × b_c) still stop the pivot, now with an error suggesting --col-separator or --values. Fixes #5123. (#5124)
  • joinp: --nulls did the opposite of its help for text keys. Empty text join keys matched without --nulls and stopped matching with it, and empty numeric keys never matched. In the standard joins (not cross, non-equi or asof), --nulls now 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, so 000 becomes 0 and still matches 0, but no longer becomes empty and matches an empty key. The --ignore-errors help 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 --nulls is given. (#5116)
  • sqlp, joinp, pivotp: the --ignore-errors help said rows that can't be parsed are skipped (in sqlp and joinp, the whole batch around them). Polars instead reads such a value as empty (null) and keeps its row, so COUNT(*) and len still 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, or stats --quote/--escape/--no-quoting) was reused anyway, since these commands read the cache files directly and checked only their age. moarstats, and pragmastat when it appends to the stats CSV, extended such a baseline with statistics of another reading, e.g. a column's max of 4 where the input as read holds a 9. pragmastat --standalone skipped 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, or pragmastat --standalone ignores 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, and writestat checked only the ±7.2e75 end of the range. Such numbers are now refused like the large ones, and with --lossy the 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 .por writer and reader fixes come from polars-readstat-rs 0.27.1 (jrothbaum/polars_readstat@ace0caa), after our fix was offered upstream in jrothbaum/polars_readstat#72. Fixes #5094. (#5103, #5121)
  • synthesize: an ordered relationship read its source dates only as RFC 3339 or YYYY-MM-DD, so on columns stats types 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 parser stats uses, honoring --prefer-dmy/QSV_PREFER_DMY, by ordered groups 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 with QSV_NO_HEADERS when the first row held one. Every pass now reads raw bytes, and invalid bytes are written as U+FFFD (�), as stats already reports them, and --report keys source cells the same way, so a copied row still counts as an exact match. A non-UTF8 header is still refused by stats. (#5084)
  • synthesize: under QSV_NO_HEADERS, stats numbers columns from 0 and frequency from 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 the stats output, so --stats-options that selected or reordered columns (e.g. --select city,zip) made joint, ordered and correlated groups 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-options may no longer include --select/-s or --weight, which change which columns stats reports; run qsv select on 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-count times), 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-fakes to keep fakes. (#5066)
  • joinp: with a key transformation (-i, -z or -N) and --coalesce, right-only rows of a --full or --right join 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 as id and id_right, it dropped a key. Now the left key is filled from its same-named right key before --sql-filter runs, and only that key's right copy is dropped, in joins that output right columns. (#5117)
  • joinp: with a key transformation (-i, -z or -N), the temporary transformed key columns were still in the join result when --sql-filter ran, so a positional ORDER BY or GROUP BY could 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 as status-transformed. Now the temporary columns are dropped by their exact names before --sql-filter runs. (#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 into col and the column globals. On NYC 311 1M (41 columns) that makes luau 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-column map 3.3x faster (4.9 s → 1.5 s), and a ten-column map 1.5x faster. Output is unchanged. A script that could tell the difference keeps the previous eager binding: col is filled eagerly unless every use of col in the BEGIN, MAIN and END scripts is an index (col.name, col[...]), so pairs(col), #col, rawget(col, ...) or passing col to a function see every column; and both are bound eagerly when a script uses _G, getfenv, setfenv or require (other than the LuaDate library qsv writes for require "./date"), or a column is named col, _IDX, _INDEX, _ROWCOUNT, _LASTROW or 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 new QSV_LUAU_EAGER_BINDING environment variable to true always binds eagerly, for any script those checks miss. qsv_loadcsv, qsv_loadjson and qsv_register_lookup now 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 (and col) are created once instead of on every row, cutting another 16–22% of instructions on NYC 311 1M after #5133 (e.g. luau filter 5.7 s → 4.4 s, luau map with column globals 6.0 s → 4.8 s) (#5134).

  • sqlp, joinp: a .jsonl/.ndjson input 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's COUNT(*) came out one record short, and joinp failed with a confusing "unable to find column". For sqlp, use the read_ndjson() table function instead (qsv sqlp SKIP_INPUT "SELECT * FROM read_ndjson('events.jsonl')"). For joinp, convert first with qsv 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 to DATE or TIMESTAMP (CAST, TRY_CAST, ::, and one-argument DATE/TO_DATE) reads only year-first dates such as 2024-03-05 or 2024/3/5 (#31082). Before, the format was guessed from the column's first value: a column starting with 3/5/2024 read it as 2024-05-03 and turned the year-first rows into NULL. Now TRY_CAST('3/5/2024' AS DATE) is NULL and CAST fails; read such dates with a format, e.g. STRPTIME(s, '%d/%m/%Y'). New SQL function version() 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. In sqlp, read_ndjson() infers from the first 100 rows by default, so pass infer_schema_length => NULL or a schema. qsv's own loading of .jsonl/.ndjson inputs (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 past 93d31f0; crates stay 0.55.1). 08b2814 was then tagged py-2.2.0, so qsv now reports that release tag in --version. Some sqlp results that already worked change:

    • UNNEST of an empty or NULL list returns no rows (#30996); it used to return one NULL row. So SELECT id, UNNEST(STRING_TO_ARRAY(data, ',')) AS value FROM t now leaves out the rows whose data is empty, where it used to keep them with an empty value. It does so without a warning. To keep those rows, unnest STRING_TO_ARRAY(COALESCE(data, ''), ',') instead.
    • STRPOS and POSITION return 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 WHERE fails with "aggregate functions are not allowed in WHERE" (#31004). Before, WHERE SUM(v) > 3 returned every row; use HAVING or a subquery.
    • REPLACE with an empty pattern leaves the string unchanged (#31039); it used to put the replacement between every character. LEFT and RIGHT with 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". joinp is 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(*) over UNION ALL ... LIMIT still panics (pola-rs/polars#30523).

    (#5111)

  • deps: dropped the direct filetime dependency. Its mtime calls are deprecated as of filetime 0.2.30, so qsv now reads and sets file times with std::fs (Metadata::modified, std::fs::set_times), and no index or cache staleness check changes its precision. filetime is still built through tar, but no longer in builds without it, such as qsvlite. (#5119)

  • deps: dropped the unused direct dependencies bytemuck (polars, geocode features) and spreadsheet-ods (to feature); qsv never calls either. Both are still built through polars and csvs_convert, and spreadsheet-ods still resolves to our quick-xml-patched fork through [patch.crates-io]. No change in behavior, build time or binary size. (#5110)

  • deps: mlua bumped from a git pin (a0ad453, Luau 0.745) to the released 0.12.3, with Luau 0.748 (mlua-sys 0.14.0, luau0-src 0.24.1); luau and frequency --stats-filter scripts 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-bit integer library, so the global integer that qsv 29.0.0 scripts could call (e.g. integer.create) is now nil; use plain numbers, which are exact up to 2^53. The new while local syntax and buffer.readvectorf32x* functions are still behind experimental Luau flags upstream, so qsv does not enable them. (#5101)

  • deps: polars-readstat-rs bumped from 0.27.0 to 0.27.1 for readstat and writestat. 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 the slice change needed for the pinned Polars rev (dathere/polars_readstat@43b9b7b); the fork's own .por fix is no longer needed. (#5121)

  • deps: jsonschema bumped from 0.61 to 0.63.1 for validate, describegpt and profile. Upstream highlights: pattern and patternProperties match 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-limit was raised to compile it; named backreferences compile, and with --fancy-regex, \d, \w, \s and . follow ECMA 262 in patterns with a backreference or lookaround; $ref to another draft's meta-schema resolves, and a subschema's own $schema is honored; and several $dynamicRef/$recursiveRef cycle and error-location fixes. Behavior change: a Draft 4 schema with an empty enum, or one with equal members such as [0, 0.0], now fails validate schema's meta-schema check, and some error messages changed (an empty enum is now named, and minContains/maxContains messages no longer claim no item matched). (#5100)

  • deps: qsv-stats bumped from 0.57.1 to 0.58.0, and our csvs_convert fork moved to it too, so qsv builds a single copy. moarstats --advanced now reports a gini_coefficient of exactly 0 for a constant column; before, a constant fractional column could get float residue such as 2.220446049250313e-16, visible only with a high --round. Otherwise, stats (default and --everything, serial and indexed parallel) and moarstats (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); Unsorted skips NaN (qsv already filters it out first); soundness fixes in to_f64 handling and in MinMax deserialization; and quartiles_with_selection is deprecated (qsv doesn't use it). (#5138)

  • deps: csv-nose bumped from 1.4.0 to 2.0.1, the CSV dialect sniffer behind sniff and the input auto-detection all commands use, and our csvlens fork (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's fields, types and num_fields now always have the same length (the wider of the header row and the data's most common width), so fields gets placeholder names such as field_13 where 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, so num_preamble_rows, has_header_row and fields can 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: the fields padding above, on a prose file. (#5139)

  • deps: calamine bumped from 0.38 to 0.39 for excel (and describegpt's spreadsheet input). For excel: XLSB formula cells whose cached value is an error (such as a VLOOKUP returning #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; --table no 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 formula or both, 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: viz vendors 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 when DataTable.ext.escape.attributes is true, 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: ordered relationship 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 (a closed_date left 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-relationships no longer requires ordered dates 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 past 2d9938d; crates stay 0.55.1). Some sqlp results that already worked change:

    • DELETE now 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 LEFT and SUBSTRING NULL (#30934); LEFT used to return the whole string. SPLIT_PART of NULL is NULL (#30936).
    • DESCRIBE reports 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 :1 suffix (SELECT v + 1, v + 1 gives columns v and v:1; #30949).
    • An invalid STRPTIME/DATE format 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(*) over UNION ALL ... LIMIT still panics (pola-rs/polars#30523).
    • The bump changed DataFrame::slice to take one Slice argument (#30887), which polars-readstat-rs 0.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 (stats max_precision), so a 2-place price column prints 106.86 instead of 106.85678552041723. Values print in their shortest form, so trailing zeros are dropped (12.50 prints as 12.5). This applies to independent columns and to ordered and correlated relationship members; in an ordered chain each member is rounded to its own places and still never prints below its predecessor or outside its range. A column whose max_precision is above 15 (binary-float noise such as 0.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 --report counts as exact matches. The random draws are the same, so outside ordered relationships a seeded run gives the same rows as before with only Float cells rounded; in an ordered chain 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 --seed and the block's position, so a seeded run gives the same output at any --jobs setting. --jobs now also sets the threads used to generate rows, not only those of the internal stats and frequency runs. On a 16-core machine, 1M rows from a 10k-row source took 142 ms instead of 475 ms, and --jobs 1 is 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 -n or 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 --jobs while stats computes exact statistics; approximate ones can differ, whether requested through --stats-options (e.g. --quantile-method approx) or switched on by stats itself, with a warning, when the input won't fit in memory. Behavior change: a given --seed now 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, joint relationship tuples, and outliers at the edge of numeric/date ranges. (#5064)

  • sqlp: the --try-parsedates help now warns that Polars reads slash, dash and dot dates as day-first, so 01/05/2024 becomes 2024-05-01, and that CAST(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-parsedates off and use STRPTIME(col, '%m/%d/%Y') (#5062).

  • deps: datasketches bumped from 0.6.0 to 0.7.0 for the approximate stats and frequency estimators (#5099). None of its API renames touch qsv's calls, and approximate stats --everything and frequency --sketch-method frequent_items output is byte-identical to 0.6.0.

  • deps: flexi_logger bumped 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, Wexford now suggests Wexford, Allegheny County, Pennsylvania instead of Wexford, County Wexford, Ireland, and Toronto has no admin2 (county-level) name again, so %city-admin2-admin1 gives "Toronto, , Ontario". viz maps 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 with qsv geocode index-load; it loads in 30.0.0.

CI/Actions

  • The Polars-pinned nightly workflow builds again (#5058). Its nightly-2026-09-01 toolchain predates the stabilization of str::trim_prefix/trim_suffix, which qsv uses since the Rust 1.100 MSRV, so it had failed every night since 2026-11-13. The nightly cargo feature now enables trim_prefix_suffix; stable builds are unaffected.
  • The qsv-nightly x86_64 builds force curve25519-dalek's serial backend (--cfg curve25519_dalek_backend="serial"), so they never use the AVX-512 backend that RUSTSEC-2026-0620 affects. cargo audit ignores 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 matched Cargo.lock (RUSTSEC-2026-0173, RUSTSEC-2025-0134) were removed.

Full Changelog: 29.0.0...30.0.0