Consider any empty keyed table t; insert of another empty tablewith the appropriate structure (e.g., t itself) will fail with a typeerrorbut upsert will succeed. I am a bit nonplussed by this behaviour;what is the rationale?q)t:([a:0#0n];b:0#`)q)upsert[t;t];q)insert[t;t];'type
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Behaviour of Insert and Upsert in KDB | 8 | 2 | August 12, 2015 | |
Re: [personal kdb+] Error when adding to keyed table | 1 | 0 | October 28, 2017 | |
simple table insert | 3 | 0 | November 14, 2012 | |
Error when adding to keyed table | 0 | 0 | October 28, 2017 | |
Deducing non-existence & inserting only key columns | 2 | 0 | July 15, 2008 |