Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 683C217AF8 for ; Tue, 24 Mar 2015 22:55:59 +0000 (UTC) Received: (qmail 33502 invoked by uid 500); 24 Mar 2015 22:55:53 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 33455 invoked by uid 500); 24 Mar 2015 22:55:53 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 33435 invoked by uid 99); 24 Mar 2015 22:55:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Mar 2015 22:55:53 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tyler@datastax.com designates 209.85.213.177 as permitted sender) Received: from [209.85.213.177] (HELO mail-ig0-f177.google.com) (209.85.213.177) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Mar 2015 22:55:28 +0000 Received: by igcau2 with SMTP id au2so86078436igc.0 for ; Tue, 24 Mar 2015 15:55:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datastax.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=QLbs8DglZAvec/oKCExpyOU83MCEjmF0FncDCRmYF/4=; b=SxjXfUmOnupH1vtFKApxT9xDIIrwqmYWwUPEe+s4+dTpEz6RuuzvwuYPZy0LkOOXe9 yBrhtjlLnHkMLEKvHUhWnj6zdAe6AJ/9ImWVSQwUtmnmvZVOYr56yuw3dTNoDowbjUF1 KsCNjOAfvCIxZiPfOM57DSTwTa1T0c9/u9M2s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=QLbs8DglZAvec/oKCExpyOU83MCEjmF0FncDCRmYF/4=; b=gb2f8mpGJw7rLho8TItkzKSwnn1D9L/7NXI+i9jrnA0aNT5k4N8d+xNh63+PRXwWbX Su+FA23hNLXZ5AtTmFxOhiFOuClXSp+ch2eR1WSSaT6h4BFcdDeoxcQYJzGlYo43eMfD XqtQcpmhK2BU7D5lzjlGmXmsRArC0AGqpt3f12xTonGdjFMa8dctdVCGYzFyrSewvJF0 5yJNJf52IsDb+PvUcFXxwyoV1QhynXXwxVnEarXD60KJ4YtwlOmvf1p2NBbWrKYhUQSU 4lRbl0eG1aghzANAFd5zpaSZwSp/PNfmmLTjkRKvkmfzAq/yfqHJX9d7qQWfr3xZd0uY cUow== X-Gm-Message-State: ALoCoQnj+f4sM8xgDMj6V+IFtzkv7vebC71pJld6amE3d/vhuiHsD1UgYiX3zJJEr/H3Ohh2CVzk X-Received: by 10.50.66.141 with SMTP id f13mr25450193igt.47.1427237726830; Tue, 24 Mar 2015 15:55:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.117.72 with HTTP; Tue, 24 Mar 2015 15:55:06 -0700 (PDT) In-Reply-To: References: From: Tyler Hobbs Date: Tue, 24 Mar 2015 17:55:06 -0500 Message-ID: Subject: Re: error in bulk loading To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=047d7bdc0dd2b7fcf8051210adfb X-Virus-Checked: Checked by ClamAV on apache.org --047d7bdc0dd2b7fcf8051210adfb Content-Type: text/plain; charset=UTF-8 On Tue, Mar 24, 2015 at 5:30 AM, Rahul Bhardwaj < rahul.bhardwaj@indiamart.com> wrote: > I need to import a csv file to a table using copy command, but file > contains carriage returns which causing me problem in doing so, Is there > any way in cassandra to solve this You can surround the field with double-quotes to handle this (or change the quote character with the QUOTE option for COPY). -- Tyler Hobbs DataStax --047d7bdc0dd2b7fcf8051210adfb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On Tue, Mar 24, 2015 at 5:30 AM, Rahul Bhardwaj <rahul.bhardwaj= @indiamart.com> wrote:
I ne= ed to import a csv file to a table using copy command, but file contains ca= rriage returns which causing me problem in doing so, Is there any way in ca= ssandra to solve this
You can surround the field with double-q= uotes to handle this (or change the quote character with the QUOTE option f= or COPY).

--
Tyler Hobbs=
DataStax
<= /div>
--047d7bdc0dd2b7fcf8051210adfb--