Session session = new Session("user", "test", "default", "default", null, null);
LocalQueryRunner localQueryRunner = new LocalQueryRunner(session, executor);
// add sampled tpch
InMemoryNodeManager nodeManager = localQueryRunner.getNodeManager();
localQueryRunner.createCatalog("tpch_sampled", new SampledTpchConnectorFactory(nodeManager, 1, 2), ImmutableMap.<String, String>of());
// add native
MetadataManager metadata = localQueryRunner.getMetadata();
NativeConnectorFactory nativeConnectorFactory = createNativeConnectorFactory(nodeManager, metadata, System.getProperty("tpchSampledCacheDir", "/tmp/tpch_sampled_data_cache"));
localQueryRunner.createCatalog("default", nativeConnectorFactory, ImmutableMap.<String, String>of());