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 3A85E200B35 for ; Tue, 5 Jul 2016 22:19:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 35D31160A60; Tue, 5 Jul 2016 20:19:01 +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 5A4C2160A2C for ; Tue, 5 Jul 2016 22:19:00 +0200 (CEST) Received: (qmail 42785 invoked by uid 500); 5 Jul 2016 20:18:59 -0000 Mailing-List: contact user-help@kudu.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@kudu.incubator.apache.org Delivered-To: mailing list user@kudu.incubator.apache.org Received: (qmail 42777 invoked by uid 99); 5 Jul 2016 20:18:59 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2016 20:18:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 1E1551806EA for ; Tue, 5 Jul 2016 20:18:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=globant.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ZM_pT82JHlS2 for ; Tue, 5 Jul 2016 20:18:57 +0000 (UTC) Received: from mail-io0-f176.google.com (mail-io0-f176.google.com [209.85.223.176]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id E86735F39C for ; Tue, 5 Jul 2016 20:18:56 +0000 (UTC) Received: by mail-io0-f176.google.com with SMTP id s63so183450189ioi.3 for ; Tue, 05 Jul 2016 13:18:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=globant.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=2ohxwP1uUYPU/DcsPy7moa/Y29OGgDAftkpU4C2vDRY=; b=aVj9azEADFisg7ik2ioQGouzJC3N4Mw+tHSY0GRk03GkZX586alkrHJnz2XNyQWfjl j8lfYfLck7GQQ9JCnYOv5X8dGzVsbonjwsfXwExyt6gyf42Laj0JXrb6t4DdlTHFdnRd QJ4HgWXV5V4fMBe4qLd9cpZvpBSbVxcigHz9w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=2ohxwP1uUYPU/DcsPy7moa/Y29OGgDAftkpU4C2vDRY=; b=Psz24vi/gShQa6Qc+jy3mqrogD+fTFFdxxdaOuIOkXbzM4mQTyovwr/irb+eIC1avT f3c2UF1LoQNDGD5umJ+2goMjGGNRI04XFRfzAEZj59jbJu5mLdxAqbQloH/kwup962x8 L6lUv5K1ovVLjF1o7h2PnVP2yYZz5lvjLOoIxheSY9aasN5UdHTkL91+zoMqc+UmjgOD pbDknB/yiqZTmIDs+y62BfUxMICkssE8Vt4GxtjxXil3rFERJz7vG5pqY6T4nMLrljiN ALcDb+Fk+nY8gGDDO2DD7fA3QfJZCF8GlLzMWJZ7shPcFFb4+Z4ExNO6hxEj5I00BAwV YMHw== X-Gm-Message-State: ALyK8tJrNjBB2u4k6EHLLgk/MXnRsW7TypiuFLhBBZCcr0dOSldjTc1PZO4d2wkmAiqAjVYV48w1sG31qaLA11ueOkgc2jwDqgeU7tH39SCW4HhJCwXVRV3N9q9tX1lmpzzcVgf53j8z6bzwzOTS1RjB//npAw== X-Received: by 10.107.12.142 with SMTP id 14mr16037385iom.35.1467749936021; Tue, 05 Jul 2016 13:18:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.65.155 with HTTP; Tue, 5 Jul 2016 13:18:55 -0700 (PDT) From: Juan Pablo Briganti Date: Tue, 5 Jul 2016 17:18:55 -0300 Message-ID: Subject: Error using newDelete from java API To: user@kudu.incubator.apache.org Content-Type: multipart/alternative; boundary=001a113f97268e685f0536e92998 archived-at: Tue, 05 Jul 2016 20:19:01 -0000 --001a113f97268e685f0536e92998 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello! I have a short question. I'm trying to delete from a kudu table using java API client (last version, 0.9) and I'm getting an error. I have a table with a composed primary key based on 2 fields (keyfield1 and keyfield2). When I try to delete from that table using keyfield1 as a filter, I receive the next error: java.lang.IllegalStateException: Primary key column keyfield2 is not set The code I'm using is: Delete delete =3D table.newDelete(); PartialRow row =3D delete.getRow(); row.addLong("keyfield1", 102); session.apply(delete); Is there any other way to delete a set of rows using java API? Can I delete using a field that is part of a primary key or is not a pk at all? If you need more info let me know. Thanks for the help! -- --=20 The information contained in this e-mail may be confidential. It has been= =20 sent for the sole use of the intended recipient(s). If the reader of this= =20 message is not an intended recipient, you are hereby notified that any=20 unauthorized review, use, disclosure, dissemination, distribution or=20 copying of this communication, or any of its contents,=20 is strictly prohibited. If you have received it by mistake please let us=20 know by e-mail immediately and delete it from your system. Many thanks. =20 La informaci=C3=B3n contenida en este mensaje puede ser confidencial. Ha si= do=20 enviada para el uso exclusivo del destinatario(s) previsto. Si el lector de= =20 este mensaje no fuera el destinatario previsto, por el presente queda Ud.= =20 notificado que cualquier lectura, uso, publicaci=C3=B3n, diseminaci=C3=B3n,= =20 distribuci=C3=B3n o copiado de esta comunicaci=C3=B3n o su contenido est=C3= =A1=20 estrictamente prohibido. En caso de que Ud. hubiera recibido este mensaje= =20 por error le agradeceremos notificarnos por e-mail inmediatamente y=20 eliminarlo de su sistema. Muchas gracias. --001a113f97268e685f0536e92998 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello!

I have a short question. I'm= trying to delete from a kudu table using java API client (last version, 0.= 9) and I'm getting an error.
I have a table with a composed p= rimary key based on 2 fields (keyfield1 and keyfield2). When I try to delet= e from that table using keyfield1 as a filter, I receive the next error:

java.lang.IllegalStateException: Primary key co= lumn=C2=A0keyfield2=C2=A0is not set

The code I'= ;m using is:

Delete delete =3D table.newDelete();
PartialRow row =3D delete.getRow();
row.addLong("keyfield1"= ;, 102);
session.apply(de= lete);

Is there any other way to delete a se= t of rows using java API?=C2=A0
Can I delete using a field that i= s part of a primary key or is not a pk at all?

If = you need more info let me know.
Thanks for the help!
--

The information con= tained in this e-mail may be=C2=A0confidential. It has been sent for the so= le use of the intended recipient(s). If the reader of this message is not a= n intended recipient, you are hereby notified that any unauthorized review,= use, disclosure, dissemination, distribution or copying of this communicat= ion, or any of its contents, is=C2=A0strictly=C2=A0prohibited.=C2=A0= If you have received it by mis= take please let us know by e-mail immediately and delete it from your syste= m.=C2=A0= Many thanks.

=C2=A0=

La informaci=C3=B3n contenida en este= mensaje puede ser confidencial. Ha sido enviada para el uso exclusivo del = destinatario(s) previsto. Si el lector de este mensaje no fuera el destinat= ario previsto, por el presente queda Ud. notificado que cualquier lectura, = uso, publicaci=C3=B3n, diseminaci=C3=B3n, distribuci=C3=B3n o copiado de es= ta comunicaci=C3=B3n o su contenido est=C3=A1 estrictamente prohibido. En c= aso de que Ud. hubiera recibido este mensaje por error le agradeceremos not= ificarnos por e-mail inmediatamente y eliminarlo de su sistema.=C2=A0Muchas gracias.=


--001a113f97268e685f0536e92998--