修改presto新版源码让他支持redash数据库
因为hive里有很多外部表,presto并不能支持读取格式
然而不知道某版本后,他又很恶心的报了一个
outputFormat should not be accessed from a null StorageFormat的exception,然后让他不能
因此我把0.179版本的代码修改了一下,发现只需要把
public String getOutputFormat()
{
if (outputFormat == null) {
return "null";
//throw new IllegalStateException("outputFormat should not be accessed from a null StorageFormat1");
}
return outputFormat;
}
代码注释掉就能稳定运行了,不知道大神是怎么想的哦
presto的 odbc也不支持tableau的,这几天有空也要修改一下