Skip to content

kdb+ 3.0 Release Notes

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

2014.11.26

Fixes and improvements

  • in,bin 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:`))
  • find could crash for ()?int vector. e.g.

    q)()?til 99

2014.09.29

Fixes and improvements

  • vector [bin|binr] matrix was erroneously executing as vector ? matrix since 3.0 2012.07.26. e.g.

    q)(-360 124 bin(34 35;37 38))~-360 124 bin/:(34 35;37 38)

2014.06.22

Fixes and improvements

  • In very unlikely circumstances, fnd and bin could return the wrong result if the lookup table had >2 billion.

    Also amending a vector with `g attr if > 2 billion elements.
  • Tweaked to work with xinetd/netcat with ipc protocol. Was broken since 2.8 2012.02.05

2014.06.18

Fixes and improvements

  • sorting > 2 billion elements could result in a crash, or be inefficient.

2014.05.03

Fixes and improvements

  • aggregating partial expressions would crash across partitioned databases. e.g.

    q)`:p/0/t/`:p/1/t/ set\:([]a:til 10);system"l p";select sum(a+)from t
  • some users requested that the v2.8 lj behaviour be available officially from Kx, now defined as ljf.

2014.04.03

Fixes and improvements

  • ss was entering an infinite loop when passed a vector > 2 billion and pattern > 1 char. e.g

    q)s:(0Wi+32)?.Q.an;ss[s;"ab"]

2014.03.16

Fixes and improvements

  • improve performance of searching on compound key e.g. x:([]a:..)cross([]b:..)

    q)n:1000000;d:.z.d;t1:([]date:d;a:n?`4;b:n?1000f;c:n?1000000);m:100000;t2:([date:d;a:m?`4];b:m?1000f;d:m?1000)
    q)0N!system"ts t1 lj update date:`#date from t2";system"ts t1 lj update date:`s#date from t2"

2014.01.24

Fixes and improvements

  • match of mapped nested vectors was incorrect. e.g.

    q)`:t/ set([]x:(1 2;3 4);y:(1 2;5 6));t:get`:t/;t[`x]~t`y

2013.11.20

Fixes and improvements

  • ij could perform very poorly when lhs had >99 rows, ignoring any attributes on 1st col of rhs

    e.g. q)a:([]a:til 1;b:til 1);b:`a`b xkey update `g#a,c:i from([]a:til 1000)cross([]b:til 1000);(100#a)ij b

2013.11.15

Fixes and improvements

  • serialization of type 97 (mapped nested sym vectors) was incorrect, causing 'badmsg at the receiver, and has potential to corrupt the heap on or crash the sender, since 3.0 2012.09.26.

    e.g. q)`:t/ set([]1 1#`:sym?/:1?`4);-9!-8!get`:t/x
  • Creating boolean vectors from null ints (0b vs ...) was incorrect.

    e.g. q)(1000000000000000b;10000000000000000000000000000000b;1000000000000000000000000000000000000000000000000000000000000000b)~0b vs/:(0Nh;0Ni;0N)
  • -3!x now more efficient for stringify of enums

    e.g. q)i:50000000?0Wi;e:`t!i;system"ts -3!e"
  • allow "P"$string .z.d so as to be consistent with "Z"$string .z.d.

2013.09.30

Fixes and improvements

  • 0: was crashing for csv files with > 2 billion rows.

    e.g. q)("BBBBB";enlist",")0:`:data.csv

2013.09.05

