aliyun / aliyun-odps-python-sdk

ODPS Python SDK and data analysis framework
http://pyodps.readthedocs.io
Apache License 2.0
434 stars 97 forks source link

to_pandas报错 #43

Closed aabbiiL closed 6 years ago

aabbiiL commented 6 years ago

ODPSError: InstanceId: 20171221102131257g9c5vlu ODPS-0130071:[0,0] Semantic analysis exception - INT type is not enabled in current mode ODPS-0130071:[0,0] Semantic analysis exception - INT type is not enabled in current mode

qinxuye commented 6 years ago

这个实际上应该是没打开 MaxCompute 的 hive 类型兼容选项。

升级到新版,然后设置选项:

from odps import options

options.sql.use_odps2_extension = True

然后重跑试下