Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- == Parsed Logical Plan ==
- 'Aggregate ['source, 'first_leg, 'second_leg, 'dest], ['one.sourcehub AS source#449, 'one.mappedhub AS first_leg#450, 'two.mappedhub AS second_leg#451, 'one.destinationhub AS dest#452]
- +- 'Join Inner, ((('two.sourcehub = 'one.mappedhub) && ('three.sourcehub = 'two.mappedhub)) && (('one.destinationhub = 'two.destinationhub) && ('two.destinationhub = 'three.destinationhub)))
- :- 'Join Inner
- : :- 'SubqueryAlias one
- : : +- 'Project [*]
- : : +- 'UnresolvedRelation `network_design`
- : +- 'SubqueryAlias two
- : +- 'Project [*]
- : +- 'UnresolvedRelation `network_design`
- +- 'SubqueryAlias three
- +- 'Project [*]
- +- 'UnresolvedRelation `network_design`
- == Analyzed Logical Plan ==
- source: string, first_leg: string, second_leg: string, dest: string
- Aggregate [sourcehub#407, mappedhub#409, mappedhub#467, destinationhub#408], [sourcehub#407 AS source#449, mappedhub#409 AS first_leg#450, mappedhub#467 AS second_leg#451, destinationhub#408 AS dest#452]
- +- Join Inner, (((sourcehub#465 = mappedhub#409) && (sourcehub#468 = mappedhub#467)) && ((destinationhub#408 = destinationhub#466) && (destinationhub#466 = destinationhub#469)))
- :- Join Inner
- : :- SubqueryAlias one
- : : +- Project [sourcehub#407, destinationhub#408, mappedhub#409]
- : : +- SubqueryAlias network_design
- : : +- Project [sourcehub#407, destinationhub#408, mappedhub#409]
- : : +- SubqueryAlias network_file
- : : +- HiveTableRelation `test`.`network_file`, org.apache.hadoop.hive.ql.io.orc.OrcSerde, [sourcehub#407, destinationhub#408, mappedhub#409]
- : +- SubqueryAlias two
- : +- Project [sourcehub#465, destinationhub#466, mappedhub#467]
- : +- SubqueryAlias network_design
- : +- Project [sourcehub#465, destinationhub#466, mappedhub#467]
- : +- SubqueryAlias network_file
- : +- HiveTableRelation `test`.`network_file`, org.apache.hadoop.hive.ql.io.orc.OrcSerde, [sourcehub#465, destinationhub#466, mappedhub#467]
- +- SubqueryAlias three
- +- Project [sourcehub#468, destinationhub#469, mappedhub#470]
- +- SubqueryAlias network_design
- +- Project [sourcehub#468, destinationhub#469, mappedhub#470]
- +- SubqueryAlias network_file
- +- HiveTableRelation `test`.`network_file`, org.apache.hadoop.hive.ql.io.orc.OrcSerde, [sourcehub#468, destinationhub#469, mappedhub#470]
- == Optimized Logical Plan ==
- Aggregate [sourcehub#407, mappedhub#409, mappedhub#467, destinationhub#408], [sourcehub#407 AS source#449, mappedhub#409 AS first_leg#450, mappedhub#467 AS second_leg#451, destinationhub#408 AS dest#452]
- +- Project [sourcehub#407, destinationhub#408, mappedhub#409, mappedhub#467]
- +- Join Inner, ((sourcehub#468 = mappedhub#467) && (destinationhub#466 = destinationhub#469))
- :- Project [sourcehub#407, destinationhub#408, mappedhub#409, destinationhub#466, mappedhub#467]
- : +- Join Inner, ((sourcehub#465 = mappedhub#409) && (destinationhub#408 = destinationhub#466))
- : :- Filter (isnotnull(mappedhub#409) && isnotnull(destinationhub#408))
- : : +- InMemoryRelation [sourcehub#407, destinationhub#408, mappedhub#409], true, 10000, StorageLevel(disk, memory, deserialized, 1 replicas)
- : : +- HiveTableScan [sourcehub#0, destinationhub#1, mappedhub#2], HiveTableRelation `test`.`network_file`, org.apache.hadoop.hive.ql.io.orc.OrcSerde, [sourcehub#0, destinationhub#1, mappedhub#2]
- : +- Filter ((isnotnull(sourcehub#465) && isnotnull(destinationhub#466)) && isnotnull(mappedhub#467))
- : +- InMemoryRelation [sourcehub#465, destinationhub#466, mappedhub#467], true, 10000, StorageLevel(disk, memory, deserialized, 1 replicas)
- : +- HiveTableScan [sourcehub#0, destinationhub#1, mappedhub#2], HiveTableRelation `test`.`network_file`, org.apache.hadoop.hive.ql.io.orc.OrcSerde, [sourcehub#0, destinationhub#1, mappedhub#2]
- +- Project [sourcehub#468, destinationhub#469]
- +- Filter (isnotnull(destinationhub#469) && isnotnull(sourcehub#468))
- +- InMemoryRelation [sourcehub#468, destinationhub#469, mappedhub#470], true, 10000, StorageLevel(disk, memory, deserialized, 1 replicas)
- +- HiveTableScan [sourcehub#0, destinationhub#1, mappedhub#2], HiveTableRelation `test`.`network_file`, org.apache.hadoop.hive.ql.io.orc.OrcSerde, [sourcehub#0, destinationhub#1, mappedhub#2]
- == Physical Plan ==
- *HashAggregate(keys=[sourcehub#407, mappedhub#409, mappedhub#467, destinationhub#408], functions=[], output=[source#449, first_leg#450, second_leg#451, dest#452])
- +- Exchange hashpartitioning(sourcehub#407, mappedhub#409, mappedhub#467, destinationhub#408, 200)
- +- *HashAggregate(keys=[sourcehub#407, mappedhub#409, mappedhub#467, destinationhub#408], functions=[], output=[sourcehub#407, mappedhub#409, mappedhub#467, destinationhub#408])
- +- *Project [sourcehub#407, destinationhub#408, mappedhub#409, mappedhub#467]
- +- *BroadcastHashJoin [mappedhub#467, destinationhub#466], [sourcehub#468, destinationhub#469], Inner, BuildRight
- :- *Project [sourcehub#407, destinationhub#408, mappedhub#409, destinationhub#466, mappedhub#467]
- : +- *BroadcastHashJoin [mappedhub#409, destinationhub#408], [sourcehub#465, destinationhub#466], Inner, BuildRight
- : :- *Filter (isnotnull(mappedhub#409) && isnotnull(destinationhub#408))
- : : +- InMemoryTableScan [sourcehub#407, destinationhub#408, mappedhub#409], [isnotnull(mappedhub#409), isnotnull(destinationhub#408)]
- : : +- InMemoryRelation [sourcehub#407, destinationhub#408, mappedhub#409], true, 10000, StorageLevel(disk, memory, deserialized, 1 replicas)
- : : +- HiveTableScan [sourcehub#0, destinationhub#1, mappedhub#2], HiveTableRelation `test`.`network_file`, org.apache.hadoop.hive.ql.io.orc.OrcSerde, [sourcehub#0, destinationhub#1, mappedhub#2]
- : +- BroadcastExchange HashedRelationBroadcastMode(List(input[0, string, false], input[1, string, false]))
- : +- *Filter ((isnotnull(sourcehub#465) && isnotnull(destinationhub#466)) && isnotnull(mappedhub#467))
- : +- InMemoryTableScan [sourcehub#465, destinationhub#466, mappedhub#467], [isnotnull(sourcehub#465), isnotnull(destinationhub#466), isnotnull(mappedhub#467)]
- : +- InMemoryRelation [sourcehub#465, destinationhub#466, mappedhub#467], true, 10000, StorageLevel(disk, memory, deserialized, 1 replicas)
- : +- HiveTableScan [sourcehub#0, destinationhub#1, mappedhub#2], HiveTableRelation `test`.`network_file`, org.apache.hadoop.hive.ql.io.orc.OrcSerde, [sourcehub#0, destinationhub#1, mappedhub#2]
- +- BroadcastExchange HashedRelationBroadcastMode(List(input[0, string, false], input[1, string, false]))
- +- *Filter (isnotnull(destinationhub#469) && isnotnull(sourcehub#468))
- +- InMemoryTableScan [sourcehub#468, destinationhub#469], [isnotnull(destinationhub#469), isnotnull(sourcehub#468)]
- +- InMemoryRelation [sourcehub#468, destinationhub#469, mappedhub#470], true, 10000, StorageLevel(disk, memory, deserialized, 1 replicas)
- +- HiveTableScan [sourcehub#0, destinationhub#1, mappedhub#2], HiveTableRelation `test`.`network_file`, org.apache.hadoop.hive.ql.io.orc.OrcSerde, [sourcehub#0, destinationhub#1, mappedhub#2]
Add Comment
Please, Sign In to add comment