You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Deneche A. Hakim (JIRA)" <ji...@apache.org> on 2015/06/11 18:29:00 UTC
[jira] [Updated] (DRILL-3278) SUM(CAST(columns[0] AS BIGINT))
OVER(...) gives wrong results
[ https://issues.apache.org/jira/browse/DRILL-3278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deneche A. Hakim updated DRILL-3278:
------------------------------------
Description:
The following query return wrong results, there is a difference in actual vs expected results. Expected results were generated on Postgres 9.3
{noformat}
SELECT
SUM(cast( columns[1] as BIGINT ))
OVER(PARTITION BY cast( columns[2] as CHAR(2)))
FROM `allData.csv`;
{noformat}
was:
The following query return wrong results, there is a difference in actual vs expected results. Expected results were generated on Postgres 9.3
{noformat}
SELECT
SUM(cast( columns[0] as INT ))
OVER(PARTITION BY cast( columns[2] as CHAR(2)))
FROM `allData.csv`;
{noformat}
> SUM(CAST(columns[0] AS BIGINT)) OVER(...) gives wrong results
> -------------------------------------------------------------
>
> Key: DRILL-3278
> URL: https://issues.apache.org/jira/browse/DRILL-3278
> Project: Apache Drill
> Issue Type: Sub-task
> Components: Execution - Flow
> Reporter: Deneche A. Hakim
> Assignee: Deneche A. Hakim
> Labels: window_function
> Fix For: 1.1.0
>
>
> The following query return wrong results, there is a difference in actual vs expected results. Expected results were generated on Postgres 9.3
> {noformat}
> SELECT
> SUM(cast( columns[1] as BIGINT ))
> OVER(PARTITION BY cast( columns[2] as CHAR(2)))
> FROM `allData.csv`;
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)