Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # dev >> Review Request 15931: PIG-3585 Implement union in Tez

Copy link to this message
Review Request 15931: PIG-3585 Implement union in Tez

This is an automatically generated e-mail. To reply, visit:

Review request for pig, Alex Bain, Daniel Dai, Mark Wagner, and Rohini Palaniswamy.
Bugs: PIG-3585
Repository: pig-git

This patch implements union as follows: load vertices -> broadcast edges -> union vertex.

Th changes include:
* In the front-end, TezCompiler converts POUnion into a new vertex and connects it to its predecessors with broadcast edges.
* In the back-end, a new POPackage class called POBroadcastTezLoad is added. This classes implements TezLoad interface, and it pulls every record from ShuffledUnorderedKVInputs in order and unions them.

  src/org/apache/pig/backend/hadoop/executionengine/physicalLayer/relationalOperators/Packager.java e49de40
  src/org/apache/pig/backend/hadoop/executionengine/tez/POBroadcastTezLoad.java e69de29
  src/org/apache/pig/backend/hadoop/executionengine/tez/PigProcessor.java 9a2b499
  src/org/apache/pig/backend/hadoop/executionengine/tez/TezCompiler.java 529bf30
  src/org/apache/pig/backend/hadoop/executionengine/tez/TezDagBuilder.java e3f5a5d
  src/org/apache/pig/backend/hadoop/executionengine/tez/TezOperator.java dcd6a5a
  test/e2e/pig/tests/tez.conf 7fd5fb1

Diff: https://reviews.apache.org/r/15931/diff/

* New e2e test case is added.
* ant test-tez passes.
* All e2e tests pass.

Cheolsoo Park