Fixes and improvements

  • update with scalars for linked columns was not retaining type. Root cause was catenate.

    e.g. q)t:([]1 2 3);([]x:1 2 3;p:`t!3#0N)~update p:`t!0N from t
         q)((enlist`x)!enlist 1 2 3),(enlist`p)!`t!enlist 0N
  • assigning to .Q.s could cause a crash

    e.g. q).Q.s:{}

2013.06.20

Fixes and improvements

  • writing a list of primitives to a file could corrupt the heap, causing a crash at some point later, since v1.0

    e.g. q)`:test set 3000000#(::);.Q.gc[]

2013.06.14

New

  • heap accounting for reading compressed files is now based on what data is actually read rather than the full vector length,

    and hence -w limits are less likely to be hit.
  • cmd line option –u now accepts 0 as a nop.

Fixes and improvements

  • tokens starting with a number and ending with an x were parsing as 0x00 rather than throwing an error, since 2012.05.15.

    e.g. q)1eachx
  • w32 only - alloc > 4GB caused crash instead of reporting wsful.

    e.g. q)1000000000#1
  • Explicitly using scalar 0N with an enum was not being cast correctly to 0Ni (enums are still 32bit ints).

    e.g. q)`s?`a`b`c;(`s$`)~`s!0N
  • q.k - modified .z.ph to allow for the correct response being passed in the header when requests for files are made with multiple dots in the filename.

  • multicolumn find (t1?t2) was slow for some scenarios if t1 had an attribute on the first column.

2013.04.05

Fixes and improvements

  • nested sync msgs could cause the socket to be closed erroneously, the remote throwing 'rcv: Resource temporarily unavailable.

    e.g. q)h:hopen 55557;neg[h]@/:("0N!.z.w \"0N!{0}[]\"";"0N!.z.w \"0N!{1}[]\"")
  • N.B. nested sync messaging is generally to be avoided; due to the nature of having to process incoming messages to reach a response,

    the order of response messages may be incorrect.

2013.04.04

New

  • added K sd0x(I d,I f) to the c-api, same functionality as sd0(I d) but f speficies whether to close d. sd0 closes d.

Fixes and improvements

  • q.k - sublist was limited to 2 billion elements.

    e.g. q)count 0 2500000000 sublist([]x:3000000000#0x0) / returned 2147483647

2013.03.18

Fixes and improvements

  • dict fill empty dict was crashing.

    e.g. q)(`a`b!1 2)^()!()

2013.03.14

Fixes and improvements

  • Reinstate limit check when writing a table as a single file, where any vector inside the table exceeds 2 billion elements. Limit was erroneously lifted since v3.0 2012.10.15, allowing files to be created which caused a crash when read.

    e.g. q)`:t set ([]a:(`long$2 xexp 31)#0x0)

2013.03.05

Fixes and improvements

  • within inside select clause was not using comparison tolerance.

    e.g. q)v:1+(til 3)*1e-16;0N!3=count select from ([]v) where v within v 2 2;

2013.02.28

Fixes and improvements

  • garbage collect could result in seg fault instead of printing wsfull.

    e.g. q)((1+)\)0 / iterate forever on 32bit kdb+
  • windows builds only - system"l path/file.q" did not try $QHOME/path/file.q if not found relative to cwd; since v3.0 2012.07.27.

2013.02.11

(binary is same as 2013.02.06)

Fixes and improvements

  • q.k - if the prototype for filling empty dates was itself empty, 'splay was erroneously thrown since 2013.02.06

2013.02.06

Fixes and improvements

  • an enum passed as table arg to exec must be a vector; was crashing, now throws 'type.

    e.g. q)t:([]());exec from`t!0
  • 0N x was erroneously processing as 0 x, since 3.0 2011.11.28.

  • If a file was missing from a splayed table, certain accesses could crash.

    e.g. q)`:t/ set([]a:til 10;b:til 10);system"rm t/a";0#flip {x[`.d]!x}`:t
  • .Q.chk no longer maps all columns for a table simultaneously.

  • (div/)("gpidf";"gmnba";"fibij";"nlpno";"ckmlj";"dbmhk";"pllcj";"emhaf";"eebbk") was crashing since 3.0 2012.11.13

  • -19!x (create compressed file) would crash if 2nd arg was not a symbol.

    e.g. q)-19!(1;2;3.)

2013.01.24

Fixes and improvements

  • a logging process (-l as cmd line option) did not pass the correct number of log records to a replicating process if >2 billion; since v3.0 2011.11.22.

  • allow \r to be issued at the q console on master logging process without disturbing replicating process.

  • flush to log file when replication process connects to logging process (only relevant where rep process is on different OS instance to logging process).

  • deal was not returning distinct values.

    e.g. q)do[8;0N!100000=count distinct -100000?`8]

2013.01.16

