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 | |
---|---|---|---|---|
Re: [personal kdb+] Error when adding to keyed table | 1 | 0 | October 28, 2017 | |
Behaviour of Insert and Upsert in KDB | 8 | 3 | August 12, 2015 | |
How to insert data from csv into an empty table. | 4 | 2 | July 22, 2019 | |
Error when adding to keyed table | 0 | 2 | October 28, 2017 | |
Deducing non-existence & inserting only key columns | 2 | 2 | July 15, 2008 |