----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/14239/#review29516 -----------------------------------------------------------
http://svn.apache.org/repos/asf/oozie/trunk/core/src/main/java/org/apache/oozie/command/coord/CoordCommandUtils.java <https://reviews.apache.org/r/14239/#comment56829> else block in {} http://svn.apache.org/repos/asf/oozie/trunk/core/src/main/java/org/apache/oozie/command/coord/CoordCommandUtils.java <https://reviews.apache.org/r/14239/#comment56828> Not required as checkIfBothSameType takes care of this http://svn.apache.org/repos/asf/oozie/trunk/core/src/main/java/org/apache/oozie/coord/CoordELFunctions.java <https://reviews.apache.org/r/14239/#comment56839> startInstance http://svn.apache.org/repos/asf/oozie/trunk/core/src/main/java/org/apache/oozie/coord/CoordELFunctions.java <https://reviews.apache.org/r/14239/#comment56838> startInstance = " + startInstance is equivalent to current (" + instanceCount[0] + ") but end is specified as current (" + end + ")"); http://svn.apache.org/repos/asf/oozie/trunk/core/src/test/java/org/apache/oozie/command/coord/TestCoordCommandUtils.java <https://reviews.apache.org/r/14239/#comment56835> Avoid having a lot of newlines http://svn.apache.org/repos/asf/oozie/trunk/core/src/test/java/org/apache/oozie/command/coord/TestCoordCommandUtils.java <https://reviews.apache.org/r/14239/#comment56836> This is wrong. It should have 2009-08-20 in all the asserts. Please verify code logic http://svn.apache.org/repos/asf/oozie/trunk/core/src/test/java/org/apache/oozie/command/coord/TestCoordCommandUtils.java <https://reviews.apache.org/r/14239/#comment56834> Can you make the fail() message more meaningful http://svn.apache.org/repos/asf/oozie/trunk/core/src/test/java/org/apache/oozie/coord/TestCoordELFunctions.java <https://reviews.apache.org/r/14239/#comment56833> Can you change the fail() message to "start-instance is greater than the end-instance and there was no exception" http://svn.apache.org/repos/asf/oozie/trunk/docs/src/site/twiki/CoordinatorFunctionalSpec.twiki <https://reviews.apache.org/r/14239/#comment56831> your processing - Rohini Palaniswamy On Nov. 27, 2013, 1:42 a.m., Purshotam Shah wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/14239/ > ----------------------------------------------------------- > > (Updated Nov. 27, 2013, 1:42 a.m.) > > > Review request for oozie. > > > Bugs: OOZIE-1504 > https://issues.apache.org/jira/browse/OOZIE-1504 > > > Repository: oozie > > > Description > ------- > > Use-case > ----------------------------- > A workflow that processes input datasets for the past 30 days: > <input-events> > <data-in name="event_input_path_format1" dataset="EVENT_INPUT_FORMAT1"> > <start-instance>$ > {coord:current(-30)} > </start-instance> > <end-instance>$ > {coord:current(-1)} > </end-instance> > </data-in> > <data-in name="event_input_path_format2" dataset="EVENT_INPUT_FORMAT2"> > <start-instance>$ > {coord:current(-30)} > </start-instance> > <end-instance>$ > {coord:current(-1)} > </end-instance> > </data-in> > </input-events> > Instead, one wants it to start on the same specific date so that each day, it > processes one more data set than the last day (the datasets are daily). > Something like the following is not supported > <input-events> > <data-in name="event_input_path_format1" dataset="EVENT_INPUT_FORMAT1"> > <start-instance>${coord:absolute(2013-03-15T00:00Z)}</start-instance> > <end-instance>$ > {coord:current(-1)} > </end-instance> > </data-in> > <data-in name="event_input_path_format2" dataset="EVENT_INPUT_FORMAT2"> > <start-instance>${coord:absolute(2013-03-15T00:00Z)}</start-instance> > <end-instance>$ > {coord:current(-1)} > </end-instance> > </data-in> > </input-events> > --------------------------------- > > > Fix support providing absolute value for instance range. One can have a > combination of absolute date with coord:current(). > Other EL function are not supported with absolute date. > > coord:Current() can be parameterize. > > like > <end-instance>${coord:latest(end_date)}</end-instance> // where end_date > is one of the specified property. > > > Diffs > ----- > > > http://svn.apache.org/repos/asf/oozie/trunk/core/src/main/java/org/apache/oozie/command/coord/CoordCommandUtils.java > 1544636 > > http://svn.apache.org/repos/asf/oozie/trunk/core/src/main/java/org/apache/oozie/coord/CoordELFunctions.java > 1544636 > > http://svn.apache.org/repos/asf/oozie/trunk/core/src/main/resources/oozie-default.xml > 1544636 > > http://svn.apache.org/repos/asf/oozie/trunk/core/src/test/java/org/apache/oozie/command/coord/TestCoordCommandUtils.java > 1544636 > > http://svn.apache.org/repos/asf/oozie/trunk/core/src/test/java/org/apache/oozie/coord/TestCoordELFunctions.java > 1544636 > > http://svn.apache.org/repos/asf/oozie/trunk/core/src/test/resources/coord-dataset-absolute.xml > PRE-CREATION > > http://svn.apache.org/repos/asf/oozie/trunk/docs/src/site/twiki/CoordinatorFunctionalSpec.twiki > 1544636 > > http://svn.apache.org/repos/asf/oozie/trunk/docs/src/site/twiki/WebServicesAPI.twiki > 1544636 > > Diff: https://reviews.apache.org/r/14239/diff/ > > > Testing > ------- > > Added multiple test cases to verify combination of scenarios. > > > Thanks, > > Purshotam Shah > >
