1. OpenJPA
  2. OPENJPA-845

Ordering across slice fails when ordering terms are not included in projection items


    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-M1
    • Component/s: slice
    • Labels:


      Query 1: select p from Person p ORDER BY
      Query 2: select p, from Person p ORDER BY

      Query 1 fails, Query 2 succeeds. The in-memory ordering required for Query 1 in terms needed to extract the ordering value from a Person p. That logic is broken for PCPath (i.e. Inheritance hierarchy of PCPath was changed (with certain reservation as it went against the norm) to extend kernel.exps.CandidatePath so that in-memory value evaluation logic can be reused. However, the logic for CandidatePath does not work for PCPath because the internal representation of the path vary (Traversal vs. Action) and are unrelated. The result is a class cast exception (thanks to Fernando who tracked the error down).


        Pinaki Poddar created issue -
        Pinaki Poddar made changes -
        Field Original Value New Value
        Assignee Pinaki Poddar [ ]
        Pinaki Poddar made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Donald Woods made changes -
        Fix Version/s 2.0.0-M1 [ 12313624 ]
        Donald Woods made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        64d 21h 48m 1 Pinaki Poddar 26/Feb/09 17:13
        Resolved Resolved Closed Closed
        376d 1h 17m 1 Donald Woods 09/Mar/10 18:31


          • Assignee:
            Pinaki Poddar
            Pinaki Poddar
          • Votes:
            1 Vote for this issue
            0 Start watching this issue


            • Created: