【异常】Cannot construct instance of `com.facebook.presto.jdbc.internal.client.QueryResults`, problem: stats is null

一、异常内容

Caused by: com.facebook.presto.jdbc.internal.jackson.databind.exc.InvalidDefinitionException: 
Cannot construct instance of `com.facebook.presto.jdbc.internal.client.QueryResults`, problem: stats is null

二、解决方式

设置以下下面的session熟悉就可以了

connection.setSessionProperty("enable_hive_syntax","true");

猜你喜欢

转载自www.cnblogs.com/756623607-zhang/p/12811474.html