You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/03/07 10:52:40 UTC
[jira] [Commented] (DRILL-4443) MIN/MAX on VARCHAR throw a
NullPointerException
[ https://issues.apache.org/jira/browse/DRILL-4443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15182816#comment-15182816 ]
ASF GitHub Bot commented on DRILL-4443:
---------------------------------------
GitHub user adeneche opened a pull request:
https://github.com/apache/drill/pull/409
DRILL-4443: MIN/MAX on VARCHAR throw a NullPointerException
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/adeneche/incubator-drill DRILL-4443
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/drill/pull/409.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 #409
----
commit 0c66812a782a46a64781e4561ca6f607a2a64fde
Author: adeneche <ad...@gmail.com>
Date: 2016-02-26T21:41:36Z
DRILL-4443: MIN/MAX on VARCHAR throw a NullPointerException
----
> MIN/MAX on VARCHAR throw a NullPointerException
> -----------------------------------------------
>
> Key: DRILL-4443
> URL: https://issues.apache.org/jira/browse/DRILL-4443
> Project: Apache Drill
> Issue Type: Bug
> Components: Execution - Flow
> Affects Versions: 1.6.0
> Environment: 4 node cluster CentOS
> Reporter: Khurram Faraaz
> Assignee: Deneche A. Hakim
> Priority: Critical
> Fix For: 1.6.0
>
> Attachments: DRILL_4443.parquet, test4443.csv
>
>
> Using a simple csv file that contains at least 2 groups of rows:
> {noformat}
> a,
> a,
> a,
> b,
> {noformat}
> Running a query with min/max throws a NullPointerException:
> {noformat}
> SELECT MIN(columns[1]) FROM `test4443.csv` GROUP BY columns[0];
> Error: SYSTEM ERROR: NullPointerException
> ...
> {noformat}
> {noformat}
> SELECT MAX(columns[1]) FROM `test4443.csv` GROUP BY columns[0];
> Error: SYSTEM ERROR: NullPointerException
> ...
> {noformat}
> The problem is caused by {{VarCharAggrFunctions.java}} that is not reseting it's internal buffer properly.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)