blob: e8167f13e354dffe774db07ff348058c562c3a90 [file] [log] [blame]
{
"head" : {
"version" : 1,
"generator" : {
"type" : "ExplainHandler",
"info" : ""
},
"type" : "APACHE_DRILL_PHYSICAL",
"options" : [ ],
"queue" : 0,
"resultMode" : "EXEC"
},
"graph" : [ {
"pop" : "fs-scan",
"@id" : 36,
"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" : 33,
"exprs" : [ {
"ref" : "`T14¦¦*`",
"expr" : "`*`"
} ],
"child" : 36,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 550.0
}, {
"pop" : "filter",
"@id" : 30,
"child" : 33,
"expr" : "equal(cast( (`T14¦¦p_type` ) as VARCHAR(20) ), 'PROMO BRUSHED COPPER') ",
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 82.5
}, {
"pop" : "selection-vector-remover",
"@id" : 27,
"child" : 30,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 82.5
}, {
"pop" : "fs-scan",
"@id" : 21,
"files" : [ "maprfs:/drill/testdata/json_storage/customer/customer.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/customer",
"cost" : 457.0
}, {
"pop" : "project",
"@id" : 18,
"exprs" : [ {
"ref" : "`T16¦¦*`",
"expr" : "`*`"
} ],
"child" : 21,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 457.0
}, {
"pop" : "fs-scan",
"@id" : 29,
"files" : [ "maprfs:/drill/testdata/json_storage/orders/orders.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/orders",
"cost" : 4403.0
}, {
"pop" : "project",
"@id" : 26,
"exprs" : [ {
"ref" : "`T15¦¦*`",
"expr" : "`*`"
} ],
"child" : 29,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 4403.0
}, {
"pop" : "filter",
"@id" : 24,
"child" : 26,
"expr" : "booleanAnd(greater_than_or_equal_to(`T15¦¦o_orderdate`, cast( 788918400000 as DATE)) , less_than_or_equal_to(`T15¦¦o_orderdate`, cast( 851990400000 as DATE)) ) ",
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 1100.75
}, {
"pop" : "selection-vector-remover",
"@id" : 22,
"child" : 24,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 1100.75
}, {
"pop" : "fs-scan",
"@id" : 10,
"files" : [ "maprfs:/drill/testdata/json_storage/nation/nation.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/nation",
"cost" : 4.0
}, {
"pop" : "project",
"@id" : 8,
"exprs" : [ {
"ref" : "`T19¦¦*`",
"expr" : "`*`"
} ],
"child" : 10,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 4.0
}, {
"pop" : "fs-scan",
"@id" : 35,
"files" : [ "maprfs:/drill/testdata/json_storage/supplier/supplier.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/supplier",
"cost" : 26.0
}, {
"pop" : "project",
"@id" : 32,
"exprs" : [ {
"ref" : "`T12¦¦*`",
"expr" : "`*`"
} ],
"child" : 35,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 26.0
}, {
"pop" : "fs-scan",
"@id" : 20,
"files" : [ "maprfs:/drill/testdata/json_storage/region/region.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/region",
"cost" : 0.0
}, {
"pop" : "project",
"@id" : 16,
"exprs" : [ {
"ref" : "`T18¦¦*`",
"expr" : "`*`"
} ],
"child" : 20,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 1.0
}, {
"pop" : "filter",
"@id" : 13,
"child" : 16,
"expr" : "equal(cast( (`T18¦¦r_name` ) as VARCHAR(11) ), 'MIDDLE EAST') ",
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 0.15
}, {
"pop" : "selection-vector-remover",
"@id" : 11,
"child" : 13,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 1.0
}, {
"pop" : "fs-scan",
"@id" : 17,
"files" : [ "maprfs:/drill/testdata/json_storage/nation/nation.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/nation",
"cost" : 4.0
}, {
"pop" : "project",
"@id" : 14,
"exprs" : [ {
"ref" : "`T17¦¦*`",
"expr" : "`*`"
} ],
"child" : 17,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 4.0
}, {
"pop" : "fs-scan",
"@id" : 34,
"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" : 31,
"exprs" : [ {
"ref" : "`T13¦¦*`",
"expr" : "`*`"
} ],
"child" : 34,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 26016.0
}, {
"pop" : "hash-join",
"@id" : 28,
"left" : 32,
"right" : 31,
"conditions" : [ {
"relationship" : "==",
"left" : "`T12¦¦s_suppkey`",
"right" : "`T13¦¦l_suppkey`"
} ],
"joinType" : "INNER",
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 26016.0
}, {
"pop" : "hash-join",
"@id" : 25,
"left" : 28,
"right" : 27,
"conditions" : [ {
"relationship" : "==",
"left" : "`T13¦¦l_partkey`",
"right" : "`T14¦¦p_partkey`"
} ],
"joinType" : "INNER",
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 26016.0
}, {
"pop" : "project",
"@id" : 23,
"exprs" : [ {
"ref" : "`T14¦¦*`",
"expr" : "`T14¦¦*`"
}, {
"ref" : "`T12¦¦*`",
"expr" : "`T12¦¦*`"
}, {
"ref" : "`T13¦¦*`",
"expr" : "`T13¦¦*`"
} ],
"child" : 25,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 26016.0
}, {
"pop" : "hash-join",
"@id" : 19,
"left" : 23,
"right" : 22,
"conditions" : [ {
"relationship" : "==",
"left" : "`T13¦¦l_orderkey`",
"right" : "`T15¦¦o_orderkey`"
} ],
"joinType" : "INNER",
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 26016.0
}, {
"pop" : "hash-join",
"@id" : 15,
"left" : 19,
"right" : 18,
"conditions" : [ {
"relationship" : "==",
"left" : "`T15¦¦o_custkey`",
"right" : "`T16¦¦c_custkey`"
} ],
"joinType" : "INNER",
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 26016.0
}, {
"pop" : "hash-join",
"@id" : 12,
"left" : 15,
"right" : 14,
"conditions" : [ {
"relationship" : "==",
"left" : "`T16¦¦c_nationkey`",
"right" : "`T17¦¦n_nationkey`"
} ],
"joinType" : "INNER",
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 26016.0
}, {
"pop" : "hash-join",
"@id" : 9,
"left" : 12,
"right" : 11,
"conditions" : [ {
"relationship" : "==",
"left" : "`T17¦¦n_regionkey`",
"right" : "`T18¦¦r_regionkey`"
} ],
"joinType" : "INNER",
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 26016.0
}, {
"pop" : "hash-join",
"@id" : 7,
"left" : 9,
"right" : 8,
"conditions" : [ {
"relationship" : "==",
"left" : "`T12¦¦s_nationkey`",
"right" : "`T19¦¦n_nationkey`"
} ],
"joinType" : "INNER",
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 26016.0
}, {
"pop" : "project",
"@id" : 6,
"exprs" : [ {
"ref" : "`o_year`",
"expr" : "extractYear(`T15¦¦o_orderdate`) "
}, {
"ref" : "`$f1`",
"expr" : " ( if (equal(cast( (`T19¦¦n_name` ) as VARCHAR(5) ), 'EGYPT') ) then (multiply(`T13¦¦l_extendedprice`, subtract(1, `T13¦¦l_discount`) ) ) else (0 ) end ) "
}, {
"ref" : "`volume`",
"expr" : "multiply(`T13¦¦l_extendedprice`, subtract(1, `T13¦¦l_discount`) ) "
} ],
"child" : 7,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 26016.0
}, {
"pop" : "hash-aggregate",
"@id" : 5,
"child" : 6,
"cardinality" : 1.0,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 13008.0,
"groupByExprs" : [ {
"ref" : "`o_year`",
"expr" : "`o_year`"
} ],
"aggrExprs" : [ {
"ref" : "`$f1`",
"expr" : "sum(`$f1`) "
}, {
"ref" : "`$f2`",
"expr" : "sum(`volume`) "
} ]
}, {
"pop" : "project",
"@id" : 4,
"exprs" : [ {
"ref" : "`o_year`",
"expr" : "`o_year`"
}, {
"ref" : "`mkt_share`",
"expr" : "divide(`$f1`, `$f2`) "
} ],
"child" : 5,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 2601.6
}, {
"pop" : "external-sort",
"@id" : 3,
"child" : 4,
"orderings" : [ {
"order" : "ASC",
"expr" : "`o_year`",
"nullDirection" : "UNSPECIFIED"
} ],
"reverse" : false,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 2601.6
}, {
"pop" : "selection-vector-remover",
"@id" : 2,
"child" : 3,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 2601.6
}, {
"pop" : "project",
"@id" : 1,
"exprs" : [ {
"ref" : "`o_year`",
"expr" : "`o_year`"
}, {
"ref" : "`mkt_share`",
"expr" : "`mkt_share`"
} ],
"child" : 2,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 2601.6
}, {
"pop" : "screen",
"@id" : 0,
"child" : 1,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : 2601.6
} ]
}