2.3 KiB
This is a relatively minor release, containing feature requests.
Features:
-
There is a new DSL function mapexcept which returns a copy of the argument with specified key(s), if any, unset. Likewise, mapselect returns a copy of the argument with only specified key(s), if any, set. This resolves https://github.com/johnkerl/miller/issues/137.
-
xxx min/max functions and stats1/merge-fields min/max/percentile mix int and string. esp. string-only order statistics. doclink for mixed case. interpolation obv nonsensical.
-
A new -u option for count-distinct allows unlashed counts for multiple field names. For example, with
-f a,band without-u,count-distinctcomputes counts for distinct pairs ofaandbfield values. With-f a,band with-u, it computes counts for distinctafield values and counts for distinctbfield values separately. -
xxx
./configurevs.autoreconf -fiv1st, and which issue is resolved by this. -
xxx UTF-8 BOM strip for CSV files; resolves xxx
-
For
putandfilterwith-S, program literals such as the6in$x = 6were being parsed as strings. This is not sensible, since the-Soption forputandfilteris intended to suppress numeric conversion of record data, not program literals. To get string6one may use$x = "6".
Documentation:
-
Suppose you have counters in a SQL database with different values in successive queries. A new cookbook example shows how to compute differences between successive queries.
-
Another new cookbook example shows how to compute interquartile ranges
Bugfixes:
-
CRLF line-endings were not being correctly autodetected when I/O formats were specified using --c2j et al.
-
Integer division by zero was causing a fatal runtime exception, rather than computing inf or nan as in the floating-point case.