[
https://issues.apache.org/jira/browse/OODT-429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13236208#comment-13236208
]
[email protected] commented on OODT-429:
----------------------------------------------------
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/4458/
-----------------------------------------------------------
Review request for oodt, Chris Mattmann, brian Foster, Paul Ramirez, Sheryl
John, and Thomas Bennett.
Summary
-------
putting nulls last
This addresses bug OODT-429.
https://issues.apache.org/jira/browse/OODT-429
Diffs
-----
trunk/filemgr/src/main/java/org/apache/oodt/cas/filemgr/structs/query/QueryResultComparator.java
1303205
trunk/filemgr/src/test/org/apache/oodt/cas/filemgr/structs/query/TestQueryResultComparator.java
PRE-CREATION
Diff: https://reviews.apache.org/r/4458/diff
Testing
-------
wrote unit test
Thanks,
Ricky
> filemgr query throws NPE when sorting by key with possibly empty values
> -----------------------------------------------------------------------
>
> Key: OODT-429
> URL: https://issues.apache.org/jira/browse/OODT-429
> Project: OODT
> Issue Type: Bug
> Components: file manager
> Affects Versions: 0.3
> Reporter: Ricky Nguyen
> Fix For: 0.4
>
>
> For a given met element, if any product has a null value, the entire sort
> fails with NPE.
> We should decide whether nulls appear at the beginning or the end of such a
> sort. My vote is at the end, since nulls are usually the least interesting
> value.
> However, consider the use case of sorting by ProductReceivedTime. Sort only
> occurs in ascending order (I am not aware of descending capability). If
> nulls appeared at the end, it would be slightly difficult to get the latest
> product (programmatically). For this type of sort, it would be useful to put
> nulls at the beginning, or even remove them altogether. Thoughts?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira