Dear Wiki user, You have subscribed to a wiki page or wiki category on "Pig Wiki" for change notification.
The following page has been changed by PiSong: http://wiki.apache.org/pig/PlanTestingHelper ------------------------------------------------------------------------------ ==== What is Dot Language? ==== Dot language is a text graph description language. There are three main object types: node, edge, and graph. All of them can have custom attributes. + ( See http://en.wikipedia.org/wiki/DOT_language ) + ==== Sample Dot graph ==== {{{ digraph plan1 { @@ -53, +55 @@ {{{ digraph graph1 { + + node [schema="field1: int, field2: float"] /* "node" means the following nodes will inherit this attribute */ - load [key="114", type="LOLoad", schema="field1: int, field2: float"] ; - distinct [key="115", type="LODistinct", schema="field1: int, field2: float"] ; - split [key="116", type="LOSplit", schema="field1: int, field2: float"] ; - splitout1 [key="117", type="LOForEach", schema="field1: int, field2: float"] ; - splitout2 [key="117", type="LOForEach", schema="field1: int, field2: float"] + load [key="1", type="LOLoad"] ; + distinct [key="2", type="LODistinct"] ; + split [key="3", type="LOSplit"] ; + splitout1 [key="4", type="LOForEach"] ; + splitout2 [key="5", type="LOForEach"] - cross [key="119", type="LOCross", schema="field1: int, field2: float, field3: chararray"] ; + cross [key="6", type="LOCross", schema="field1: int, field2: float, field3: int, field4: float"] ; load -> distinct -> split -> splitOut1 ; split -> splitOut2 ; @@ -67, +71 @@ splitOut2 -> cross ; } }}} + And this can be translated to a plan using a loader class (API will be provided) == Compare two plans == @@ -164, +169 @@ = Current Status & Issues = * Working code will be available in 1-2 days (Today = 26th May) - * Doesn't work with inner plans yet. Inner plans may have to be constructed and compare separately. + * Doesn't work with inner plans yet. Inner plans may have to be constructed separately. == Appendix ==