Skip to content

kdb+ 3.3 Release Notes

This page details the latest features and improvements released to kdb+ 3.3.

2017.03.13

Fixes and improvements

  • exported ee and m9 for c-api.

2017.03.01

Fixes and improvements

  • select ... by time.minute could crash or wsful if time was sorted and of type datetime, timestamp or timespan. e.g.

    q)select by time.minute from([]time:`s#2#.z.p)
  • ipc msg validation could crash under some rare scenarios if given a malformed msg.

  • hopen port now checks that port is within 0..65535. e.g.

    q)hopen 0N / domain error
  • processing an http post with incorrect Content-length field could cause a crash. e.g.

    q)system"\p 14999";.z.pp:{0N!x 0} / server process
    q)`:http://127.0.0.1:14999"POST / HTTP/1.0\r\nContent-length: 150\r\n\r\n",251?.Q.a / client process
  • q.k - .z.ph now returns HTTP/1.1 400 Bad Request response for uncached paging request. e.g.

    curl -i --raw "http://127.0.0.1:5000/?\[=1"

2016.12.23

Fixes and improvements

  • keyedTable%atom was throwing 'nyi since v3.3 2016.09.26. e.g.

    q)([a:`a`b`c]b:0 .1 .2)~([a:`a`b`c]b:til 3)%10

2016.12.22

Fixes and improvements

  • select with a group by sorted time was returning badly formed result (with potential crash) if it was not the only grouped column. e.g.

    q)([minute:`p#00:00 01:00;s:`a`b];p:3 4f)~select p:first p by time.minute,s from([]time:`s#0 1 1t;s:`a`b`b;p:3 4 5f)
  • q.k - .Q.fc was returning additional empties when count[rhs]<number of slave threads, since v3.3 2015.02.12. e.g.

    q).Q.fc[0N!]til 3; / start with q -s 4
  • triadic (and above) scan leaked memory when its result is empty, since v1.0. e.g.

    q){0N!.Q.w[]`used;value x;0N!.Q.w[]`used;}"{x+y+z}\\[0 1;();()]"

2016.12.08

Fixes and improvements

  • .Q.gc[] leaked 16 bytes on each invocation when slave threads are in use.

    q).Q.gc[];0N!.Q.w[]`used;do[100;.Q.gc[]];0N!.Q.w[]`used;

2016.09.26

Fixes and improvements

  • q.k re-released 2016.10.28 to correct map-reduce avg fn on partitioned table using missing varable `x. e.g.

    q)select avg p by sym from t
  • J div j and F%f had precision errors, since v3.3 2016.09.01. e.g.

    q)all(enlist[30]~(1#3000000000000)div 100000000000;enlist[0f]~-30+enlist[3000000000000.]%100000000000.)
  • divide on temporal types was not returning float. e.g.

    q){(1#x;x)}[0.00010230141846745273]~{((1#x)%y;x%y)}[2016.09.21;16:35:05.917]
  • .q.k the count in avg was not ignoring nulls during map/reduce for a partitioned table. e.g

    q)t:([]1 2 0N 0N);.Q.dpft[`:hdb;;`x;`t]each .z.d-til 2;system"l hdb";
    q)(exec distinct x from select avg x by date from t)~exec x from select avg x from t
  • distributed peach was causing an error for .Q.gc[]. e.g.

    q).z.pd:`u#0#0;.Q.gc[]
  • `hh$x was erroneously using mod 60 instead of 24. e.g.

    q)(5#12i)~`hh$12:00+0D+til 5

2016.09.01

Fixes and improvements

  • div (and hence xbar) was incorrect for 0N of int based types, and for negative divisors. e.g.

    q)(0Nt div 1;-2=10 div -5)

2016.07.19

