Search in sources :

Example 6 with LogicalPlan

use of org.apache.drill.common.logical.LogicalPlan in project drill by apache.

the class CheckStorageConfig method checkPlanParsing.

@Test
public void checkPlanParsing() throws Exception {
    DrillConfig config = DrillConfig.create();
    ScanResult scan = ClassPathScanner.fromPrescan(config);
    LogicalPlan plan = LogicalPlan.parse(new LogicalPlanPersistence(config, scan), FileUtils.getResourceAsString("/storage_engine_plan.json"));
}
Also used : ScanResult(org.apache.drill.common.scanner.persistence.ScanResult) DrillConfig(org.apache.drill.common.config.DrillConfig) LogicalPlan(org.apache.drill.common.logical.LogicalPlan) LogicalPlanPersistence(org.apache.drill.common.config.LogicalPlanPersistence) Test(org.junit.Test) DrillTest(org.apache.drill.test.DrillTest)

Aggregations

LogicalPlan (org.apache.drill.common.logical.LogicalPlan)6 Test (org.junit.Test)4 DrillConfig (org.apache.drill.common.config.DrillConfig)2 LogicalPlanPersistence (org.apache.drill.common.config.LogicalPlanPersistence)2 PlanProperties (org.apache.drill.common.logical.PlanProperties)2 StoragePluginConfig (org.apache.drill.common.logical.StoragePluginConfig)2 Project (org.apache.drill.common.logical.data.Project)2 Scan (org.apache.drill.common.logical.data.Scan)2 Store (org.apache.drill.common.logical.data.Store)2 PhysicalPlan (org.apache.drill.exec.physical.PhysicalPlan)2 MetricRegistry (com.codahale.metrics.MetricRegistry)1 IOException (java.io.IOException)1 NonStrictExpectations (mockit.NonStrictExpectations)1 Filter (org.apache.drill.common.logical.data.Filter)1 ScanResult (org.apache.drill.common.scanner.persistence.ScanResult)1 ExecTest (org.apache.drill.exec.ExecTest)1 FunctionImplementationRegistry (org.apache.drill.exec.expr.fn.FunctionImplementationRegistry)1 FragmentContext (org.apache.drill.exec.ops.FragmentContext)1 QueryContext (org.apache.drill.exec.ops.QueryContext)1 BasicOptimizer (org.apache.drill.exec.opt.BasicOptimizer)1