Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 36EE9200CB3 for ; Mon, 26 Jun 2017 14:55:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 35B9B160BDE; Mon, 26 Jun 2017 12:55:46 +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 7C2D4160BD9 for ; Mon, 26 Jun 2017 14:55:45 +0200 (CEST) Received: (qmail 26035 invoked by uid 500); 26 Jun 2017 12:55:44 -0000 Mailing-List: contact dev-help@arrow.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@arrow.apache.org Delivered-To: mailing list dev@arrow.apache.org Received: (qmail 26024 invoked by uid 99); 26 Jun 2017 12:55:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jun 2017 12:55:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id B93711A7B3A for ; Mon, 26 Jun 2017 12:55:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id c-SGvqZH1P5K for ; Mon, 26 Jun 2017 12:55:39 +0000 (UTC) Received: from mx0a-001f6201.pphosted.com (mx0b-001f6201.pphosted.com [148.163.159.251]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id DA2DE5F6C0 for ; Mon, 26 Jun 2017 12:55:38 +0000 (UTC) Received: from pps.filterd (m0090526.ppops.net [127.0.0.1]) by mx0b-001f6201.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v5QCpjxP023225 for ; Mon, 26 Jun 2017 08:55:32 -0400 Received: from sac72e10e01.saccap.int ([208.68.197.86]) by mx0b-001f6201.pphosted.com with ESMTP id 2b9khm9h1m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 26 Jun 2017 08:55:32 -0400 Received: from SAC72E10CH01.saccap.int (172.16.82.52) by SAC72E10E01.saccap.int (172.16.13.70) with Microsoft SMTP Server (TLS) id 14.3.351.0; Mon, 26 Jun 2017 08:55:31 -0400 Received: from SAC22E10CHM01.saccap.int ([fe80::e05e:2a5a:a0aa:80d]) by SAC72E10CH01.saccap.int ([::1]) with mapi id 14.03.0351.000; Mon, 26 Jun 2017 08:55:31 -0400 From: "Katelman, Michael" To: "'dev@arrow.apache.org'" Subject: RE: parquet::SetArrayBit Thread-Topic: parquet::SetArrayBit Thread-Index: AdLueqnZk2e7LMaSQKCsESz5CxcZHgAAM5oQ Date: Mon, 26 Jun 2017 12:55:30 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.109.77] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-06-26_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1706260217 archived-at: Mon, 26 Jun 2017 12:55:46 -0000 Sorry, wrong list. -----Original Message----- From: Katelman, Michael [mailto:Michael.Katelman@CubistSystematic.com]=20 Sent: Monday, June 26, 2017 8:54 To: 'dev@arrow.apache.org' Subject: parquet::SetArrayBit Hi, Sorry for posting this here and not in Jira (factors outside my control nec= essitate me posting here). Maybe my interpretation of the semantics of parq= uet::SetArrayBit is off, but I was surprised to find SetArrayBit(bits, i, f= alse) does not clear bit i. I just wanted to mention it in case that wasn't= the behavior that was intended and is a bug. from bit-util.h static inline void SetArrayBit(uint8_t* bits, int i, bool is_set) { bits[i / 8] |=3D (1 << (i % 8)) * is_set; } DISCLAIMER: This e-mail message and any attachments are intended solely for= the use of the individual or entity to which it is addressed and may conta= in information that is confidential or legally privileged. If you are not t= he intended recipient, you are hereby notified that any dissemination, dist= ribution, copying or other use of this message or its attachments is strict= ly prohibited. If you have received this message in error, please notify th= e sender immediately and permanently delete this message and any attachment= s.