Fixes and improvements

  • osx builds only - a SIGINT during peach could cause a crash.

  • a SIGINT during .Q.gc[] when using slave threads could cause a crash.

  • in was not matching for tables where there was >1 guid column.

    e.g. q)g:1?0Ng;([]g;g)in([]g;g)
  • replication for loopback commands using handle 0 broke in v3.0 since 2012.10.15; threw 'parse and stopped replicating.

  • solaris/sparc builds only - log x for x<0 was -0w rather than 0n.

    e.g. q)log -1 0 1

2012.12.22

Fixes and improvements

  • upsert with missing columns of nested types did not fill using those types (used () instead).

    e.g. q)t:([]a:2 3;b:("as";"qwe"));t,:([]a:3 4);([]a:2 3 3 4;b:("as";"qwe";"";""))~t

2012.12.20

Fixes and improvements

  • ` vs `sym?`a.b`c was crashing, instead of throwing 'type.

2012.12.17

New

  • implemented table bin table where table has guid column. Used by asof.

    e.g. q)t:([]g:5?0Ng;t:.z.p+til 5;x:4 5 6 7 8);t asof`g`t!(t[0][`g];.z.p)

Fixes and improvements

  • For cpus with sse4.2 capacility or above, min on vectors of type long was not ignoring nulls.

    e.g. q)min 0N,7#0
  • datetime+time was returning timestamp type. For compatibility with 2.8, ops with datetime as arg now return datetime.

    e.g. q)2001.01.01T12:34:56.789+00:12:34.567

2012.12.04

New

  • sv and vs now support enums on rhs

    e.g. q)s:`sym?`a.b;0N!`a`b~` vs s;s:`sym?`a`v;0N!`a.v~` sv s;

Fixes and improvements

  • lsq was crashing if passed empty lists; now throws 'length

    e.g. q)(enlist 0#0f)lsq(0#0f;0#0f)
  • upsert with mismatching columns threw 'length instead of 'mismatch, and did not leave table in original state, since 2012.07.30.

    e.g. q)t:([k:`a`b]v:1 2);`t upsert([k:`a`b]v:1 2;c:3 4)
  • -22!x was throwing 'length if x contained a GUID.

    e.g. q)-22!10?0Ng
  • improved performance of time.[second|minute]

    e.g. q)v:10000000#.z.T;
         q)\t v.second
  • if an error occurred within peach (with slave threads), the error msg was garbage; now blank, due to thread local error msgs.

    e.g. q){a+0}peach 0 1 / start q with cmd line option -s e.g. q -s 2
  • print os error details for scenario of exhausting disk space when saving a nested column.

    e.g. q)`:test set flip enlist til 100000; / when disk space is low
  • revert xbar to same as v2.8 to accomodate floats on lhs

    e.g. q)0.1 xbar 300.21343

2012.11.13

Fixes and improvements

  • allow div on boolean, byte and short types. Previously it threw 'type.

    e.g. q)(div)./:`boolean`byte`short`int`long$\:5 4
  • improved performance of avg of a boolean vector.

    e.g. q)x:10000000?0b
         q)\ts avg x

2012.11.09

Fixes and improvements

  • improved speed and reduced space requirements for sum/avg on floats with 0n's

    e.g. b:`float$y:0N,x:til 10000000;avg x;a:`float$x;{value "\\t ",x}each("avg x";"avg y";"sum x";"sum y";"avg a";"avg b";"sum a";"sum b")
  • in-place adjustment of keys on a table was broken since 2012.09.26

    e.g. q)t:([a:1 2 3]b:10 20 30;c:`x`y`z);0!`t
  • linux only - optimize file access where all or large chunks of an uncached file are read (e.g. sym vectors are read in full).

    e.g. q)`:file1 set 10000000?`4 / clear file cache after this
         q)\t get`:file1 / 412 vs 650mS

2012.11.05

New

  • added I setm(I f) to the server c-api; can be called to activate locks around the interning of symbols when interning them in your own threads.

    It should not be set/reset unless you can guarantee that no threads could be inside sn at the time of the call.
    e.g. set it from the main thread on startup. Returns the previous setting.
  • (solaris sparc release coming later)

2012.10.19

Fixes and improvements

  • deserializing a compressed ipc message could corrupt memory since 2012.10.15; probably manifesting itself as wsful.

  • loopback serialization on solaris on sparc was crashing since 2012.10.15.

  • arithmetic on timestamp|timespan were returning ints, since first release of v3.0. To be compatible with 2.x, these now return timespan type.

    e.g. q)2012.10.18D15:54:36.773222000-2012.10.18D15:54:34.117460000
  • flip did not accept mapped nested data. Was throwing 'rank

    e.g. q)flip get `:foo set (1 2;3 4);