Fixes and improvements

  • added single random permutation for 0N?x, which was either throwing 'g0, entering an infitine loop or crashing. e.g.

    q)0N?10
  • select was erroneously throwing 'type for queries on parted column, then <,>,<=,>= on time column if time column was of timestamp type. e.g.

    q)select from([]sym:`p#`a`a`b;time:"p"$0)where sym=`a,time<=15:50:59
  • extend a select optimisation to include npz types and >= <=. Conditions are column is called "time",

    with constraint >,<,>= or <= where 'time' is of type time,datetime,timespan,timestamp and has attr `s, and the RHS of op evaluates to an atom. e.g.
    q)n:5000000;t:([] time:`s#`timespan$til n;sym:n?`3);system"t:10 select count i from t where time <= 0D00:00:00.2"

2016.07.11

Fixes and improvements

  • block erroneous update of keyed table leaving key columns of a different length to that of the value columns (it could crash later). e.g.

    q)update a:til 100 from([a:til 5];b:(`a;`b`c;`d;`e;`f))
  • using empty nested data types on disk could seg fault with some ops. e.g.

    q).Q.Xf["C";`:a];`:b set get`:a
  • 0w in 0w and -0w in -0w were not matching correctly. e.g.

    q)11b~(0w in 0w;-0w in -0w)
  • setting p attribute on vector of floats which contained more than one null was throwing u-fail, since 2016.05.24. e.g.

    q)`p#0 0n 0n
  • p attr info for datetime vectors could be incorrect if values within comparison tolerance, resulting in inconsistent data or a crash, since v1.0. e.g.

    q){(~). distinct each(`p#x;x)}@"z"$-0.057692307692307709 -0.057692307692307654 / fails test
    q)group`p#"z"$-0.057692307692307709 -0.057692307692307654 / crash
  • restrict assumption of time being sorted within a block to sym column with s or p attr only. e.g.

    q)select from flip`date`time`currency!(`s#2016.04.05 2016.04.05;08:56:50.000 07:39:24.000;`GBp`GBp)where date=2016.04.05,time<07:59:00

2016.05.24

Fixes and improvements

  • Fixed width parsing using 0: and 1: were not ignoring double quotes inside symbol fields, since 3.3 2015.06.09. e.g.

    q)(3#`hello;3#`$"wor\"ld")~("SS";6 6)0:3#enlist"hello wor\"ld"
  • p attr info for float vectors could be incorrect if values within comparison tolerance, resulting in inconsistent data or a crash, since v1.0. e.g.

    q){(~). distinct each(`p#x;x)}@-0.057692307692307709 -0.057692307692307654 / fails test
    q)group`p#-0.057692307692307709 -0.057692307692307654 / crash
  • trying to serialize functions loaded from shared libraries could crash. e.g.

    q)-8!(`a;f)!0 1 / where f is a function bound from a shared library

2016.03.14

Fixes and improvements

  • bin was not matching 0n at offset 0, since 3.2 2014.07.19. e.g.

    q)0 1 2 3~0n 1 2 3 bin 0n 1 2 3

2016.03.08

Fixes and improvements

  • `g attr data could be incorrect from appending an object with a g attr to an empty `g#(), leaking memory. e.g.

    q)do[1000;a:`g#100000#`a`b;b:`g#();b,:a;delete a,b from`.] / leaked memory
    q)a:`g#();b:`g#99#til 3;a,:b;delete a,b from`.;3 4 5~distinct `g#99#3+til 3 / incorrect index data
  • `g attr data was not updated for lists when a single element was amended, now drops g attr. e.g.

    q)~/[distinct each(`#;::)@'2#enlist@[`g#(1 2;3 4;1 2);1;:;5 6]]

2016.02.22

Fixes and improvements

  • Update from dict could crash instead of throwing mismatch. e.g.

    q)update a:@[a;`d;:;`e]from(enlist`a)!enlist(enlist`b)!enlist`c

2016.02.02

Fixes and improvements

  • Saving mappable data could have stored an incorrect ref count in the header,

    causing a memory leak later when reading, since 2016.01.27. Ref counts can be checked with
    q){$[(0xfe<>x 0)|" ">(x:read1 x)1;0b;any x$[" "=x 1;4;4+8 xbar 5+x?0x00]+til 4]}`:filename
    If this returns 1b, you should use this release to load and re-save your file.

2016.01.27

Fixes and improvements

  • continously throwing 'close for http posts where multiple reads were necessary and connection was closed by client before all content received.

  • bin with lhs of table with `g#() could cause a crash, since 3.2. e.g.

    q)n:1000000;([]`g#();0)bin([]n?`3;n#0)
  • writing the same object to multiple files concurrently could cause a crash; e.g.

    q){[x;y](hsym`$string y)set x}[0 1]peach til 100;
  • .z.w was sometimes incorrect for slave threads inside peach, affecting access control. e.g.

    q)hopen[5001]"{.z.w}peach 0 1"

2015.12.02

New

  • added ijf which fills according to rules of ij from v2.8. e.g.

    q)([]a:1 2;b:``z;c:1 0N)~([]a:1 2;b:`x`y;c:10 20)ij([a:1 2]b:``z;c:1 0N)
    q)([]a:1 2;b:`x`z;c:1 20)~([]a:1 2;b:`x`y;c:10 20)ijf([a:1 2]b:``z;c:1 0N)

Fixes and improvements

  • directory listings were not sorted on windows; this could stop splayed tables loading on some filesystems.

  • exposed jv in c-api for windows builds.

  • was crashing when sym interning space exhausted (approx. 1.4 billion), now exits with error "too many syms".

  • blocked avg of symbols inside select. e.g.

    q)@[value;"select avg x by i from ([]`a`b);0b";{x~"type"}]

2015.11.03

Fixes and improvements

  • Using enum files could crash since 3.3 2015.04.13. e.g.

    q)`:a set`sym!til 1018;do[100;a:get`:a;a=a]

2015.10.06

Fixes and improvements

  • 16 vs j was corrupting memory for j > 2 billion, since v3.0. e.g.

    q)16 vs 9223372036854775807;.Q.gc[] / gc can help trigger a crash on a corrupted heap

2015.10.05

Fixes and improvements

  • on disk sort, and -23!x could crash for compressed enums. e.g.

    q).z.zd:17 1 0;`:x set `sym!2129916#0i;-23!get`:x;hdel`:x;1b

2015.09.25

Fixes and improvements

  • check length in received ipc header is not negative. Was causing wsfull, now throws 'parse.

2015.09.17

Fixes and improvements

  • hashed mixed lists could crash, since 2015.09.02. e.g.

    q)distinct (1;1.)
  • byte comparison for < and > was not unsigned, since 2015.07.01. e.g.

    q)0x79>0x80
  • check that listening port is within range (-65535..65535). e.g.

    q)\p 200001
  • amend at depth was not updating the target if the first vector of the incoming was zero length. e.g.

    q)t:([]3 0#0#`);t[0 2;`x]:(0#`a;1#`b);t~([](0#`;0#`;1#`b))
  • returning from suspended mode with : could crash in the following scenario

    q)t:([]``);.Q.dpft[`:/tmp/db;.z.d;`x;`t];system"l /tmp/db";10#t / then return from suspended mode with :

2015.09.02

New

  • improve performance of hash table (used in distinct,group,..) for nested real/float vectors. e.g.

    q)b:flip `float$100000?'5?200;system"ts distinct b"

2015.08.23

New

  • explicitly enable SO_KEEPALIVE for accepted connections rather than relying on inheritance from listening socket; outgoing connections already had this option set.

  • Linux only - .Q.gc[] now drops all unused pages from RSS.

  • Allow ragged splays to be queried under certain conditions - no u,p or g attr, vectors only. e.g.

    q)`:t/ set([]a:til 5;b:0);`:t/b set 0 1;select from `:t/

Fixes and improvements

  • upsert with mismatched splayed data could crash. e.g.

    q)`:db/2001.01.01/t/ set([]a:10?1;b:10?1;c:10?1);system"l db";upsert[flip`a`b`c!"jjj"$\:()]`a`b#t
  • upsert could crash with nested data, instead of throwing 'type. e.g.

    q)`:t/ set([]`s#enlist"abc";enlist 0f);`:t/ upsert(("kljsda";"klajsd");1 2f)

2015.07.29

NUC (Not Upwardly Compatible)

Not backward compatible. Changes existing behavior.

  • block setenv if not main thread.

Fixes and improvements

  • kdb+ could hang if multithreaded input mode were activated from within .z.ts. e.g.

    q)system"t 1000";.z.ts:{system"p -9998"}

2015.07.09

Fixes and improvements

  • Redirecting stdout and stderr did not reuse file handles 1 and 2 for those files, and was used erroneously for sockets instead. e.g.

    q)system each("1 stdout.txt";"2 stderr.txt");h:hopen 9999;1"log msg";
  • select from t where i within(x;y) was crashing if x or y were negative. e.g.

    q)select from([]0#0)where i within 0 -2

2015.07.01

New

  • improved performance of group and distinct on vectors of booleans. e.g.

    q)x:(10000#0b;10000?0b);system"ts:100000 distinct x;group x"

Fixes and improvements

  • allow scalar extention of 4th arg (here `p) for disk amend. e.g.

    q)`:splay/ set([]a:til 10;b:til 10);@[`:splay/;`a`b;{y#x};`p]
  • q.k - set .z.K to 3.3

  • json parser did not allow 0e|0E as the beginning of a number. e.g.

    q)(6 1#0f)~.j.k each("[0e+8]";"[0e-8]";"[0E+8]";"[0e-8]";"[0e8]";"[0E8]")
  • block use of 0 handle during reval and read-only mode (-b cmd line option); now throws 'restricted. e.g.

    q)h"reval({0\"2+2\"};::)"

2015.06.09

New

  • allow embedded line return in strings in csv files. e.g.

    q)("I*";",")0:("0,\"ab\nc\"";"1,\"def\"")

