/** * Sets coordinator properties being equal to a map containing given key and value. * Note, that calling this method OVERWRITES previously set property values. * As a result, it should only be used when only one coordinator property needs to be set. */ public Builder setSingleCoordinatorProperty(String key, String value) { return setCoordinatorProperties(ImmutableMap.of(key, value)); }
/** * Sets coordinator properties being equal to a map containing given key and value. * Note, that calling this method OVERWRITES previously set property values. * As a result, it should only be used when only one coordinator property needs to be set. */ public Builder setSingleCoordinatorProperty(String key, String value) { return setCoordinatorProperties(ImmutableMap.of(key, value)); }
public static DistributedQueryRunner createQueryRunner(Map<String, String> extraProperties, Map<String, String> coordinatorProperties) throws Exception { Session session = testSessionBuilder() .setSource("test") .setCatalog("tpcds") .setSchema("sf1") .build(); DistributedQueryRunner queryRunner = DistributedQueryRunner.builder(session) .setNodeCount(4) .setExtraProperties(extraProperties) .setCoordinatorProperties(coordinatorProperties) .build(); try { queryRunner.installPlugin(new TpcdsPlugin()); queryRunner.createCatalog("tpcds", "tpcds"); return queryRunner; } catch (Exception e) { queryRunner.close(); throw e; } }
public static DistributedQueryRunner createQueryRunner(Map<String, String> extraProperties, Map<String, String> coordinatorProperties) throws Exception { Session session = testSessionBuilder() .setSource("test") .setCatalog("tpcds") .setSchema("sf1") .build(); DistributedQueryRunner queryRunner = DistributedQueryRunner.builder(session) .setNodeCount(4) .setExtraProperties(extraProperties) .setCoordinatorProperties(coordinatorProperties) .build(); try { queryRunner.installPlugin(new TpcdsPlugin()); queryRunner.createCatalog("tpcds", "tpcds"); return queryRunner; } catch (Exception e) { queryRunner.close(); throw e; } }