2

Snowflake から Jupyter にデータをインポートする必要があります。データセットには、タイムスタンプ値から派生した時間列があります。

データをインポートしようとするたびに、Jupyter はプロセスが失敗したと表示し、以下のエラー メッセージが表示されます。

この問題を回避するにはどうすればよいですか?

ERROR:snowflake.connector.converter:Failed to convert: field T: TIME::76493.000000000
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/snowflake/connector/converter.py", line 88, in to_python
    type_name=type_name))
AttributeError: 'SnowflakeConverter' object has no attribute '_TIME_to_python'
ERROR:snowflake.connector.cursor:failed to convert row to python
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/snowflake/connector/cursor.py", line 658, in __row_to_python
    res += (self._connection.converter.to_python(col_desc, col),)
  File "/usr/local/lib/python2.7/site-packages/snowflake/connector/converter.py", line 88, in to_python
    type_name=type_name))
AttributeError: 'SnowflakeConverter' object has no attribute '_TIME_to_python'
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line string', (1, 0))
4

1 に答える 1

0

Python コネクタのバージョンを確認できますか? このエラーは、TIME データ型が Python コネクタでサポートされていないことを示しています。TIME データ型は v1.0.6 からサポートされています。現在、最新バージョンは 1.2.8 です: https://pypi.python.org/pypi/snowflake-connector-python/

Jupyter ノートブックの TIME データ型の例を次に示します: https://gist.github.com/smtakeda/e401c80d71f2da4aa7452d238c5ccffa

于 2016-09-18T01:29:56.540 に答える