You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vxquery.apache.org by "Preston Carman (JIRA)" <ji...@apache.org> on 2012/06/27 21:54:42 UTC

[jira] [Created] (VXQUERY-42) Numeric Comparison

Preston Carman created VXQUERY-42:
-------------------------------------

             Summary: Numeric Comparison
                 Key: VXQUERY-42
                 URL: https://issues.apache.org/jira/browse/VXQUERY-42
             Project: VXQuery
          Issue Type: Task
            Reporter: Preston Carman


Implement the following numeric comparison functions.


op:numeric-equal - Equality comparison
op:numeric-less-than - Less-than comparison
op:numeric-greater-than - Greater-than comparison

http://www.w3.org/TR/xquery-operators/#comp.numeric

--
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] (VXQUERY-42) Numeric Comparison

Posted by "Preston Carman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VXQUERY-42?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Preston Carman updated VXQUERY-42:
----------------------------------

    Issue Type: Sub-task  (was: Task)
        Parent: VXQUERY-31
    
> Numeric Comparison
> ------------------
>
>                 Key: VXQUERY-42
>                 URL: https://issues.apache.org/jira/browse/VXQUERY-42
>             Project: VXQuery
>          Issue Type: Sub-task
>            Reporter: Preston Carman
>         Attachments: ValueComparisonOperations.patch, ValueComparisonOperations2.patch
>
>
> Implement the following numeric comparison functions.
> op:numeric-equal - Equality comparison
> op:numeric-less-than - Less-than comparison
> op:numeric-greater-than - Greater-than comparison
> http://www.w3.org/TR/xquery-operators/#comp.numeric

--
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] (VXQUERY-42) Numeric Comparison

Posted by "Preston Carman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VXQUERY-42?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Preston Carman updated VXQUERY-42:
----------------------------------

    Attachment: ValueComparisonOperations3.patch
    
> Numeric Comparison
> ------------------
>
>                 Key: VXQUERY-42
>                 URL: https://issues.apache.org/jira/browse/VXQUERY-42
>             Project: VXQuery
>          Issue Type: Sub-task
>            Reporter: Preston Carman
>         Attachments: ValueComparisonOperations.patch, ValueComparisonOperations2.patch, ValueComparisonOperations3.patch
>
>
> Implement the following numeric comparison functions.
> op:numeric-equal - Equality comparison
> op:numeric-less-than - Less-than comparison
> op:numeric-greater-than - Greater-than comparison
> http://www.w3.org/TR/xquery-operators/#comp.numeric

--
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] (VXQUERY-42) Numeric Comparison

Posted by "Preston Carman (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VXQUERY-42?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13404143#comment-13404143 ] 

Preston Carman commented on VXQUERY-42:
---------------------------------------

Sample Comparisons with Double and Integers:

Double
(1.1e1 eq 1.1e1)
(1.2e1 ne 1.1e1)
(1.2e1 gt 1.1e1)
(1.1e1 ge 1.1e1)
(1.1e1 lt 1.2e1)
(1.1e1 le 1.1e1)

Integer
(1 eq 1)
(2 ne 1)
(2 gt 1)
(1 ge 1)
(1 lt 2)
(1 le 1)

                
> Numeric Comparison
> ------------------
>
>                 Key: VXQUERY-42
>                 URL: https://issues.apache.org/jira/browse/VXQUERY-42
>             Project: VXQuery
>          Issue Type: Task
>            Reporter: Preston Carman
>         Attachments: ValueComparisonOperations.patch, ValueComparisonOperations2.patch
>
>
> Implement the following numeric comparison functions.
> op:numeric-equal - Equality comparison
> op:numeric-less-than - Less-than comparison
> op:numeric-greater-than - Greater-than comparison
> http://www.w3.org/TR/xquery-operators/#comp.numeric

--
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] (VXQUERY-42) Numeric Comparison

Posted by "Preston Carman (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VXQUERY-42?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13406737#comment-13406737 ] 

Preston Carman commented on VXQUERY-42:
---------------------------------------

All comparisons are set up with the exception of Date, Time, and DateTime.
                
> Numeric Comparison
> ------------------
>
>                 Key: VXQUERY-42
>                 URL: https://issues.apache.org/jira/browse/VXQUERY-42
>             Project: VXQuery
>          Issue Type: Sub-task
>            Reporter: Preston Carman
>         Attachments: ValueComparisonOperations.patch, ValueComparisonOperations2.patch
>
>
> Implement the following numeric comparison functions.
> op:numeric-equal - Equality comparison
> op:numeric-less-than - Less-than comparison
> op:numeric-greater-than - Greater-than comparison
> http://www.w3.org/TR/xquery-operators/#comp.numeric

--
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] (VXQUERY-42) Numeric Comparison

Posted by "Preston Carman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VXQUERY-42?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Preston Carman updated VXQUERY-42:
----------------------------------

    Attachment: ValueComparisonOperations.patch

I have stubbed out all the comparison and implemented many of them. Hope this is the direction you wanted the files set up. I will continue to implement the missing comparison and build out the pointables.
                
> Numeric Comparison
> ------------------
>
>                 Key: VXQUERY-42
>                 URL: https://issues.apache.org/jira/browse/VXQUERY-42
>             Project: VXQuery
>          Issue Type: Task
>            Reporter: Preston Carman
>         Attachments: ValueComparisonOperations.patch
>
>
> Implement the following numeric comparison functions.
> op:numeric-equal - Equality comparison
> op:numeric-less-than - Less-than comparison
> op:numeric-greater-than - Greater-than comparison
> http://www.w3.org/TR/xquery-operators/#comp.numeric

--
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] (VXQUERY-42) Numeric Comparison

