}
@Override
protected ConnectorSession setUpQueryFramework()
{
ConnectorSession session = new ConnectorSession("user", "test", "local", TpchMetadata.TINY_SCHEMA_NAME, UTC_KEY, Locale.ENGLISH, null, null);
localQueryRunner = new LocalQueryRunner(session, getExecutor());
localSampledQueryRunner = new LocalQueryRunner(session, getExecutor());
// add the tpch catalog
// local queries run directly against the generator
localQueryRunner.createCatalog(session.getCatalog(), new TpchConnectorFactory(localQueryRunner.getNodeManager(), 1), ImmutableMap.<String, String>of());
localSampledQueryRunner.createCatalog(session.getCatalog(), new SampledTpchConnectorFactory(localSampledQueryRunner.getNodeManager(), 1, 2), ImmutableMap.<String, String>of());
localQueryRunner.getMetadata().addFunctions(CUSTOM_FUNCTIONS);
// dump query plan to console (for debugging)
// tpchLocalQueryRunner.printPlan();