ConnectorSession session = new ConnectorSession("user", "test", "local", TpchMetadata.TINY_SCHEMA_NAME, UTC_KEY, Locale.ENGLISH, null, null);
localIndexedQueryRunner = new LocalQueryRunner(session, getExecutor());
// add the tpch catalog
// local queries run directly against the generator
localIndexedQueryRunner.createCatalog(session.getCatalog(), new IndexedTpchConnectorFactory(localIndexedQueryRunner.getNodeManager(), getTpchIndexSpec(), 1), ImmutableMap.<String, String>of());
// dump query plan to console (for debugging)
// tpchLocalQueryRunner.printPlan();
return session;