KDB 附加具有不同列的表

KDB appending tables with different columns

我有两个 table,它们有一些共同的列和其他 table 没有的一些列。

atab:flip `items`sales`prices`athing!(`anut`abolt`acam`acog;6 8 0 3;10 20 15 20; 50.2 32.6 1.18 -3.9)

btab:flip `items`sales`prices`bthing!(`bnut`bbolt`bcam`bcog;6 8 0 3;10 20 15 20; 1 0 0 1)

并且我正在尝试将它们组合起来,使该列将其设置为两个 table 的并集,因此在我的例子中,列将是项目、销售额、价格、athing、bthing 以及initial table 没有相应的列,填充了一些 n/a 值

这里失败了
atab upsert btab

错误

ERROR:mismatch

有什么方法可以(轻松)做到这一点吗?

q)atab uj btab
items sales prices athing bthing
--------------------------------
anut  6     10     50.2
abolt 8     20     32.6
acam  0     15     1.18  
acog  3     20     -3.9
bnut  6     10            1
bbolt 8     20            0
bcam  0     15            0
bcog  3     20            1

http://code.kx.com/q/ref/joins/#uj-ujf-union-join