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 BD2F4200D07 for ; Sun, 17 Sep 2017 06:47:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BBC3F1609D6; Sun, 17 Sep 2017 04:47:05 +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 0CA881609D5 for ; Sun, 17 Sep 2017 06:47:04 +0200 (CEST) Received: (qmail 83107 invoked by uid 500); 17 Sep 2017 04:47:04 -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 83096 invoked by uid 99); 17 Sep 2017 04:47:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Sep 2017 04:47:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 491F2183A70 for ; Sun, 17 Sep 2017 04:47:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -98.702 X-Spam-Level: X-Spam-Status: No, score=-98.702 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_NUMSUBJECT=0.5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 7-8s9nRmEf8g for ; Sun, 17 Sep 2017 04:47:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 2085A5FBBB for ; Sun, 17 Sep 2017 04:47:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 96CB9E0D4E for ; Sun, 17 Sep 2017 04:47:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2ECB125382 for ; Sun, 17 Sep 2017 04:47:00 +0000 (UTC) Date: Sun, 17 Sep 2017 04:47:00 +0000 (UTC) From: "Haim Raman (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-13864) Failure to execute cql script using cqlsh with nested SOURCE on cassandra 3.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 17 Sep 2017 04:47:05 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-13864?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D16169190#comment-16169190 ]=20 Haim Raman commented on CASSANDRA-13864: ---------------------------------------- Thanks Joel You are right it was not reproducible in Apache Cassandra.=20 > Failure to execute cql script using cqlsh with nested SOURCE on cassandr= a 3.11.0 > -------------------------------------------------------------------------= -------- > > Key: CASSANDRA-13864 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1386= 4 > Project: Cassandra > Issue Type: Bug > Components: CQL > Environment: SUSE Linux Enterprise Server 12 > Python 2.7.7 > Reporter: Haim Raman > Attachments: test.zip > > > I have a script I used to execute queries and DDL on cassandra 2.1.15 (ba= sed on DSE 4.8.10). > The script include nested use of the SOURCE command. > {code:title=3D1.sql|borderStyle=3Dsolid} > USE test; > SOURCE '2.sql' > exit; > {code} > {code:title=3D2.sql|borderStyle=3Dsolid} > SELECT count(1) FROM user; > SOURCE '3.sql'; > {code} > {code:title=3D3.sql|borderStyle=3Dsolid} > SELECT count(1) FROM user; > {code} > When executing this script with DSE 4.8.10 it runs correctly and output > {code:title=3Dcassandra 2.1.15|borderStyle=3Dnone} > cqlsh =E2=80=93f 1.sql > count > -------- > 0 > (1 rows) > count > -------- > 0 > (1 rows) > {code} > Running the same script with cassandra 3.11.0 (based on DSE 5.1.2). > {code:title=3Dcassandra 3.11.0|borderStyle=3Dnone} > cqlsh =E2=80=93f 1.sql > count > ------- > 0 > (1 rows) > Warnings : > Aggregation query used without partition key > 2.sql:3:DSEShell instance has no attribute 'execution_profiles' > {code} > *The actual issue is that the script in 3.sql is not executed.* > I did some additional investigations > # With DSE-5.1.2 I switch the off to authenticator: AllowAllAuthenticator= authorizer: AllowAllAuthorizer, but I am still experiencing the issue > # With DSE-5.0.9 (Cassandra 3.0.13.1735) it works > h4.Steps to reproduce:=20 > Use the attached test.zip > execute > cqlsh -f create_keyspace.sql > cqlsh -f 1.sql -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org For additional commands, e-mail: commits-help@cassandra.apache.org