2012.10.15

Fixes and improvements

  • loopback serialization is now able to serialize > 2GB. This is relevant for peach returning > 2GB of data, and thereby a slave thread in

  • a segmented hdb can also select > 2GB and return it to the main thread.

  • For efficiency, loopback serialization no longer embeds the string for a symbol, but a pointer to the interned string.

  • The c-api recognizes loopback as f==-1 in the call K b9(I,K). This does not affect -8!x or ipc over sockets.

    e.g. q)a:1000000?`2;system"\t 0({x};a)" / ~6x faster
  • `week$ for dates < 2000.01.01 was incorrect.

    e.g. q)`week$1999.12.31
  • kdb+ on linux or solaris with avx capable cpus would crash when performing axv enabled ops on mapped files.

    e.g. q)get`:a set 2?1.

2012.10.06

Fixes and improvements

  • When returning memory to the OS, not all memory was released, each time leaking 16 bytes and retaining a reference to an anon map. This did not show via the \w or .Q.w[] commands, but at the OS level (e.g. on linux /proc/pid/maps), eventually exhausting available map entries. This was more pronounced when using the cmd line option -g 1, and would eventually result in an error msg similar to "Bad munmap 0x7753b077a010 23 Cannot allocate memory", after which it would no longer release any memory. Present since v3.0 2012.06.12.

    e.g. q)\g 1
         q)do[2;a:til 10000000]

2012.09.29

Fixes and improvements

  • SIGINT was ignored after a system command.

    e.g. q)system"pwd";`:http://ichart.finance.yahoo.com "GET /table.csv?s=GOOG&d=8&e=29&f=2012&g=d&a=4&b=14&c=2012&ignore=.csv http/1.0\r\nhost:ichart.finance.yahoo.com\r\n\r\n"

2012.09.26

Fixes and improvements

  • pin enum type 20 to use `sym. This fixes a crash where loading a nested sym file into a process where no enum type 20 was defined.

  • This refers to the nested sym functionality added on 2011.11.25 to v3.0t. Note that nested sym files can be saved only if they are enumerated against the enum at type 20, which is now `sym, otherwise 'type is thrown.

    e.g. q)`:t/ set ([]a:enlist `sym?`a`b`c); / save from one kdb+ process
         q) get`:t/  / load in another vanilla kdb+ process
  • check enum types to avoid crash when enum to file

    e.g. `:sym?enlist enlist `fred
  • allow int!table to set key columns

    e.g. q)1i!([]a:0 1;b:0 1) / previously lhs must have been a long
  • error trap around take and drop with lhs of 0Ng was not working

    e.g. q).[#;(0Ng;0b);::];

2012.09.06

Fixes and improvements

  • v32 (solaris on intel) build was crashing with some shared libs compiled with cc rather than gcc.

  • select with a "date.[month|year] in .." was not matching correctly if rhs was not sorted and unique.

    e.g. q)select from([]t:enlist 2001.01.01)where t.month in 2001.02 2001.01m
  • setting a `p attribute on a vector which already had a `u attribute was crashing (immediately or later), since v1.0

    e.g. group `p#`u#-20?20;

2012.09.02

Fixes and improvements

  • added rank check to lj to catch error case which was causing a crash

    e.g. q)([]a:1 2;d:1 2),\:([a:(1 2;1 2)]f:3 4)
  • q.k - .Q.bv kept files in the last partition mapped if they were empty.

  • select from ([]a:til 5) where i in 2 3i was throwing 'type due to type mismatch of manufactured vector 'i' and int vector. Now the int vector is automatically promoted to a long vector for this comparison.

2012.08.16

Fixes and improvements

  • cpu detection was faulty for 64bit linux build since 2012.07.26

  • hopen with timeout on solaris(sparc), the timeout was being ignored.

2012.08.07

Fixes and improvements

  • prd,(*/),sum,(+/) of boolean vectors was returning type long which is inconsistent with what they return

    for other types, and other arithmetic with boolean vectors. Now it returns type int.
    n.b. This change also affects msum
    e.g. q)sum 111b

2012.08.03

Fixes and improvements

  • built-in logging via -l could log bad data if incoming ipc msg was compressed.

  • allow date+float to result in datetime

    e.g. q)2012.07.30+0.5

2012.07.30

Fixes and improvements

  • Keyed table-dict was incorrect (in-place t-:d was ok).

    e.g. q)t:([a:1 2]b:3 4);t-`a`b!1 2
  • In-place update of dict into keyed table was failing without an explicit enlist of the dict.

    e.g. q)t:([a:1 2]b:2#enlist([]c:1 2;d:1 2));t[1;`b],:`c`d!1 2

2012.07.26

  • added binr - bin right. x binr y gives the index of the first element in x which is >=y.

    e.g. q)0 2 4 6 8 10 binr 5

Fixes and improvements

  • allow enums to cast to longs

    e.g. q)"j"$`s?`a`b`c
  • removed the 8 limit for dot (now same as v2.8)

    e.g. k)0N!(,,,,,,,,,,,0). 0 1 2 3 4 5 6 7 8;
  • -21!`:zipfile was not throwing an error if the zip was corrupt, it was printing to stderr only.

  • q.k - extend xbar to work with timestamps/timespans (same as v2.8)

    e.g. q)0D00:01:00 xbar .z.N
  • q.k - ww, allow wj on a single column without explicit enlist of column name

    e.g. q)wj[w;`time;t;(q;(::;`bid);(::;`ask))]
  • q.k - added med to .Q.a1 to allow med as an aggregate function on a select in a splayed table.

2012.07.12

Fixes and improvements

  • loading files written by 2.8 which contained a single vector with a p or g attribute and 2 or fewer distinct values would crash

  • a splay is defined as a special form of dict. dict,splay was crashing.

    e.g.(`a`b!`a`d),`a`!`
  • wj and wj1 did not allow a single column to be specified.

    e.g. q)t:([]time:10:01:01+0 3;price:101+0 3);w:(t.time-2;t.time+1)
         q)q:([]time:10:01:01+til 5;bid:100+-2 -1 2 3 2;ask:100+2 3 3 4 4);wj[w;`time;t;(q;(::;`bid);(::;`ask))]
  • allow .z.zd to be vector of 64 or 32bit ints

    e.g. q).z.zd:17 2 6;`:/tmp/testf set asc 10000?10;-21!`:/tmp/testf

2012.07.04

Fixes and improvements

  • select[n;o] from t was not returning the correct amount of rows if n was unspecified (defaulting to 0W).

    q)select[<([]a;b)]a,b from([]a:10?20;b:10?10)

2012.06.28

Fixes and improvements

  • q.k - remove projection overhead of lj.

  • lj was not filling when used in stepfunction.

    e.g. q)([]id:til 10;price:til 10)lj`s#([id:1 3 6 9]sym:`a`b`c`d)

2012.06.27

Fixes and improvements

  • windows builds (including c.dll/cst.dll/c.o) were failing with allocs>2GB resulting in a crash.

    e.g. q)(floor 2 xexp 31)#0x0
  • within was throwing 'type when comparing .z.z/.z.p with timeof days

    e.g. q)select from ([] times:`s#(.z.z;.z.z+1;.z.z+2)) where times within 10:00 11:00
  • updated entry for 2011.11.22

2012.06.21

New

  • solaris on intel builds now detect cpu capability and activate cpu specific code

Fixes and improvements

  • wsful was not being caught, resulting in a crash instead.

  • uj was incorrect. Now is same as v2.8.

2012.06.13

New

  • osx builds now detect cpu capability and activate cpu specific code

2012.06.12

New

  • linux builds now detect cpu capability and active cpu specific code

Fixes and improvements

  • saving a mapped file which has `u or `p attr written by v2.8, created a bad file causing a crash when loaded.

    e.g. q)`:f.3 set get `:f.28;get`:f.3
  • setting a variable name with a : in it was being interpreted as error trap, since v2.8 2012.02.14.

    e.g. q).[`$"b:1";();:;2]

