【发布时间】:2015-11-03 17:27:36
【问题描述】:
我正在为 phoenix 编写 upsert 脚本以在 hbase 中制作记录。
CREATE TABLE IF NOT EXISTS temp.table (
id bigint(20),
created_at timestamp,
updated_at timestamp,
CONSTRAINT pk PRIMARY KEY (id)
);
当我使用 upsert 脚本时
upsert into temp.table values(1000,'2014-07-30 13:33:45','2014-07-30 13:33:45');
我收到以下错误
Error: ERROR 203 (22005): Type mismatch. TIMESTAMP and VARCHAR for 2014-07-30 13:33:45 (state=22005,code=203)
当我使用
upsert into temp.table values(1000,13907665544,13907665544);
我得到了错误
Error: ERROR 203 (22005): Type mismatch. TIMESTAMP and LONG for 13907665544 (state=22005,code=203)
当列有timestamp时,写upsert脚本的另一种形式是什么?
【问题讨论】:
标签: hbase apache-zookeeper phoenix