Search in sources :

Example 21 with FeaturesConfig

use of io.trino.FeaturesConfig in project trino by trinodb.

the class TestQuerySpillLimits method createLocalQueryRunner.

private LocalQueryRunner createLocalQueryRunner(NodeSpillConfig nodeSpillConfig) {
    LocalQueryRunner queryRunner = LocalQueryRunner.builder(SESSION).withFeaturesConfig(new FeaturesConfig().setSpillerSpillPaths(spillPath.getAbsolutePath()).setSpillEnabled(true)).withNodeSpillConfig(nodeSpillConfig).withAlwaysRevokeMemory().build();
    queryRunner.createCatalog(SESSION.getCatalog().get(), new TpchConnectorFactory(1), ImmutableMap.of());
    return queryRunner;
}
Also used : TpchConnectorFactory(io.trino.plugin.tpch.TpchConnectorFactory) FeaturesConfig(io.trino.FeaturesConfig) LocalQueryRunner(io.trino.testing.LocalQueryRunner)

Aggregations

FeaturesConfig (io.trino.FeaturesConfig)21 Test (org.testng.annotations.Test)13 SessionPropertyManager (io.trino.metadata.SessionPropertyManager)5 AllColumns (io.trino.sql.tree.AllColumns)5 CreateMaterializedView (io.trino.sql.tree.CreateMaterializedView)5 AllowAllAccessControl (io.trino.security.AllowAllAccessControl)4 TypeOperators (io.trino.spi.type.TypeOperators)4 TpchConnectorFactory (io.trino.plugin.tpch.TpchConnectorFactory)3 LocalQueryRunner (io.trino.testing.LocalQueryRunner)3 BlockTypeOperators (io.trino.type.BlockTypeOperators)3 Session (io.trino.Session)2 TestingBlockEncodingSerde (io.trino.spi.block.TestingBlockEncodingSerde)2 PropertyMetadata.integerProperty (io.trino.spi.session.PropertyMetadata.integerProperty)2 PropertyMetadata.stringProperty (io.trino.spi.session.PropertyMetadata.stringProperty)2 Identifier (io.trino.sql.tree.Identifier)2 Property (io.trino.sql.tree.Property)2 BeforeClass (org.testng.annotations.BeforeClass)2 BeforeMethod (org.testng.annotations.BeforeMethod)2 TestingHttpClient (io.airlift.http.client.testing.TestingHttpClient)1 NodeInfo (io.airlift.node.NodeInfo)1