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 31317175C5 for ; Wed, 1 Apr 2015 16:05:09 +0000 (UTC) Received: (qmail 32120 invoked by uid 500); 1 Apr 2015 16:04:56 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 32090 invoked by uid 500); 1 Apr 2015 16:04:56 -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 32078 invoked by uid 99); 1 Apr 2015 16:04:56 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2015 16:04:56 +0000 Date: Wed, 1 Apr 2015 16:04:56 +0000 (UTC) From: "Joseph Chu (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-9083) cqlsh COPY functionality doesn't work together with SOURCE or with cqlsh -f 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-9083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14390882#comment-14390882 ] Joseph Chu commented on CASSANDRA-9083: --------------------------------------- I'm using Python 2.7.3 > cqlsh COPY functionality doesn't work together with SOURCE or with cqlsh -f > --------------------------------------------------------------------------- > > Key: CASSANDRA-9083 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9083 > Project: Cassandra > Issue Type: Bug > Components: Tools > Environment: 2.1.3 > Reporter: Joseph Chu > Assignee: Tyler Hobbs > Priority: Minor > Labels: cqlsh > Fix For: 2.1.5 > > > Executing a COPY command from an external file using the cqlsh -f or the SOURCE command results in the error: > filename.cql:7:descriptor 'lower' requires a 'str' object but received a 'unicode' > Looks like there was a change in the cqlsh code from 2.1.2 to 2.1.3 which makes use of codecs.open() instead of open(), which returns a unicode object. > The offending line of code that returns the error seems to be in cqlsh, line 1415: > copyoptnames = map(str.lower, parsed.get_binding('optnames', ())) -- This message was sent by Atlassian JIRA (v6.3.4#6332)