Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5C15A184CA for ; Tue, 8 Dec 2015 16:33:17 +0000 (UTC) Received: (qmail 45681 invoked by uid 500); 8 Dec 2015 16:33:13 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 45608 invoked by uid 500); 8 Dec 2015 16:33:13 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 45338 invoked by uid 99); 8 Dec 2015 16:33:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2015 16:33:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 50F562C1F5C for ; Tue, 8 Dec 2015 16:33:13 +0000 (UTC) Date: Tue, 8 Dec 2015 16:33:13 +0000 (UTC) From: "Joshua McKenzie (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-7639) Cqlsh cannot use .csv files exported by Excel MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-7639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joshua McKenzie updated CASSANDRA-7639: --------------------------------------- Component/s: Tools > Cqlsh cannot use .csv files exported by Excel > --------------------------------------------- > > Key: CASSANDRA-7639 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7639 > Project: Cassandra > Issue Type: Bug > Components: Tools > Environment: Mac OSX > Reporter: Philip Thompson > Assignee: Joshua McKenzie > Priority: Minor > Labels: osx > Fix For: 1.2.19, 2.0.10, 2.1.1 > > Attachments: 7639-repro.csv > > > When performing COPY table FROM 'test.csv' on cqlsh across any of the three major branches (1.2, 2.0, 2.1), the following error is thrown: > {code}new-line character seen in unquoted field - do you need to open the file in universal-newline mode?{code} > This happens if the .csv file has windows style line endings, such as if it was created by saving a .csv from excel. This reproduces in both unix and windows environments. This is a simple enough fix. I found that running dos2unix on csv files generated by excel was not sufficient to correct the issue. -- This message was sent by Atlassian JIRA (v6.3.4#6332)