You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by "Ricky Nguyen (Resolved) (JIRA)" <ji...@apache.org> on 2012/03/26 18:24:28 UTC

[jira] [Resolved] (OODT-429) filemgr query throws NPE when sorting by key with possibly empty values

     [ https://issues.apache.org/jira/browse/OODT-429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ricky Nguyen resolved OODT-429.
-------------------------------

    Resolution: Fixed

Committed revision 1305428.
                
> 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