MCPcopy Create free account
hub / github.com/apache/pig / testDistinct1

Method testDistinct1

test/org/apache/pig/test/TestMRCompiler.java:866–888  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

864 }
865
866 @Test
867 public void testDistinct1() throws Exception {
868 PhysicalPlan php = new PhysicalPlan();
869 PhysicalPlan ldFil1 = GenPhyOp.loadedFilter();
870 php.merge(ldFil1);
871
872 PODistinct op = new PODistinct(new OperatorKey("", r.nextLong()),
873 -1, null);
874
875 php.addAsLeaf(op);
876
877 PhysicalPlan grpChain1 = GenPhyOp.grpChain();
878 php.merge(grpChain1);
879 php.connect(op,grpChain1.getRoots().get(0));
880
881 PODistinct op1 = new PODistinct(new OperatorKey("", r.nextLong()),
882 -1, null);
883
884 php.addAsLeaf(op1);
885 POStore st = GenPhyOp.topStoreOp();
886 php.addAsLeaf(st);
887 run(php, "test/org/apache/pig/test/data/GoldenFiles/MRC16.gld");
888 }
889
890 @Test
891 public void testLimit() throws Exception {

Callers

nothing calls this directly

Calls 10

loadedFilterMethod · 0.95
grpChainMethod · 0.95
connectMethod · 0.95
topStoreOpMethod · 0.95
runMethod · 0.95
addAsLeafMethod · 0.80
getRootsMethod · 0.80
getMethod · 0.65
mergeMethod · 0.45
nextLongMethod · 0.45

Tested by

no test coverage detected