[ 
https://issues.apache.org/jira/browse/ASTERIXDB-2378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16461575#comment-16461575
 ] 

ASF subversion and git services commented on ASTERIXDB-2378:
------------------------------------------------------------

Commit bf48c49f4ea64da9aeea8384570c4d38102adf88 in asterixdb's branch 
refs/heads/master from [~dlychagin-cb]
[ https://git-wip-us.apache.org/repos/asf?p=asterixdb.git;h=bf48c49 ]

[ASTERIXDB-2378][SQL] Add “DIV”, “MOD”, change “/“ for integers

- user model changes: yes
- storage format changes: no
- interface changes: no

Details:
- Make "/" operator return double if both operands are integers
- Add "DIV" operator which is the same as "/" except that
  it returns integer if both operands are integers
  (as "/" did before this change)
- Add "MOD" operator which is an alias for "%" operator
- Remove "IDIV" operator from the grammar

Change-Id: I7c6b0704ce60a03dd3c10e1c75cb9761acc56536
Reviewed-on: https://asterix-gerrit.ics.uci.edu/2630
Tested-by: Jenkins <[email protected]>
Contrib: Jenkins <[email protected]>
Integration-Tests: Jenkins <[email protected]>
Reviewed-by: Dmitry Lychagin <[email protected]>


> Add DIV, MOD, change handling of integers operands in /
> -------------------------------------------------------
>
>                 Key: ASTERIXDB-2378
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2378
>             Project: Apache AsterixDB
>          Issue Type: Improvement
>          Components: SQL - Translator SQL++
>            Reporter: Dmitry Lychagin
>            Assignee: Dmitry Lychagin
>            Priority: Major
>
> 1) Change  "/" operator to return double if both operands are integers
> 2) Add "DIV" operator which is the same as "/" except it returns integer if 
> both operands are integers
> 3) Add "MOD" operator which is an alias for "%" operator
> 4) Remove "IDIV" operator from the grammar



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to