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 (Created) (JIRA)" <ji...@apache.org> on 2011/10/13 23:15:12 UTC

[jira] [Created] (OODT-334) Order of RETURN triples in XMLQuery changes "where" element set

Order of RETURN triples in XMLQuery changes "where" element set
---------------------------------------------------------------

                 Key: OODT-334
                 URL: https://issues.apache.org/jira/browse/OODT-334
             Project: OODT
          Issue Type: Bug
    Affects Versions: 0.4
            Reporter: Ricky Nguyen
             Fix For: 0.4


Given an XMLQuery:
{code}
(foo = 'yes' OR bar = 'no) AND RETURN = foo
{code}

The correct "where" element list is:
{code}
foo,'yes',EQ,bar,'no',EQ,OR
{code}

Assume the following are semantically equivalent to the original query: (if they are not equivalent, remove them from the bug description)
{code}
(1) RETURN = foo AND foo = 'yes' OR bar = 'no'
(2) foo = 'yes' OR bar = 'no' AND RETURN = foo
(3) RETURN = foo AND (foo = 'yes' OR bar = 'no')
(4) RETURN = foo AND (foo = 'yes' OR bar = 'no') AND RETURN = bar
{code}

The "where" element list for each query above is:
{code}
(1) foo,'yes',EQ,bar,'no',EQ,OR (this is correct)
(2) foo,'yes',EQ,bar,'no',EQ
(3) foo,'yes',EQ,bar,'no',EQ,OR,AND
(4) foo,'yes',EQ,bar,'no',EQ,OR,AND
{code}

Queries 2,3 and 4 are not parsed correctly.

--
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

        

[jira] [Commented] (OODT-334) Order of RETURN triples in XMLQuery changes "where" element set

Posted by "Chris A. Mattmann (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OODT-334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13127198#comment-13127198 ] 

Chris A. Mattmann commented on OODT-334:
----------------------------------------

test cases are interesting. Let me take a look.
                
> Order of RETURN triples in XMLQuery changes "where" element set
> ---------------------------------------------------------------
>
>                 Key: OODT-334
>                 URL: https://issues.apache.org/jira/browse/OODT-334
>             Project: OODT
>          Issue Type: Bug
>    Affects Versions: 0.4
>            Reporter: Ricky Nguyen
>            Assignee: Chris A. Mattmann
>             Fix For: 0.4
>
>
> Given an XMLQuery:
> {code}
> (foo = 'yes' OR bar = 'no) AND RETURN = foo
> {code}
> The correct "where" element list is:
> {code}
> foo,'yes',EQ,bar,'no',EQ,OR
> {code}
> Assume the following are semantically equivalent to the original query: (if they are not equivalent, remove them from the bug description)
> {code}
> (1) RETURN = foo AND foo = 'yes' OR bar = 'no'
> (2) foo = 'yes' OR bar = 'no' AND RETURN = foo
> (3) RETURN = foo AND (foo = 'yes' OR bar = 'no')
> (4) RETURN = foo AND (foo = 'yes' OR bar = 'no') AND RETURN = bar
> {code}
> The "where" element list for each query above is:
> {code}
> (1) foo,'yes',EQ,bar,'no',EQ,OR (this is correct)
> (2) foo,'yes',EQ,bar,'no',EQ
> (3) foo,'yes',EQ,bar,'no',EQ,OR,AND
> (4) foo,'yes',EQ,bar,'no',EQ,OR,AND
> {code}
> Queries 2,3 and 4 are not parsed correctly.

--
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

        

[jira] [Updated] (OODT-334) Order of RETURN triples in XMLQuery changes "where" element set

Posted by "Chris A. Mattmann (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OODT-334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris A. Mattmann updated OODT-334:
-----------------------------------

    Fix Version/s:     (was: 0.4)
                   0.5

- push to 0.5
                
> Order of RETURN triples in XMLQuery changes "where" element set
> ---------------------------------------------------------------
>
>                 Key: OODT-334
>                 URL: https://issues.apache.org/jira/browse/OODT-334
>             Project: OODT
>          Issue Type: Bug
>          Components: xmlps
>            Reporter: Ricky Nguyen
>            Assignee: Chris A. Mattmann
>             Fix For: 0.5
>
>
> Given an XMLQuery:
> {code}
> (foo = 'yes' OR bar = 'no) AND RETURN = foo
> {code}
> The correct "where" element list is:
> {code}
> foo,'yes',EQ,bar,'no',EQ,OR
> {code}
> Assume the following are semantically equivalent to the original query: (if they are not equivalent, remove them from the bug description)
> {code}
> (1) RETURN = foo AND foo = 'yes' OR bar = 'no'
> (2) foo = 'yes' OR bar = 'no' AND RETURN = foo
> (3) RETURN = foo AND (foo = 'yes' OR bar = 'no')
> (4) RETURN = foo AND (foo = 'yes' OR bar = 'no') AND RETURN = bar
> {code}
> The "where" element list for each query above is:
> {code}
> (1) foo,'yes',EQ,bar,'no',EQ,OR (this is correct)
> (2) foo,'yes',EQ,bar,'no',EQ
> (3) foo,'yes',EQ,bar,'no',EQ,OR,AND
> (4) foo,'yes',EQ,bar,'no',EQ,OR,AND
> {code}
> Queries 2,3 and 4 are not parsed correctly.

--
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

        

[jira] [Updated] (OODT-334) Order of RETURN triples in XMLQuery changes "where" element set

Posted by "Chris A. Mattmann (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OODT-334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris A. Mattmann updated OODT-334:
-----------------------------------

          Component/s: xmlps
    Affects Version/s:     (was: 0.4)

- classify
                
> Order of RETURN triples in XMLQuery changes "where" element set
> ---------------------------------------------------------------
>
>                 Key: OODT-334
>                 URL: https://issues.apache.org/jira/browse/OODT-334
>             Project: OODT
>          Issue Type: Bug
>          Components: xmlps
>            Reporter: Ricky Nguyen
>            Assignee: Chris A. Mattmann
>             Fix For: 0.4
>
>
> Given an XMLQuery:
> {code}
> (foo = 'yes' OR bar = 'no) AND RETURN = foo
> {code}
> The correct "where" element list is:
> {code}
> foo,'yes',EQ,bar,'no',EQ,OR
> {code}
> Assume the following are semantically equivalent to the original query: (if they are not equivalent, remove them from the bug description)
> {code}
> (1) RETURN = foo AND foo = 'yes' OR bar = 'no'
> (2) foo = 'yes' OR bar = 'no' AND RETURN = foo
> (3) RETURN = foo AND (foo = 'yes' OR bar = 'no')
> (4) RETURN = foo AND (foo = 'yes' OR bar = 'no') AND RETURN = bar
> {code}
> The "where" element list for each query above is:
> {code}
> (1) foo,'yes',EQ,bar,'no',EQ,OR (this is correct)
> (2) foo,'yes',EQ,bar,'no',EQ
> (3) foo,'yes',EQ,bar,'no',EQ,OR,AND
> (4) foo,'yes',EQ,bar,'no',EQ,OR,AND
> {code}
> Queries 2,3 and 4 are not parsed correctly.

--
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

        

[jira] [Updated] (OODT-334) Order of RETURN triples in XMLQuery changes "where" element set

Posted by "Chris A. Mattmann (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OODT-334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris A. Mattmann updated OODT-334:
-----------------------------------


- push out to 0.5
                
> Order of RETURN triples in XMLQuery changes "where" element set
> ---------------------------------------------------------------
>
>                 Key: OODT-334
>                 URL: https://issues.apache.org/jira/browse/OODT-334
>             Project: OODT
>          Issue Type: Bug
>          Components: xmlps
>            Reporter: Ricky Nguyen
>            Assignee: Chris A. Mattmann
>             Fix For: 0.5
>
>
> Given an XMLQuery:
> {code}
> (foo = 'yes' OR bar = 'no) AND RETURN = foo
> {code}
> The correct "where" element list is:
> {code}
> foo,'yes',EQ,bar,'no',EQ,OR
> {code}
> Assume the following are semantically equivalent to the original query: (if they are not equivalent, remove them from the bug description)
> {code}
> (1) RETURN = foo AND foo = 'yes' OR bar = 'no'
> (2) foo = 'yes' OR bar = 'no' AND RETURN = foo
> (3) RETURN = foo AND (foo = 'yes' OR bar = 'no')
> (4) RETURN = foo AND (foo = 'yes' OR bar = 'no') AND RETURN = bar
> {code}
> The "where" element list for each query above is:
> {code}
> (1) foo,'yes',EQ,bar,'no',EQ,OR (this is correct)
> (2) foo,'yes',EQ,bar,'no',EQ
> (3) foo,'yes',EQ,bar,'no',EQ,OR,AND
> (4) foo,'yes',EQ,bar,'no',EQ,OR,AND
> {code}
> Queries 2,3 and 4 are not parsed correctly.

--
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

        

[jira] [Assigned] (OODT-334) Order of RETURN triples in XMLQuery changes "where" element set

Posted by "Chris A. Mattmann (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OODT-334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris A. Mattmann reassigned OODT-334:
--------------------------------------

    Assignee: Chris A. Mattmann
    
> Order of RETURN triples in XMLQuery changes "where" element set
> ---------------------------------------------------------------
>
>                 Key: OODT-334
>                 URL: https://issues.apache.org/jira/browse/OODT-334
>             Project: OODT
>          Issue Type: Bug
>    Affects Versions: 0.4
>            Reporter: Ricky Nguyen
>            Assignee: Chris A. Mattmann
>             Fix For: 0.4
>
>
> Given an XMLQuery:
> {code}
> (foo = 'yes' OR bar = 'no) AND RETURN = foo
> {code}
> The correct "where" element list is:
> {code}
> foo,'yes',EQ,bar,'no',EQ,OR
> {code}
> Assume the following are semantically equivalent to the original query: (if they are not equivalent, remove them from the bug description)
> {code}
> (1) RETURN = foo AND foo = 'yes' OR bar = 'no'
> (2) foo = 'yes' OR bar = 'no' AND RETURN = foo
> (3) RETURN = foo AND (foo = 'yes' OR bar = 'no')
> (4) RETURN = foo AND (foo = 'yes' OR bar = 'no') AND RETURN = bar
> {code}
> The "where" element list for each query above is:
> {code}
> (1) foo,'yes',EQ,bar,'no',EQ,OR (this is correct)
> (2) foo,'yes',EQ,bar,'no',EQ
> (3) foo,'yes',EQ,bar,'no',EQ,OR,AND
> (4) foo,'yes',EQ,bar,'no',EQ,OR,AND
> {code}
> Queries 2,3 and 4 are not parsed correctly.

--
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