From user-return-540-archive-asf-public=cust-asf.ponee.io@arrow.apache.org Tue Jul 21 17:07:21 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mailroute1-lw-us.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id 0CF1818065B for ; Tue, 21 Jul 2020 19:07:21 +0200 (CEST) Received: from mail.apache.org (localhost [127.0.0.1]) by mailroute1-lw-us.apache.org (ASF Mail Server at mailroute1-lw-us.apache.org) with SMTP id 9C24E12546F for ; Tue, 21 Jul 2020 17:07:19 +0000 (UTC) Received: (qmail 7510 invoked by uid 500); 21 Jul 2020 17:07:19 -0000 Mailing-List: contact user-help@arrow.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@arrow.apache.org Delivered-To: mailing list user@arrow.apache.org Received: (qmail 7500 invoked by uid 99); 21 Jul 2020 17:07:19 -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; Tue, 21 Jul 2020 17:07:19 +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 684D1C021E for ; Tue, 21 Jul 2020 17:07:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.211 X-Spam-Level: X-Spam-Status: No, score=0.211 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.2, KAM_DMARC_STATUS=0.01, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-ec2-va.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id pPyCCh2kZ_dv for ; Tue, 21 Jul 2020 17:07:16 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.182; helo=mail-lj1-f182.google.com; envelope-from=ybungalobill@gmail.com; receiver= Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with ESMTPS id 7D6CABB94A for ; Tue, 21 Jul 2020 17:07:15 +0000 (UTC) Received: by mail-lj1-f182.google.com with SMTP id d17so24896600ljl.3 for ; Tue, 21 Jul 2020 10:07:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=JFWTd5v24ApJSVWysmc3lwveuUV1KELXeGl8EJDDwkU=; b=XGe4BtqEv9k8V7eq3W/mdo4lBZnifygTs6JPqNp7IQJDrN+3YND0TkZ/iMYImtHK5o q7pRmq6h6oSz19wDuiQ15Oak/A4uhNxNCgeZXvSTqa+TBhfAA1UQtCfqp2GzBvorOZ+P PwDK2N91wrk/NkvV+3QKFfW6/Tt+nZPwE0Bi6XSQZsj0MNqYRa3e87ZpXJzax5YGRx2n xF3ef0C8VTdiWh3j0bFJjPbhir7xftPNkC6SUybURLcdmdVea0+2Z0OxzEEmwbLqLGbm vm07Ud1qq51pGaU8QBstXdJ0JN1Py09S71+0wWC/rXyTYOmlat5wxqYsnK7lWtBURBng Od5A== X-Gm-Message-State: AOAM532he5h92lJbNWeXK9PD3kaRTkNxtdLdFEXl3j5S3Ns8jZX5q8kl J/55y05B3VOQJmoxl/mHi7gLwAs2RQM= X-Google-Smtp-Source: ABdhPJwoNZxT9UNfz+iXtIZ1jyKFu5vlIBqYeNcndby/uc11XeU2IFVevfEUUp+JmbcogkJ7v81BYw== X-Received: by 2002:a2e:8597:: with SMTP id b23mr12197588lji.338.1595351234024; Tue, 21 Jul 2020 10:07:14 -0700 (PDT) Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com. [209.85.208.177]) by smtp.gmail.com with ESMTPSA id a1sm3340491lfb.10.2020.07.21.10.07.13 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Jul 2020 10:07:13 -0700 (PDT) Received: by mail-lj1-f177.google.com with SMTP id x9so24858788ljc.5 for ; Tue, 21 Jul 2020 10:07:13 -0700 (PDT) X-Received: by 2002:a2e:7a07:: with SMTP id v7mr13416045ljc.159.1595351233061; Tue, 21 Jul 2020 10:07:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Yakov Galka Date: Tue, 21 Jul 2020 13:05:46 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: How to create a Dictionary encoded string column with the Javascript interface? To: user@arrow.apache.org, emkornfield@gmail.com Content-Type: multipart/alternative; boundary="00000000000089e90505aaf6a720" --00000000000089e90505aaf6a720 Content-Type: text/plain; charset="UTF-8" Thank you! Someone else pointed out that Dictionary doesn't accept an offsets buffer, therefore it should have been: column_vectors.push(Vector.new(Data.Dictionary(new Dictionary(new Utf8(), new Int32()), 0, element_count, null_count, nullmap_buffer, interned_buffer, dictionary))); -- i.e. without the zero after nullmap_buffer. This solved the problem. Yakov Galka http://stannum.io/ --00000000000089e90505aaf6a720 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you!

= Someone else pointed out that Dictionary doesn't accept an offsets buff= er, therefore it should have been:

=C2=A0=C2=A0=C2=A0 column_vectors.push(Vector.new(Da= ta.Dictionary(new Dictionary(new Utf8(), new Int32()), 0, element_count, null_count,=20 nullmap_buffer, interned_buffer, dictionary)));

-- i.e. without the zero = after nullmap_buffer. This solved the problem.
=C2=A0
--00000000000089e90505aaf6a720--