use of io.trino.Session.SessionBuilder in project trino by trinodb.
the class KuduQueryRunnerFactory method createSession.
public static Session createSession(String schema, Map<String, String> kuduSessionProperties) {
SessionBuilder builder = testSessionBuilder().setCatalog("kudu").setSchema(schema);
kuduSessionProperties.forEach((k, v) -> builder.setCatalogSessionProperty("kudu", k, v));
return builder.build();
}
Aggregations