2012.05.30

Fixes and improvements

  • w32 build only, sorting symbols was erroneous.

    e.g. q)iasc `x`a`b

2012.05.29

First production release of kdb+ 3.0.

Fixes and improvements

  • q.k - cor function was returning values > 1.

    e.g. q)1 -1 1 cor 1 -1 0N
  • fills was incorrect for guids

    e.g. q)fills rand[0Ng],2#0Ng
  • files are no longer locked for appending (as table append is not atomic anyway), aside from enums via `:file ? syms

2012.05.22

Fixes and improvements

  • mmu was failing for either dimension larger than 2 billion

  • was not deserializing guids correctly (there's no need to consider endianness).

2012.05.21

Fixes and improvements

  • solaris only - detecting/processing 0n was erroneous.

  • floating point rounding was erroneous since 2012.05.19

2012.05.19

Fixes and improvements

  • 32bit builds do not include sse4.1 instructions.

  • min vector of shorts was not ignoring 0Nh

    e.g. q)min 0N 2 3 4h

2012.05.17

Fixes and improvements

  • enum files must not be compressed and appended to concurrently. Now they ignore compression on creation

    and error if compressed and are appended to.
    e.g. q).z.zd:17 2 6i;`:test ? `a`b`c;
  • (div/)("gpidf";"gmnba";"fibij";"nlpno";"ckmlj";"dbmhk";"pllcj";"emhaf";"eebbk") was crashing

  • t:([a:`symbol$()]b:`long$());t[`a;`b]:5i was crashing

  • better type checking wrt to guids for neg,ceiling,max,min,maxs,mins

    q)max "g"$()

2012.05.15

New

  • -n?0Ng will generate guid (global unique: uses .z.a .z.i .z.p). Users can manipulate the bytes to make uuid version 4.

Fixes and improvements

  • websockets-

    verify char vector writes are valid utf8.
    verify protocol version is 13 during opening handshake.
    removed 2GB msg size limit.
    allow blocking until next msg received via handle[].
  • added type check to til

    e.g. til .z.t
  • for all the date/time/.. types if the last element is a null the value displayed is 0N not 0Nd, 0Nt etc.

    which in turn means that doing value "…" gives an error
    e.g. q)2012.01.01 0N
  • t _ uuid was not working

    e.g. q)t:([id:2?0Ng]price:2?100f);t _ first  key[t]`id
  • fix display for guid type so there is no trailing g.

  • added 0x0 vs 0x0 sv 16bytes (to and from uuid)

    e.g. q)0x0 sv 16?0xff

2012.05.10

NUC (Not Upwardly Compatible)

Not backward compatible. Changes existing behavior.

  • c-api b9(I f,K x) must now be called with f=-1.

New

  • server-side websocket support based on rfc6455, callback via .z.ws[char vector|byte vector], default is echo.

    Async msgs only, sync 'nyi.
  • Added new 16byte type (2) GUID for much faster id's than character vectors.

    0Ng is null(00000000-0000-0000-0000-000000000000)
    Can be generated with x:2?0Ng etc.
    "G"$"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    there is no literal entry, it has no conversions, and only scalar primitives are = < > (similar to sym).
    bottom line: no one should use charvecs for ids. id's should be int, sym or guid.
    guids are faster (much faster for =) than the 16byte char vecs and take 2.5 times less storage (16 per instead of 40 per).

Fixes and improvements

  • closing stdin pipe from parent process could send kdb+ into a spin reading stdin.

  • the new format for timing n times, \t:n was leaking memory and ignoring ctrl-c.

    e.g. \t:100000 2+2
  • http get was not downloading all data if content-length was missing.

    e.g. use yahoo.q for 3 years of `GOOG
  • table _ symbol was crashing

    e.g. q)([]())_`
  • hclose .z.w within .z.ph was leaving outgoing data on the .z.w handle.

  • upsert on splayed tables was overwriting for non-nested types since 3.0t 2012.03.21

    e.g. q)t:([]a:til 10);`:t/ set t;`:t/ upsert t;0N!20=count get`:t/;

2012.04.03