Fixes and improvements

  • sse builds check for sse4.2 capability on startup, printing "sse 4.2 or later" and exit if insufficient.

  • dangling dependencies could cause a crash. e.g.

    q)`:a set 0#`
    q)b::c.d
    q)\l a
    q)c.d:1 / crash
  • Reloading of password file (via \U) could cause a crash.

2015.06.01

First production release of kdb+ 3.3.

Fixes and improvements

  • revert pj to fill with 0i to avoid inconsistent cast to J for I+I. e.g.

    q)([s:`a`b]n:1 2i)pj([s:`a`b]n:3 4i)

2015.05.27

Fixes and improvements

  • select now checks that the length of used columns in a splay are of the same length. Previously it could crash. e.g.

    q)`:t/ set([]a:500#0;b:0);`:t/b set asc 5000#0 1i;select from `:t/ where b=max b
  • x div T was crashing. Now throws 'type. e.g.

    q)0 div ([]0 1)

2015.05.22

Fixes and improvements

  • kdb+ could crash after a mismatch error. e.g.

    q)([a:`p#1 2 3]c:3 4 5),([a:`p#4 5 6]d:3 4 5)
  • self-referencing views could crash if the view was invalidated during eval. e.g.

    q)t::t+b:1
  • parsing as minutes could crash if the minutes were partial. e.g.

    q)h:hopen`:file.txt;h(4091#"a"),",23:3";hclose h;("*U";",")0:`:file.txt

2015.05.18

New

  • .Q.id now handles columns that start with a numeric character. e.g.

    q).Q.id flip(`$("1abc";"abc"))!(0 1;2 3)

Fixes and improvements

  • appending to files with type 0 was rewriting whole file since 3.0 2011.11.25.

    q)`:a set (`a;0);`:a upsert (`b;1)

2015.05.06

Fixes and improvements

  • columns of nested enumerated syms with key `sym now report as S in meta. e.g.

    q)meta([]enlist`sym?`a`b)
  • allow g attr in threads other than main thread. e.g. with cmd line -s 4

    q)0N!{`g#5?2}peach til 4;

2015.04.28

New

  • splayed table count is now taken from first column in table; previously it was last. N.B. NEVER have different counts for columns. e.g.

    q)set'[sv[`;]each`:splay,/'`.d`a`b;(`a`b;0 1;2 3 4)];count get`:splay/

Fixes and improvements

  • Casting floats to booleans was incorrectly rounding -.5<x<.5 to 0b. This affects 'any'.e.g.

    q)1110111b~"b"$-1 -.5 -.4 0 .4 .5 1
  • Added svar and reval to .Q.res.

  • Some binary ops were incorrect when both args were keyed tables, since 2015.03.04. e.g.

    q)([s:`a`b]n:1 2)=([s:`b`a]n:10 20)
  • Allow .Q.ind to work with .Q.MAP[]. e.g.

    q).Q.MAP[];.Q.ind[t;1 2 3]
  • Changed .Q.f threshold for switching to sci format to 9e15 (as .Q.f converts to long to print). e.g.

    q).Q.f[4;]each 6061045760 5497856000 4592999936f

