From issues-return-48657-archive-asf-public=cust-asf.ponee.io@drill.apache.org Thu Jan 11 01:00:22 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id B084518072F for ; Thu, 11 Jan 2018 01:00:22 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A011D160C41; Thu, 11 Jan 2018 00:00:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E4A5B160C2E for ; Thu, 11 Jan 2018 01:00:21 +0100 (CET) Received: (qmail 1087 invoked by uid 500); 11 Jan 2018 00:00:21 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 1077 invoked by uid 99); 11 Jan 2018 00:00:21 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jan 2018 00:00:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id B772EC37A0 for ; Thu, 11 Jan 2018 00:00:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.211 X-Spam-Level: X-Spam-Status: No, score=-100.211 tagged_above=-999 required=6.31 tests=[KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 67xvz0yEnHxm for ; Thu, 11 Jan 2018 00:00:20 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 0160D5F3D0 for ; Thu, 11 Jan 2018 00:00:20 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 684C4E25A1 for ; Thu, 11 Jan 2018 00:00:16 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 05307274DB for ; Thu, 11 Jan 2018 00:00:14 +0000 (UTC) Date: Thu, 11 Jan 2018 00:00:14 +0000 (UTC) From: "Paul Rogers (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-6080) Sort incorrectly limits batch size to 65535 records rather than 65536 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Paul Rogers created DRILL-6080: ---------------------------------- Summary: Sort incorrectly limits batch size to 65535 records rather than 65536 Key: DRILL-6080 URL: https://issues.apache.org/jira/browse/DRILL-6080 Project: Apache Drill Issue Type: Bug Affects Versions: 1.12.0 Reporter: Paul Rogers Assignee: Paul Rogers Priority: Minor Fix For: 1.13.0 Drill places an upper limit on the number of rows in a batch of 64K. That is 65,536 decimal. When we index records, the indexes run from 0 to 64K-1 or 0 to 65,535. The sort code incorrectly uses {{Character.MAX_VALUE}} as the maximum row count. So, if an incoming batch uses the full 64K size, sort ends up splitting batches unnecessarily. The fix is to instead use the correct constant `ValueVector.MAX_ROW_COUNT`. -- This message was sent by Atlassian JIRA (v6.4.14#64029)