Fixes and improvements

  • .Q.gc[] could crash when used with slave threads, since v2.7 2011.09.21.

  • an aborted incoming connection could result in the server process stopping listening for new connections ('accp error).

  • catch failure to init .z.a on startup (hostname lookup fails, .z.a assigned -1).

  • functional select was crashing when "order" argument did not evaluate to an int vector.

    e.g. q)t:([]a:`a`b;b:0 1.);?[t;();enlist[`a]!enlist`a;();2;`b]

2012.03.21

Fixes and improvements

  • q.k - redid lj and aj so that there are no attempted fills (.Q.fl) on matched rows. aj now works with boolean and byte columns too.

  • Appending to a file of size <=8 bytes was sometimes failing with 'type

    q)@[`:.;`foo;:;()];f:{@[`:.;`foo;,;1 2 3];};f[]; / sometimes failed depending on what was on native stack
  • q.k - .Q.fc was failing if slave threads used

    e.g. q).Q.fc[{2 xexp x}]til 10 / start with slave threads
  • block nested data that is >2 billion elements; previously crashing.

    e.g. q)`:s set([]a:3000000000#"a");get`:s
  • upsert on a table with a group attribute on a column was slow (previous attempt was kdb+2.7 2011.11.12)

    e.g. q)t:([k:`u#til 2000000]v:`g#2000000?1000000);system"t `t upsert([]k:count[t]+til 4;v:4#-1)"
  • Attempting an update to a partitioned table would crash; now blocked

    q)`:/tmp/db/2001.01.01/t/ set([]a:til 10);`:/tmp/db/2001.01.01/t/
    q)\l /tmp/db
    q)@[`t;0;{x+y+z}[1];2]
  • block x!y if either one is splayed, as {x!x}flip`a`b!`c was crashing

  • 0ne now prints as 0Ne

    k)_1 2 3i and k)_1 2 3e were throwing 'type
  • passing bad args to file compression could crash, e.g.

    q)a:"abracadabra";b:`a`q`y`x`s`e;f:{1+x*x};m:4 5@20?1000
    q)(a;b;f;m) set `:test4

2012.02.20

New

  • allow single shot sync request as `:host:port:user:password data

    e.g. q)`:localhost:5000 "2+2"
  • allow error trapping of `::5000 data

    e.g. q)@[`::5000;"a+b";0N!]

Fixes and improvements

  • improved speed of some primitives for vectors (for linux,osx)

  • block thread socket usage, other than above

  • .z.pc was not firing if a timeout occurred in the process whilst it was awaiting a response to a sync request.

  • code submitted as text via ipc was not identifying comments if they followed a \n, since 2.8 2011.10.06

    q)raze -4! "/ Comment1\n{};\n/ Comment2"

2012.02.02

(solaris builds only)

Fixes and improvements

  • peach was crashing on Solaris only since 2.7 2011.09.14

2012.01.26

New

  • Optionally allow tables to be missing from partitions, by scanning partitions for missing tables and taking the

    tables' prototypes from the last partition. After loading/re-loading from the filesystem, invoke .Q.bv[]
    to (re)populate .Q.vt/.Q.vp, which are used inside .Q.p1 during the partitioned select .Q.ps.

Fixes and improvements

  • Block -ve number of slave threads as a cmd line arg; now throws 'bad slave arg

  • invoking gc in combination with a single slave thread (probably a useless configuration) was crashing.

  • system (on unix) now has a much reduced memory requirement.

  • A connection could be dropped if a msg was pending on a socket, and processing due to another socket caused those msgs to be read; since v1.0.

  • Selecting a splay table from itself caused either a wsful or crash

    q)system"cd /tmp";system"mkdir t";system"cd t";`:2012.01.01/t/ set([]foo:1 2);system"l .";
    q)select t,1 from t

2012.01.05

(m32 only)

Fixes and improvements

  • m32 build was throwing ___emutls_get_address on some osx systems.

2012.01.04

Fixes and improvements

  • added release of s32 build

  • delete key from dict was crashing

    q)d:`x`y`z!(100 200 300);delete x from `d;

2012.01.02

Fixes and improvements

  • added release of w32 build (s32 coming later)

  • hopen timeout was sometimes not working

2011.12.21

Fixes and improvements

  • release of 32bit builds (m32,v32,l32)