2015.04.13

NUC (Not Upwardly Compatible)

Not backward compatible. Changes existing behavior.

  • x64 builds now require SSE4.2 capability.

New

  • +/ &/ |/ = < are 10-20x faster for GH, avg is a lot faster for GHIJ. +/I will give 0Ni on overflow.

Fixes and improvements

  • 32bit versions could stall at 0% cpu or crash when decompressing files if very low on memory.

  • sorting a vector of longs which had both 0N and 0W did not sort. e.g.

    q)(`s#0N 0 1 0W)~asc 0N 1 0 0W
  • preserves 3.2 types for sum GHI as I, as they changed in 3.3t 2015.03.27.

  • now avoids int overflow for wavg (auto casts lhs to float). e.g.

    q)1f~(`int$til 100000)wavg 1

2015.03.27

New

  • distributed each will revert to local each if .z.pd is not defined.

  • improved performance of 'avg .. by', avg for types G H, sum G, grouping by G H. Also distinct/find for G H. e.g.

    q)n:10000000;k:100;t:([]x:"x"$n?k;y:"h"$n?k;z:n?k;v:2h)
    q)system each("t:10 select sum x,avg x,avg v from t";"t select avg v by x from t";"t select avg v by x,y from t";"t select avg v by z from t")

Fixes and improvements

  • .Q.fsn no longer requires a \n as last char in file. e.g.

    q).Q.fsn[::;`test.txt 1:"test\nnewlines";10]

2015.03.24

Fixes and improvements

  • raze was broken for lists which contained empty tables, since 3.3t 2015.02.12. e.g.

    q)~/[(raze;{x,y}/)@\:(();([]a:0#0);())]
  • distinct, group and by with type H were performing significantly more poorly than long,int,byte. e.g.

    q)n:10000000;t:([]a:n?100;b:n?5h;c:n?5h);system"ts do[10;select sum a by b,c from t]"

2015.03.21

Fixes and improvements

  • update was sensitive to column order for scalar extention, since 2015.03.19. e.g.

    q)([]`a`a;0)~update x:`a,x1 from([]``;0)

2015.03.19

New

  • okx exported to c-api for windows builds.

Fixes and improvements

  • i#/:T was throwing type since 3.3 2014.11.26. e.g.

    q)1#/:([a:1 2]b:3 4)
  • if an update threw an error, sometimes this could cause a crash. e.g.

    q)@[value;"update raze a from([]a:enlist enlist[`a]!enlist 0)";{"type"~x}]

2015.03.03

