You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/05/22 17:54:04 UTC
[jira] [Commented] (IGNITE-4724) AVG function always returns double
type instead of the argument type
[ https://issues.apache.org/jira/browse/IGNITE-4724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16019908#comment-16019908 ]
ASF GitHub Bot commented on IGNITE-4724:
----------------------------------------
GitHub user skalashnikov opened a pull request:
https://github.com/apache/ignite/pull/1989
IGNITE-4724: SQL: corrected result type for AVG()
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gridgain/apache-ignite ignite-4724
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/ignite/pull/1989.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1989
----
commit ee2615784fa43a6e1770d6271e87d7dbfc3bc34a
Author: skalashnikov <sk...@gridgain.com>
Date: 2017-05-22T17:51:46Z
IGNITE-4724: SQL: corrected result type for AVG()
----
> AVG function always returns double type instead of the argument type
> --------------------------------------------------------------------
>
> Key: IGNITE-4724
> URL: https://issues.apache.org/jira/browse/IGNITE-4724
> Project: Ignite
> Issue Type: Bug
> Components: sql
> Affects Versions: 1.9
> Reporter: Sergey Kozlov
> Assignee: Sergey Kalashnikov
> Fix For: 2.1
>
>
> For H2:
> SELECT AVG(intCol) FROM cache_part_2 AS part_2 WHERE (10*shortCol/100) > longCol
> -[472]
> For Ignite:
> SELECT AVG(intCol) FROM AllTypes AS part_2 WHERE (10*shortCol/100) > longCol
> +[472.2307692307692]
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)