Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cassandra COPY投诉“我的;datetime strftime()方法需要年份>;=1900“;_Cassandra_Cql_Cqlsh - Fatal编程技术网

Cassandra COPY投诉“我的;datetime strftime()方法需要年份>;=1900“;

Cassandra COPY投诉“我的;datetime strftime()方法需要年份>;=1900“;,cassandra,cql,cqlsh,Cassandra,Cql,Cqlsh,我正在尝试使用COPY命令从表中导出数据 COPY my_table to 'my_Export.csv'; 我有1900年以前的时间戳。现在cqlsh告诉我strftime()不支持这个 datetime strftime()方法要求年份>=1900 有解决办法吗?谷歌搜索错误消息只会产生大量与python相关的结果 编辑\u 1: cqlsh似乎使用thrift,thrift使用Python2,与Python3不兼容。在Python2中,1900年有这个限制。omg.cqlsh的较新版本将

我正在尝试使用COPY命令从表中导出数据

COPY my_table to 'my_Export.csv';
我有1900年以前的时间戳。现在cqlsh告诉我strftime()不支持这个

datetime strftime()方法要求年份>=1900

有解决办法吗?谷歌搜索错误消息只会产生大量与python相关的结果

编辑\u 1:
cqlsh似乎使用thrift,thrift使用Python2,与Python3不兼容。在Python2中,1900年有这个限制。omg.

cqlsh的较新版本将使用9042(cql本地传输)而不是9160(节俭),但我不确定这是否一定能解决问题(而且我没有时间进行测试)


最快的解决方案可能是使用您选择的编程语言/驱动程序编写一个简单的导出程序。

较新版本的cqlsh将使用9042(cql本地传输)而不是9160(节俭),但我不确定这是否一定能解决问题(我没有时间测试它)

最快的解决方案可能是使用您选择的编程语言/驱动程序编写一个简单的导出程序