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 E74FD10C44 for ; Tue, 19 May 2015 19:34:00 +0000 (UTC) Received: (qmail 88915 invoked by uid 500); 19 May 2015 19:34:00 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 88884 invoked by uid 500); 19 May 2015 19:34:00 -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 88872 invoked by uid 99); 19 May 2015 19:34:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 May 2015 19:34:00 +0000 Date: Tue, 19 May 2015 19:34:00 +0000 (UTC) From: "Jim Witschey (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-9306) Test coverage for cqlsh COPY 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-9306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14551077#comment-14551077 ] Jim Witschey commented on CASSANDRA-9306: ----------------------------------------- [PR's been merged|https://github.com/riptano/cassandra-dtest/commit/0e7ba1994f043678740a166c43247ec04fbb4894]. [~thobbs], if I've addressed your concerns, go ahead and close. > Test coverage for cqlsh COPY > ---------------------------- > > Key: CASSANDRA-9306 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9306 > Project: Cassandra > Issue Type: Test > Components: Core > Reporter: Tyler Hobbs > Assignee: Jim Witschey > Labels: cqlsh > Fix For: 3.x, 2.1.x > > > We need much more thorough test coverage for cqlsh's COPY TO/FROM commands. There is one existing basic dtest ({{cqlsh_tests.py:TestCqlsh.test_copy_to}}) that we can use as a starting point for new tests. > The following things need to be tested: > * Non-default delimiters > * Null fields and non-default null markers > * Skipping a header line > * Explicit column ordering > * Column names that need to be quoted > * Every supported C* data type > * Data that fails validation server-side > * Wrong number of columns > * Node going down during COPY operation > In the non-failure cases, the tests should generally inserted data into Cassandra, run COPY TO to dump the data to CSV, truncate, run COPY FROM to reimport the data, and then verify that the reloaded data matches the originally inserted data. -- This message was sent by Atlassian JIRA (v6.3.4#6332)