Fixes and improvements

  • var dev cov cor were throwing 'rank if passed () or an atom. e.g.

    q)(0f;0f;0n;0f;();();();())~(dev 1;var 1;cor[1;1];cov[1;1]),((dev;var)@\:()),(cov;cor).\:2#()
  • json parser now accepts unicode surrogate pairs. e.g.

    q)`$.j.k"[\"\\uD869\\uDED6\"]"
  • The following errors since 2015.02.17:

  • If 2 tables had the same row count, it's possible to use a dyad to operate between the common columns. e.g.

    q)([]c0:`a`b; c1:1 1f; c2:1 1f; c3:2#1f)*([]c1:2 3f; c2:4 5f; c4:2#1f)
  • Sorted dictionary was filling asof. e.g.

    q)(`s#([c0:1#`a;c1:1#1] c2:1#1))^([c0:1#`a;c1:1#2] c2:1#0N)
  • Updating a column value to a function throws a length error. e.g.

    q)update c1:{x+y} from ([]c0:til 2;c1:2#(::))

2015.02.17

New

  • the json deserializer .j.k is now builtin, strict and 50-100x faster.

2015.02.12

New

  • Added .z.X which provides the raw, unfiltered cmd line.

  • Added .Q.Xf to write empty nested files.

  • Added c-api callback to allow a shared lib to get called back when \p set to non-zero value or .z.* set by user.

    extern V setSysNotify(V*);V callback(S s){O("%s\n",s);}K f(K x){setSysNotify(callback);R 0;}

Fixes and improvements

  • some binary ops on dicts were not commutative, order sensitive, or sensitive to missing keys. e.g.

    q){(x+y)~y+x}[(`a`b`c!1 2 3);(`a`b`c!1 0 1.5)]
    q)(`a`b`c!1 2 3)*(`a`c`b!1 0 1f)
    q)(`a`b`c!1 2 3)*(`a`b!1 0f)
  • select was crashing for an optimized path when the grouped column was also selected. e.g.

    q)select a by a from([]a:`p#0 1;b:0 1)where a in 0
  • select was slow for an optimized path when the column was enumerated. e.g.

    q)a:`p#asc`sym?1000000?`5;c:value -10000?a;system"ts select count i by a from([]a;b:1000000#0x0)where a in c"
    q)select count i by a from([]a:`p#asc `sym?10000?`3;b:10000#0x0)where a in value
  • updated .Q.Cf to write v3.x format files for empty nested char vector.

  • grouped column rename was incorrect for select .. by s:a from ([]a:`g#...) where a in b. e.g.

    q)t:([]a:`a`a`b`c`d;b:til 5);f:{select count i by s:a from x where a in `a`b`c};f[update `g#a from t]~f t
  • raze was throwing 'type for some lists which contained tables. e.g.

    q)~/[(raze;{x,y}/)@\:("ab";([]a:til 2))]
  • self referencing views now use :: as uninitialized value instead of throwing 'loop. e.g.

    q)v::$[(::)~v;b;v+a]
  • q.k - .Q.fc previously threw 'domain for empty rhs when using slave threads. e.g.

    q).Q.fc[{};()]
       - svar did not consider nulls. e.g.
    q)(5%3)~svar 1 2 3 4 0n
       - json, support "\\". e.g.
    q).j.k"{\"a\":\"\\\\\",\"b\":2}"
       - json, support {} inside literals. e.g.
    q).j.k"{\"a\":\"{asd\"}"
       - json, support unicode escapes as utf8.

2015.01.20

Fixes and improvements

  • Amending an atom could cause a crash. e.g.

    q).[("aa";" ";"bbb");1 2;upper]
  • select count x was incorrectly ignoring the argument to count for certain queries, since v3.1 2013.05.15. e.g.

    q)([]enlist 0)~select count b where b>2 from ([]a:`p#`a`a`b`c;b:til 4)where a=`a

2015.01.14

Fixes and improvements

  • select .. by sym from t where sym in ...,time<vector could throw 'type. Also time>vector. e.g.

    q)select by sym from([]sym:`p#`a`b;p:0 1;time:2#.z.T)where sym in`,time<0#.z.T

2015.01.12

Fixes and improvements

  • reverted dev,var to assume population (rather than sample, N-1, since v3.2 2014.02.07), and added sdev,svar,scov for sample set. e.g.

    q)(dev;sdev)@\:1 3 9

2015.01.08