2011.12.19

Fixes and improvements

  • allow any int type as exit argument.

    e.g. exit 0i
  • compressing empty files was resulting in a file that could not be read - arises with nested vectors with a single distinct value.

    e.g. q)(`:fooz;17;2;9) set 1000#enlist"";get`:foo
  • q.k - uncommented .Q.ind

  • q.k - redid uj. Was inconsitent with types returned when nested lists were involved.

    e.g.q)a:([id:1 2 3 4]a:4 5 6 8);b:([id:1 3]b:(4 6;6 7 8));0N!a uj b;0N!b uj a
  • q.k - redid ww

  • in multithreaded input queue mode (i.e. listening on a -ve port) allow updates from sockets on the main thread.

  • removed restriction of existing connections when switching in and out of multithreaded input queue mode.

2011.12.06

Fixes and improvements

  • was crashing if wrong types passed to -19!x, also via set

    e.g. q)(`:splay/;``a((17 2 9);(15 2 5)))set([]a:1000?10) / missing ! in dict definition
  • update c:`a`b!1 2 from ([]c:()) was crashing

  • q.k - typecheck for til

  • append to a compressed file containing a nested vector could corrupt that file causing wsful or seg fault when next read.

    e.g. q)t:([]c:2#enlist 10?.Q.a);(`:test/;17;2;9)set t;`:test/ upsert t;-8!get`:test
  • protected eval was not accepting handles as int

    e.g. q)h:hopen`::5001;@[h;"5?10";{x}]
  • reallow `a _ dict

    e.g. q)`one _ `one`two`three!3#()
  • redo take, and check for rank error in dot

    q)f:{(y;z;x)};f . (3+4294967296)#.Q.a,(::) / should throw 'rank
    q)f . (3+2147483648)#.Q.a,(::)  / crashed

2011.11.28

Fixes and improvements

  • hclose now accepts int and long as handles

  • append to mapped files could result in undefined behaviour

  • allow a dict of filenames!zipParams to be passed with set or -19!x. The ` entry in the dict is the default zipParams,

    or if no ` specified then default will be do not compress.
    e.g. q)(`:splay/;``a`b!((17;2;9);(17;2;6);(17;2;6)))set([]a:asc 1000000?10;b:asc 1000000?10;c:asc 1000000?10)

2011.11.25

Fixes and improvements

  • floor .z.z no longer makes sense, so throws 'use "d"$

  • q.k - wj and wj1 are now consistent, in that they both are [] interval. wj includes prevailing. wj1 does not.

    extended for any number of fields.
  • File compression - algorithm 0 (no compression) now writes out the raw non-compressed data, with no block/meta info.

  • Appending to a compressed file on windows could corrupt the file.

  • Allows nested type 20(`sym$)

    e.g. q)t:([]s:enlist`a`b`c);`:sym?exec distinct raze s from t;update `sym$/:s from `t;`:t/ set t
  • Block rewrites of q2 files and block appends to q2 files.

  • Append to enums was slow (rewrote complete file).

    e.g. q)do[10;`:foo upsert `bar?1000000?`3]
  • Allow type J handles.

    e.g. q)1"asdf"

2011.11.23

Fixes and improvements

  • system command now uses unique filenames across processes

  • delete from `t was crashing

    e.g. t:([]a:();b:());delete b from `t
  • 1: non-zeros being parsed as booleans are now interpreted as 1b.

    e.g. ("bbb";1 1 1)1:0x000102

2011.11.22

NUC (Not Upwardly Compatible)

Not backward compatible. Changes existing behavior.

  • date+time now returns timestamp type. Previously it returned datetime.

    e.g. q).z.D+.z.T

New

  • Added syntax of \t:n expr which is short for \t do[n;expr]

  • Vectors are no longer limited to 2 billion elements as they now have a 64bit length.

  • The default integer is no longer 32bit, it is 64bit. i.e. in k/q 0 is short-hand for 0j. 0i represents a 32bit int.

  • The return type from count, find, floor,... are 64bit.

  • There will be some NUCs when performing operations like 0^int() as this now returns a vector of 64bit ints.

  • Shared libraries that are loaded into kdb+ must be recompiled using the new k header, and some function signatures have widened some of their types.