oodt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris A. Mattmann (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (OODT-334) Order of RETURN triples in XMLQuery changes "where" element set
Date Sat, 15 Jul 2017 04:12:00 GMT

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

Chris A. Mattmann resolved OODT-334.
------------------------------------
    Resolution: Won't Fix

would be great to turn these into test cases, if someone ever gets time

> 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: 1.1
>
>
> 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 was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message