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 DACF8200B5E for ; Wed, 27 Jul 2016 06:30:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D9925160AA4; Wed, 27 Jul 2016 04:30:22 +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 2C891160AA6 for ; Wed, 27 Jul 2016 06:30:22 +0200 (CEST) Received: (qmail 12553 invoked by uid 500); 27 Jul 2016 04:30:21 -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 12203 invoked by uid 99); 27 Jul 2016 04:30:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2016 04:30:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B9CB02C0D64 for ; Wed, 27 Jul 2016 04:30:20 +0000 (UTC) Date: Wed, 27 Jul 2016 04:30:20 +0000 (UTC) From: "Stefania (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-12174) COPY FROM should raise error for non-existing input files MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 27 Jul 2016 04:30:23 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-12174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stefania updated CASSANDRA-12174: --------------------------------- Labels: cqlsh lhf (was: lhf) > COPY FROM should raise error for non-existing input files > --------------------------------------------------------- > > Key: CASSANDRA-12174 > URL: https://issues.apache.org/jira/browse/CASSANDRA-12174 > Project: Cassandra > Issue Type: Improvement > Components: Tools > Reporter: Stefan Podkowinski > Assignee: Hiroyuki Nishi > Priority: Minor > Labels: cqlsh, lhf > Fix For: 3.10 > > Attachments: CASSANDRA-12174-trunk.patch > > > Currently the CSV COPY FROM command will not raise any error for non-existing paths. Instead only "0 rows imported" will be shown as result. > As the COPY FROM command is often used for tutorials and getting started guides, I'd suggest to give a clear error message in case of a missing input file. Without such error it can be confusing for the user to see the command actually finish, without any clues why no rows have been imported. > {noformat} > CREATE KEYSPACE test > WITH REPLICATION = { 'class' : 'NetworkTopologyStrategy', 'datacenter1' : 1 }; > USE test; > CREATE TABLE airplanes ( > name text PRIMARY KEY, > manufacturer ascii, > year int, > mach float > ); > COPY airplanes (name, manufacturer, year, mach) FROM '/tmp/1234-doesnotexist'; > Using 3 child processes > Starting copy of test.airplanes with columns [name, manufacturer, year, mach]. > Processed: 0 rows; Rate: 0 rows/s; Avg. rate: 0 rows/s > 0 rows imported from 0 files in 0.216 seconds (0 skipped). > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)