0
我正在为phoenix编写upsert脚本来制作hbase中的记录。菲尼克斯插入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脚本的其他形式是什么?
还是不行。在我的问题中存在拼写错误,我忘了在括号前面写'values'。 –