在使用BlazingSQL的时候,遇到了下面的错误:
Exception: java.lang.IllegalStateException: Unable to instantiate java compiler at org.apache.calcite.rel.metadata.JaninoRelMetadataProvider.compile(JaninoRelMetadataProvider.java:433) at org.apache.calcite.rel.metadata.JaninoRelMetadataProvider.load3(JaninoRelMetadataProvider.java:374) at org.apache.calcite.rel.metadata.JaninoRelMetadataProvider.lambda$static$0(JaninoRelMetadataProvider.java:109) at com.google.common.cache.CacheLoader$FunctionToCacheLoader.load(CacheLoader.java:151) ····· File "/root/bsqlserver/gce_app/libs/bsql_util.py", line 22, in jsonstr_bsql_exec gdf = bc.sql(sql) File "/usr/local/envs/bsql/lib/python3.7/site-packages/pyblazing/apiv2/context.py", line 2880, in sql except cio.RunQueryError as e: AttributeError: module 'cio' has no attribute 'RunQueryError'
可能的原因:在多个地方导入了blazingsql模块
保留一个 from blazingsql import BlazingContext 即可恢复正常