Posted by "Vinayak Borkar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VXQUERY-42?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vinayak Borkar reassigned VXQUERY-42:
-------------------------------------

    Assignee: Preston Carman
    
> Numeric Comparison
> ------------------
>
>                 Key: VXQUERY-42
>                 URL: https://issues.apache.org/jira/browse/VXQUERY-42
>             Project: VXQuery
>          Issue Type: Sub-task
>            Reporter: Preston Carman
>            Assignee: Preston Carman
>         Attachments: ValueComparisonOperations.patch, ValueComparisonOperations2.patch, ValueComparisonOperations3.patch, ValueComparisonOperations4.patch
>
>
> Implement the following numeric comparison functions.
> op:numeric-equal - Equality comparison
> op:numeric-less-than - Less-than comparison
> op:numeric-greater-than - Greater-than comparison
> http://www.w3.org/TR/xquery-operators/#comp.numeric

--
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] [Resolved] (VXQUERY-42) Numeric Comparison

Posted by "Preston Carman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VXQUERY-42?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Preston Carman resolved VXQUERY-42.
-----------------------------------

    Resolution: Fixed

Final change to fix an issue with decimal comparisons has been made. While testing may reveal more, all functions are coded and in place.
                
> Numeric Comparison
> ------------------
>
>                 Key: VXQUERY-42
>                 URL: https://issues.apache.org/jira/browse/VXQUERY-42
>             Project: VXQuery
>          Issue Type: Sub-task
>            Reporter: Preston Carman
>            Assignee: Preston Carman
>         Attachments: ValueComparisonOperations.patch, ValueComparisonOperations2.patch, ValueComparisonOperations3.patch, ValueComparisonOperations4.patch
>
>
> Implement the following numeric comparison functions.
> op:numeric-equal - Equality comparison
> op:numeric-less-than - Less-than comparison
> op:numeric-greater-than - Greater-than comparison
> http://www.w3.org/TR/xquery-operators/#comp.numeric

--
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] (VXQUERY-42) Numeric Comparison

Posted by "Till Westmann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VXQUERY-42?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13403736#comment-13403736 ] 

Till Westmann commented on VXQUERY-42:
--------------------------------------

I tried to apply the patch, but it didn't build. I think that the problem is that builtin-operators.xml expects the comparison functions in the 'arithmetic' package and they actually are in the 'comparison' package (where they seem to belong).
                
> Numeric Comparison
> ------------------
>
>                 Key: VXQUERY-42
>                 URL: https://issues.apache.org/jira/browse/VXQUERY-42
>             Project: VXQuery
>          Issue Type: Task
>            Reporter: Preston Carman
>         Attachments: ValueComparisonOperations.patch
>
>
> Implement the following numeric comparison functions.
> op:numeric-equal - Equality comparison
> op:numeric-less-than - Less-than comparison
> op:numeric-greater-than - Greater-than comparison
> http://www.w3.org/TR/xquery-operators/#comp.numeric

--
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] (VXQUERY-42) Numeric Comparison

Posted by "Preston Carman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VXQUERY-42?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Preston Carman updated VXQUERY-42:
----------------------------------

    Attachment: ValueComparisonOperations2.patch

Updated the xml operators file and now all numeric comparisons exist with the exception of decimal, which still needs to be defined.
                
> Numeric Comparison
> ------------------
>
>                 Key: VXQUERY-42
>                 URL: https://issues.apache.org/jira/browse/VXQUERY-42
>             Project: VXQuery
>          Issue Type: Task
>            Reporter: Preston Carman
>         Attachments: ValueComparisonOperations.patch, ValueComparisonOperations2.patch
>
>
> Implement the following numeric comparison functions.
> op:numeric-equal - Equality comparison
> op:numeric-less-than - Less-than comparison
> op:numeric-greater-than - Greater-than comparison
> http://www.w3.org/TR/xquery-operators/#comp.numeric

--
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] (VXQUERY-42) Numeric Comparison

Posted by "Till Westmann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VXQUERY-42?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13402538#comment-13402538 ] 

Till Westmann commented on VXQUERY-42:
--------------------------------------

I think that it's enough to implement eq and lt for each type. 
All other value comparisons can be derived from these.
                
> Numeric Comparison
> ------------------
>
>                 Key: VXQUERY-42
>                 URL: https://issues.apache.org/jira/browse/VXQUERY-42
>             Project: VXQuery
>          Issue Type: Task
>            Reporter: Preston Carman
>
> Implement the following numeric comparison functions.
> op:numeric-equal - Equality comparison
> op:numeric-less-than - Less-than comparison
> op:numeric-greater-than - Greater-than comparison
> http://www.w3.org/TR/xquery-operators/#comp.numeric

--
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] (VXQUERY-42) Numeric Comparison

Posted by "Preston Carman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VXQUERY-42?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Preston Carman updated VXQUERY-42:
----------------------------------

    Attachment: ValueComparisonOperations4.patch

All comparisons are implemented.
                
> Numeric Comparison
> ------------------
>
>                 Key: VXQUERY-42
>                 URL: https://issues.apache.org/jira/browse/VXQUERY-42
>             Project: VXQuery
>          Issue Type: Sub-task
>            Reporter: Preston Carman
>         Attachments: ValueComparisonOperations.patch, ValueComparisonOperations2.patch, ValueComparisonOperations3.patch, ValueComparisonOperations4.patch
>
>
> Implement the following numeric comparison functions.
> op:numeric-equal - Equality comparison
> op:numeric-less-than - Less-than comparison
> op:numeric-greater-than - Greater-than comparison
> http://www.w3.org/TR/xquery-operators/#comp.numeric

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