blob: 4ede0b5998b5fab926bedc73fdc1e69c5d0a12dd [file] [log] [blame]
{
"head" : {
"version" : 1,
"generator" : {
"type" : "ExplainHandler",
"info" : ""
},
"type" : "APACHE_DRILL_PHYSICAL",
"options" : [ ],
"queue" : 0,
"resultMode" : "EXEC"
},
"graph" : [ {
"pop" : "fs-scan",
"@id" : 11,
"files" : [ "maprfs:/drill/testdata/json_storage/lineitem/lineitem.json" ],
"storage" : {
"type" : "file",
"enabled" : true,
"connection" : "maprfs:///",
"workspaces" : {
"root" : {
"location" : "/",
"writable" : false,
"storageformat" : null
},
"tmp" : {
"location" : "/tmp",
"writable" : true,
"storageformat" : "csv"
},
"drillTestDir" : {
"location" : "/drill/testdata/",
"writable" : true,
"storageformat" : "parquet"
},
"drillTestDirAmplab" : {
"location" : "/drill/testdata/amplab",
"writable" : true,
"storageformat" : "parquet"
},
"drillTestDirP1" : {
"location" : "/drill/testdata/p1tests",
"writable" : true,
"storageformat" : "parquet"
},
"drillTestDirStress" : {
"location" : "/drill/testdata/stress",
"writable" : true,
"storageformat" : "parquet"
},
"drillTestDirExchanges" : {
"location" : "/drill/testdata/exchanges_test",
"writable" : true,
"storageformat" : "parquet"
},
"drillTestDirExplicit" : {
"location" : "/drill/testdata/explicit_cast",
"writable" : true,
"storageformat" : "parquet"
},
"drillTestDirInformationSchema" : {
"location" : "/drill/testdata/information_schema",
"writable" : true,
"storageformat" : "parquet"
},
"drillTestDirInformationSchemaHbase" : {
"location" : "/drill/testdata/information_schema",
"writable" : true,
"storageformat" : "parquet"
},
"drillTestDirViews" : {
"location" : "/drill/testdata/views",
"writable" : true,
"storageformat" : "parquet"
},
"drillTestDirJson" : {
"location" : "/drill/testdata/json_storage",
"writable" : true,
"storageformat" : "json"
},
"drillTestDirText" : {
"location" : "/drill/testdata/text",
"writable" : true,
"storageformat" : "text"
},
"drillTestDirUdfs" : {
"location" : "/drill/testdata/udfs",
"writable" : true,
"storageformat" : "parquet"
},
"drillTestDirDatetime" : {
"location" : "/drill/testdata/datetime/datasources/",
"writable" : true,
"storageformat" : "parquet"
}
},
"formats" : {
"psv" : {
"type" : "text",
"extensions" : [ "tbl" ],
"delimiter" : "|"
},
"csv" : {
"type" : "text",
"extensions" : [ "csv" ],
"delimiter" : ","
},
"tsv" : {
"type" : "text",
"extensions" : [ "tsv" ],
"delimiter" : "\t"
},
"parquet" : {
"type" : "parquet"
},
"json" : {
"type" : "json"
}
}
},
"format" : {
"type" : "json"
},
"selectionRoot" : "/drill/testdata/json_storage/lineitem",
"cost" : 26016.0
}, {
"pop" : "project",
"@id" : 10,
"exprs" : [ {
"ref" : "`T64¦¦*`",
"expr" : "`*`"
} ],
"child" : 11,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 26016.0
}, {
"pop" : "filter",
"@id" : 9,
"child" : 10,
"expr" : "booleanAnd(greater_than_or_equal_to(`T64¦¦l_shipdate`, cast( 775699200000 as DATE)) , less_than(`T64¦¦l_shipdate`, add(cast( 775699200000 as DATE), cast( 'P1M' as INTERVALYEAR)) ) ) ",
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 6504.0
}, {
"pop" : "selection-vector-remover",
"@id" : 7,
"child" : 9,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 6504.0
}, {
"pop" : "fs-scan",
"@id" : 8,
"files" : [ "maprfs:/drill/testdata/json_storage/part/part.json" ],
"storage" : {
"type" : "file",
"enabled" : true,
"connection" : "maprfs:///",
"workspaces" : {
"root" : {
"location" : "/",
"writable" : false,
"storageformat" : null
},
"tmp" : {
"location" : "/tmp",
"writable" : true,
"storageformat" : "csv"
},
"drillTestDir" : {
"location" : "/drill/testdata/",
"writable" : true,
"storageformat" : "parquet"
},
"drillTestDirAmplab" : {
"location" : "/drill/testdata/amplab",
"writable" : true,
"storageformat" : "parquet"
},
"drillTestDirP1" : {
"location" : "/drill/testdata/p1tests",
"writable" : true,
"storageformat" : "parquet"
},
"drillTestDirStress" : {
"location" : "/drill/testdata/stress",
"writable" : true,
"storageformat" : "parquet"
},
"drillTestDirExchanges" : {
"location" : "/drill/testdata/exchanges_test",
"writable" : true,
"storageformat" : "parquet"
},
"drillTestDirExplicit" : {
"location" : "/drill/testdata/explicit_cast",
"writable" : true,
"storageformat" : "parquet"
},
"drillTestDirInformationSchema" : {
"location" : "/drill/testdata/information_schema",
"writable" : true,
"storageformat" : "parquet"
},
"drillTestDirInformationSchemaHbase" : {
"location" : "/drill/testdata/information_schema",
"writable" : true,
"storageformat" : "parquet"
},
"drillTestDirViews" : {
"location" : "/drill/testdata/views",
"writable" : true,
"storageformat" : "parquet"
},
"drillTestDirJson" : {
"location" : "/drill/testdata/json_storage",
"writable" : true,
"storageformat" : "json"
},
"drillTestDirText" : {
"location" : "/drill/testdata/text",
"writable" : true,
"storageformat" : "text"
},
"drillTestDirUdfs" : {
"location" : "/drill/testdata/udfs",
"writable" : true,
"storageformat" : "parquet"
},
"drillTestDirDatetime" : {
"location" : "/drill/testdata/datetime/datasources/",
"writable" : true,
"storageformat" : "parquet"
}
},
"formats" : {
"psv" : {
"type" : "text",
"extensions" : [ "tbl" ],
"delimiter" : "|"
},
"csv" : {
"type" : "text",
"extensions" : [ "csv" ],
"delimiter" : ","
},
"tsv" : {
"type" : "text",
"extensions" : [ "tsv" ],
"delimiter" : "\t"
},
"parquet" : {
"type" : "parquet"
},
"json" : {
"type" : "json"
}
}
},
"format" : {
"type" : "json"
},
"selectionRoot" : "/drill/testdata/json_storage/part",
"cost" : 550.0
}, {
"pop" : "project",
"@id" : 6,
"exprs" : [ {
"ref" : "`T65¦¦*`",
"expr" : "`*`"
} ],
"child" : 8,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 550.0
}, {
"pop" : "hash-join",
"@id" : 5,
"left" : 7,
"right" : 6,
"conditions" : [ {
"relationship" : "==",
"left" : "`T64¦¦l_partkey`",
"right" : "`T65¦¦p_partkey`"
} ],
"joinType" : "INNER",
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 6504.0
}, {
"pop" : "project",
"@id" : 4,
"exprs" : [ {
"ref" : "`$f0`",
"expr" : " ( if (like(`T65¦¦p_type`, 'PROMO%') ) then (multiply(`T64¦¦l_extendedprice`, subtract(1, `T64¦¦l_discount`) ) ) else (0 ) end ) "
}, {
"ref" : "`$f1`",
"expr" : "multiply(`T64¦¦l_extendedprice`, subtract(1, `T64¦¦l_discount`) ) "
} ],
"child" : 5,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 6504.0
}, {
"pop" : "streaming-aggregate",
"@id" : 3,
"child" : 4,
"keys" : [ ],
"exprs" : [ {
"ref" : "`$f0`",
"expr" : "sum(`$f0`) "
}, {
"ref" : "`$f1`",
"expr" : "sum(`$f1`) "
} ],
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 1.0
}, {
"pop" : "project",
"@id" : 2,
"exprs" : [ {
"ref" : "`promo_revenue`",
"expr" : "divide(multiply(100.0, `$f0`) , `$f1`) "
} ],
"child" : 3,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 650.4
}, {
"pop" : "project",
"@id" : 1,
"exprs" : [ {
"ref" : "`promo_revenue`",
"expr" : "`promo_revenue`"
} ],
"child" : 2,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 650.4
}, {
"pop" : "screen",
"@id" : 0,
"child" : 1,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 650.4
} ]
}