add presto支持

This commit is contained in:
memorylorry
2018-09-27 09:26:12 +08:00
parent 6ce53e3203
commit d9a4511059
3 changed files with 8 additions and 2 deletions
@@ -470,7 +470,9 @@ public final class JdbcUtils implements JdbcConstants {
return JdbcConstants.ELASTIC_SEARCH_DRIVER;
} else if (rawUrl.startsWith("jdbc:clickhouse:")) {
return JdbcConstants.CLICKHOUSE_DRIVER;
} else {
} else if(rawUrl.startsWith("jdbc:presto:")) {
return JdbcConstants.PRESTO_DRIVER;
}else {
throw new SQLException("unkow jdbc driver : " + rawUrl);
}
}
@@ -563,6 +565,8 @@ public final class JdbcUtils implements JdbcConstants {
return ELASTIC_SEARCH;
} else if (rawUrl.startsWith("jdbc:clickhouse:")) {
return CLICKHOUSE;
}else if (rawUrl.startsWith("jdbc:presto:")) {
return PRESTO;
} else {
return null;
}