Fixes and improvements

  • select .. by fn sym from t where sym in ... (sym with p or g attr) was not invoking fn since v3.2 2014.05.03. e.g.

    q)select avg v by string sym from ([]sym:`p#`aa`aa`bb`bb`cc`cc`cc`dd`dd`dd;v:til 10)where sym in `aa`cc

2015.01.05

Fixes and improvements

  • .Q.bv did not support the explicit use of a partition field in anything but the initial constraint of a select for a fabricated partition. e.g.

    q)select date,time from t where data=missingDate
  • Find (and hence ops that use find) was slow for some data distributions, since 2014.12.05.

    q)a:`p#asc 90000?10000i;b:10000?1000i;system"t:10 a?b"

2014.12.05

Fixes and improvements

  • from an http client to kdb+, http://host:port/file.csv?select ... was throwing 'type

  • mapped nested find was crashing, since 2014.11.26. e.g.

    q)`:f set enlist"ab";()?get`:f

2014.12.01

Fixes and improvements

  • aggregate functions on partitioned tables were failing if the column name was not the immediate argument. e.g.

    q)`:/tmp/1/1/t/`:/tmp/2/2/t/ set\:([]a:0 1;b:2 3);`:/tmp/par/par.txt 0:"/tmp/1\n/tmp/2";system"l /tmp/par";g:{x};select sum g b from t
  • -9!x was incorrectly throwing bad msg for projections, since 2014.11.26. e.g.

    q)-9!-8!(upsert)
  • sync msg snapshot used sys calls which are not threadsafe on some systems, so could crash within peach.

2014.11.26

NUC (Not Upwardly Compatible)

Not backward compatible. Changes existing behavior.

  • websocket open/close callbacks are now via .z.wo/.z.wc instead of .z.po/.z.pc.

New

  • Improve performance of on-disk sort for uncached splayed tables. e.g.

    q)`a`b xasc`:splay/
  • Allow processing of http://host:port/.json?query requests.

Fixes and improvements

  • in was erroneously sensitive to sort attr with compound types. e.g.

    q)(10b;10b)~([] a:0 1; b:`)in/:(([] a:0 0; b:`);([] a:`s#0 0; b:`))
  • .Q.MAP[] was erroneously removing the key from inmem keyed tables.

  • find could crash for ()?int vector. e.g.

    q)()?til 99
  • update could create a keyed table of different length columns. Now throws 'length.

    q)update b:2 3 4 from([a:2 3]b:2 3)
  • min/max on an empty sorted vector was returning null. e.g.

    q)all~/'[(min;max)@/:\:(`s#0#0;0#0)]
  • binr was incorrect for vectors with underlying 32bit ints or floats. e.g.

    q)(1 1;2 2;3 3)~(bin;binr;?).\:(2013.01.01 2013.01.05 2013.01.10;2013.01.06 2013.01.06)
    q)(2 2;3 3;4 4)~(bin;binr;?).\:(1 2 3 5.;2#4.)
    q)((0 0 1 1 2;0 1 1 2 2);(0 0 1 1 2;0 1 1 2 2))~(bin;binr).\:/:((1 3 5;1 2 3 4 5);(1 3 5i;1 2 3 4 5i))
  • serialize var,dev,cor,cov to lamdbas for compatibility with previous versions. e.g.

    q){dev x}~-9!-8!(dev)
  • added bounds check for deserializing monads,dyads and adverbs to avoid crash with malformed ipc msgs. e.g.

    q)-9!0x010000000a000000652c
  • S#/:T was behaving differently to (S#)each T if S referenced non-existent columns, throwing a 'length error. e.g.

    q)`a`b`c#/:([]a:1 2 3;b:10 20 30)
  • sd1, a c-api function, now throws 'fd out of range if the fd argument is >1023.

  • File compression using the hardware compression cards from AHA was printing zlib and then erroring out, since 3.2t 2014.05.07.

  • Rollback \c default from 100 1000 to 25 80

  • If mapping a file failed, the error msg read from the system was incorrect. e.g. 'filename: File exists

2014.10.07

New

  • Added read only evaluation as reval (-24!), similar to eval (-6!), which behaves as if the cmd line option -b were active for the duration of the -24! call.

  • On unices, tries to allocate file descriptors above 1024 for file handles, in order to keep descriptors below 1024 free for socket usage.

Fixes and improvements

  • was crashing if the defunct handle passed to .z.pc was used for ipc within .z.pc. Now throws 'Bad file descriptor. e.g.

    q).z.pc:{x(`f;::);}