自定义cassandra / cqlsh time_format

时间:2015-09-10 07:59:22

标签: cassandra cqlsh

系统:

CentOS 6.7 x86_64 cqlsh 5.0.1 | Cassandra 2.2.1 | CQL规范3.3.0

我在插入(复制csv文件)时间戳字段时遇到问题,格式为'%d-%m-%Y%H:%M:%S',

默认情况下不支持此格式,所以我在〜/ .cassandra / cqlshrc文件中手动创建了它:

[ui]
time_format = %d-%m-%Y %H:%M:%S

再次启动cqlsh,但我仍然无法插入:

system@cqlsh> insert into nir.nir_test (END_DATE) values ('01-09-2015 18:55:50');

InvalidRequest: code=2200 [Invalid query] message="Unable to coerce '01-09-2015 18:55:50' to a formatted date (long)"

有什么建议吗?

0 个答案:

没有答案
相关问题