@BeforeClass public void setUp() { tester = new RuleTester( ImmutableList.of(), ImmutableMap.of( JOIN_DISTRIBUTION_TYPE, JoinDistributionType.AUTOMATIC.name(), JOIN_REORDERING_STRATEGY, JoinReorderingStrategy.AUTOMATIC.name()), Optional.of(4)); }
JOIN_REORDERING_STRATEGY, format("The join reordering strategy to use. Options are %s", Stream.of(JoinReorderingStrategy.values()) .map(JoinReorderingStrategy::name) .collect(joining(","))), featuresConfig.getJoinReorderingStrategy(), false, value -> JoinReorderingStrategy.valueOf(((String) value).toUpperCase()), JoinReorderingStrategy::name), new PropertyMetadata<>(
JOIN_REORDERING_STRATEGY, format("The join reordering strategy to use. Options are %s", Stream.of(JoinReorderingStrategy.values()) .map(JoinReorderingStrategy::name) .collect(joining(","))), featuresConfig.getJoinReorderingStrategy(), false, value -> JoinReorderingStrategy.valueOf(((String) value).toUpperCase()), JoinReorderingStrategy::name), new PropertyMetadata<>(
public TestTpchCostBasedPlan() { super(() -> { String catalog = "local"; SessionBuilder sessionBuilder = testSessionBuilder() .setCatalog(catalog) .setSchema("sf3000.0") .setSystemProperty("task_concurrency", "1") // these tests don't handle exchanges from local parallel .setSystemProperty(JOIN_REORDERING_STRATEGY, JoinReorderingStrategy.AUTOMATIC.name()) .setSystemProperty(JOIN_DISTRIBUTION_TYPE, JoinDistributionType.AUTOMATIC.name()); LocalQueryRunner queryRunner = LocalQueryRunner.queryRunnerWithFakeNodeCountForStats(sessionBuilder.build(), 8); queryRunner.createCatalog( catalog, new TpchConnectorFactory(1, false, false), ImmutableMap.of(TPCH_COLUMN_NAMING_PROPERTY, ColumnNaming.SIMPLIFIED.name())); return queryRunner; }); }
public TestTpcdsCostBasedPlan() { super(() -> { String catalog = "local"; Session.SessionBuilder sessionBuilder = testSessionBuilder() .setCatalog(catalog) .setSchema("sf3000.0") .setSystemProperty("task_concurrency", "1") // these tests don't handle exchanges from local parallel .setSystemProperty(JOIN_REORDERING_STRATEGY, JoinReorderingStrategy.AUTOMATIC.name()) .setSystemProperty(JOIN_DISTRIBUTION_TYPE, JoinDistributionType.AUTOMATIC.name()); LocalQueryRunner queryRunner = LocalQueryRunner.queryRunnerWithFakeNodeCountForStats(sessionBuilder.build(), 8); queryRunner.createCatalog( catalog, new TpcdsConnectorFactory(1), ImmutableMap.of()); return queryRunner; }); }
@BeforeClass public void setUp() { tester = new RuleTester( ImmutableList.of(), ImmutableMap.of( JOIN_DISTRIBUTION_TYPE, JoinDistributionType.AUTOMATIC.name(), JOIN_REORDERING_STRATEGY, JoinReorderingStrategy.AUTOMATIC.name()), Optional.of(4)); }
protected Session noJoinReordering() { return Session.builder(getSession()) .setSystemProperty(JOIN_REORDERING_STRATEGY, JoinReorderingStrategy.NONE.name()) .setSystemProperty(JOIN_DISTRIBUTION_TYPE, JoinDistributionType.PARTITIONED.name()) .build(); } }