> On April 6, 2015, 4 p.m., Himanshu Gahlaut wrote:
> > lens-cli/src/main/java/org/apache/lens/cli/commands/LensCubeCommands.java, 
> > line 160
> > <https://reviews.apache.org/r/32871/diff/1/?file=916304#file916304line160>
> >
> >     Can we have a @NonNull constraint on Date object in DateTime one 
> > argument constructor ? It will make sure that dateTime.getDate() can never 
> > be null and we will not have to handle it here.
> >     
> >     Also accesslevel of NoArgsConstructor of DateTime which is only 
> > required for JAXB can be reduced to AccessLevel.PACKAGE.
> 
> Rajat Khandelwal wrote:
>     I don't think making Date object non null makes sense here. Then we might 
> as well use a Date object directly instead of DateTime. And now that I think 
> of it, we can just use `Optional<Date>` instead of `DateTime`.

I guess Date is wrapped in DateTime for JAXB serialization/deserialization. 
Date is not Optional in DateTime. If DateTime entity is sent back from 
lens-server, then it shall always have  a Date object in it, otherwise 
lens-server should throw exception.


> On April 6, 2015, 4 p.m., Himanshu Gahlaut wrote:
> > lens-cli/src/test/java/org/apache/lens/cli/TestLensCubeCommands.java, line 
> > 57
> > <https://reviews.apache.org/r/32871/diff/1/?file=916305#file916305line57>
> >
> >     Please consider adding separate modular test case for new command.
> 
> Rajat Khandelwal wrote:
>     I wanted to have minimal diff. Cleanup of test cases can be separate 
> task. We have several issues: modularity, relative paths, coverage etc.

For new commands, we shall try to add them as separate test methods. Adding 
newer test cases is unrelated to cleaning existing test cases.


- Himanshu


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32871/#review78924
-----------------------------------------------------------


On April 6, 2015, 7:24 a.m., Rajat Khandelwal wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32871/
> -----------------------------------------------------------
> 
> (Updated April 6, 2015, 7:24 a.m.)
> 
> 
> Review request for lens.
> 
> 
> Bugs: LENS-474
>     https://issues.apache.org/jira/browse/LENS-474
> 
> 
> Repository: lens
> 
> 
> Description
> -------
> 
> added method
> 
> 
> Diffs
> -----
> 
>   lens-cli/src/main/java/org/apache/lens/cli/commands/BaseLensCommand.java 
> cdfdbe84c75640f438c887166ead8f64bbdda3f2 
>   lens-cli/src/main/java/org/apache/lens/cli/commands/LensCubeCommands.java 
> 9d835da2c30e096ca77558e075930f0d912e8c17 
>   lens-cli/src/test/java/org/apache/lens/cli/TestLensCubeCommands.java 
> 41f2c9336c3ec25ecfbe8ba289eab462d69844d5 
>   lens-cli/src/test/java/org/apache/lens/cli/TestLensFactCommands.java 
> f22515508cd4ceaf7b67ba4cb40ce0df8bf2ac6a 
>   lens-client/src/main/java/org/apache/lens/client/LensClient.java 
> 8f1b7e18c1cc1a44bfd3c34dc84d9aad86902c9f 
>   lens-client/src/main/java/org/apache/lens/client/LensMetadataClient.java 
> 3462dc3d6af807ef248e9ee0fbdff27cd0137b2c 
> 
> Diff: https://reviews.apache.org/r/32871/diff/
> 
> 
> Testing
> -------
> 
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] Lens Checkstyle Rules ............................. SUCCESS [2.150s]
> [INFO] Lens .............................................. SUCCESS [2.268s]
> [INFO] Lens API .......................................... SUCCESS [5.534s]
> [INFO] Lens API for server and extensions ................ SUCCESS [6.637s]
> [INFO] Lens Cube ......................................... SUCCESS [2:16.913s]
> [INFO] Lens DB storage ................................... SUCCESS [10.299s]
> [INFO] Lens Query Library ................................ SUCCESS [5.522s]
> [INFO] Lens Hive Driver .................................. SUCCESS [2:33.670s]
> [INFO] Lens Driver for JDBC .............................. SUCCESS [18.866s]
> [INFO] Lens Server ....................................... SUCCESS [4:27.024s]
> [INFO] Lens client ....................................... SUCCESS [20.632s]
> [INFO] Lens CLI .......................................... SUCCESS [2:42.824s]
> [INFO] Lens Examples ..................................... SUCCESS [0.848s]
> [INFO] Lens Distribution ................................. SUCCESS [10.130s]
> [INFO] Lens ML Lib ....................................... SUCCESS [1:02.403s]
> [INFO] Lens ML Ext Distribution .......................... SUCCESS [2.515s]
> [INFO] Lens Regression ................................... SUCCESS [0.483s]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 14:29.632s
> [INFO] Finished at: Mon Apr 06 07:11:15 UTC 2015
> [INFO] Final Memory: 108M/944M
> [INFO] 
> ------------------------------------------------------------------------
> 
> 
> Thanks,
> 
> Rajat Khandelwal
> 
>

Reply via email to