[jira] [Commented] (CASSANDRA-15660) Unable to specify -e/--execute flag in cqlsh
[ https://issues.apache.org/jira/browse/CASSANDRA-15660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17086603#comment-17086603 ] ZhaoYang commented on CASSANDRA-15660: -- thanks for the review [~djoshi] [~brandon.williams] > Unable to specify -e/--execute flag in cqlsh > > > Key: CASSANDRA-15660 > URL: https://issues.apache.org/jira/browse/CASSANDRA-15660 > Project: Cassandra > Issue Type: Bug > Components: Tool/cqlsh >Reporter: Stefan Miklosovic >Assignee: ZhaoYang >Priority: Normal > Labels: pull-request-available > Fix For: 4.0-alpha > > Time Spent: 10m > Remaining Estimate: 0h > > From mailing list: > [https://lists.apache.org/thread.html/r377099b632c62b641e4feef5b738084fc5369b0c7157fae867853597%40%3Cdev.cassandra.apache.org%3E] > The bug looks like this: > {code:java} > $ /usr/bin/cqlsh -e 'describe keyspaces' -u cassandra -p cassandra 127.0.0.1 > Usage: cqlsh.py [options] [host [port]]cqlsh.py: error: '127.0.0.1' is not a > valid port number. > {code} > This is working in 3.x releases just fine but fails on 4. > The workaround for 4.x code as of today is to put these statements into file > and use "-f" flag. > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-15660) Unable to specify -e/--execute flag in cqlsh
[ https://issues.apache.org/jira/browse/CASSANDRA-15660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17085034#comment-17085034 ] ZhaoYang commented on CASSANDRA-15660: -- [~brandon.williams]/[~djoshi] friendly ping.. > Unable to specify -e/--execute flag in cqlsh > > > Key: CASSANDRA-15660 > URL: https://issues.apache.org/jira/browse/CASSANDRA-15660 > Project: Cassandra > Issue Type: Bug > Components: Tool/cqlsh >Reporter: Stefan Miklosovic >Assignee: ZhaoYang >Priority: Normal > Labels: pull-request-available > Fix For: 4.0-alpha > > Time Spent: 10m > Remaining Estimate: 0h > > From mailing list: > [https://lists.apache.org/thread.html/r377099b632c62b641e4feef5b738084fc5369b0c7157fae867853597%40%3Cdev.cassandra.apache.org%3E] > The bug looks like this: > {code:java} > $ /usr/bin/cqlsh -e 'describe keyspaces' -u cassandra -p cassandra 127.0.0.1 > Usage: cqlsh.py [options] [host [port]]cqlsh.py: error: '127.0.0.1' is not a > valid port number. > {code} > This is working in 3.x releases just fine but fails on 4. > The workaround for 4.x code as of today is to put these statements into file > and use "-f" flag. > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-15660) Unable to specify -e/--execute flag in cqlsh
[ https://issues.apache.org/jira/browse/CASSANDRA-15660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17081143#comment-17081143 ] ZhaoYang commented on CASSANDRA-15660: -- [CI]([https://circleci.com/workflow-run/8e4b4739-cb7c-40ad-a24d-8d7c0027eb4b]) looks good > Unable to specify -e/--execute flag in cqlsh > > > Key: CASSANDRA-15660 > URL: https://issues.apache.org/jira/browse/CASSANDRA-15660 > Project: Cassandra > Issue Type: Bug > Components: Tool/cqlsh >Reporter: Stefan Miklosovic >Assignee: ZhaoYang >Priority: Normal > Labels: pull-request-available > Fix For: 4.0-alpha > > Time Spent: 10m > Remaining Estimate: 0h > > From mailing list: > [https://lists.apache.org/thread.html/r377099b632c62b641e4feef5b738084fc5369b0c7157fae867853597%40%3Cdev.cassandra.apache.org%3E] > The bug looks like this: > {code:java} > $ /usr/bin/cqlsh -e 'describe keyspaces' -u cassandra -p cassandra 127.0.0.1 > Usage: cqlsh.py [options] [host [port]]cqlsh.py: error: '127.0.0.1' is not a > valid port number. > {code} > This is working in 3.x releases just fine but fails on 4. > The workaround for 4.x code as of today is to put these statements into file > and use "-f" flag. > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-15660) Unable to specify -e/--execute flag in cqlsh
[ https://issues.apache.org/jira/browse/CASSANDRA-15660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17077957#comment-17077957 ] ZhaoYang commented on CASSANDRA-15660: -- [~djoshi] thanks the feedback. Writing shell script for the first time.. Updated the patch to remove "--python" option and its value from users arguments {{$@}}. This seems to be a safer approach comparing existing trunk - constructing users arguments as string.. Shellcheck passed and "cqlsh_tests/test_cqlsh.py" passed locally. Do you mind having another look? > Unable to specify -e/--execute flag in cqlsh > > > Key: CASSANDRA-15660 > URL: https://issues.apache.org/jira/browse/CASSANDRA-15660 > Project: Cassandra > Issue Type: Bug > Components: Tool/cqlsh >Reporter: Stefan Miklosovic >Assignee: ZhaoYang >Priority: Normal > Labels: pull-request-available > Fix For: 4.0-alpha > > Time Spent: 10m > Remaining Estimate: 0h > > From mailing list: > [https://lists.apache.org/thread.html/r377099b632c62b641e4feef5b738084fc5369b0c7157fae867853597%40%3Cdev.cassandra.apache.org%3E] > The bug looks like this: > {code:java} > $ /usr/bin/cqlsh -e 'describe keyspaces' -u cassandra -p cassandra 127.0.0.1 > Usage: cqlsh.py [options] [host [port]]cqlsh.py: error: '127.0.0.1' is not a > valid port number. > {code} > This is working in 3.x releases just fine but fails on 4. > The workaround for 4.x code as of today is to put these statements into file > and use "-f" flag. > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-15660) Unable to specify -e/--execute flag in cqlsh
[ https://issues.apache.org/jira/browse/CASSANDRA-15660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17077660#comment-17077660 ] Dinesh Joshi commented on CASSANDRA-15660: -- [~jasonstack] thanks, I was looking at only the patch that [~mck] posted! My bad. > Unable to specify -e/--execute flag in cqlsh > > > Key: CASSANDRA-15660 > URL: https://issues.apache.org/jira/browse/CASSANDRA-15660 > Project: Cassandra > Issue Type: Bug > Components: Tool/cqlsh >Reporter: Stefan Miklosovic >Assignee: ZhaoYang >Priority: Normal > Labels: pull-request-available > Fix For: 4.0-alpha > > Time Spent: 10m > Remaining Estimate: 0h > > From mailing list: > [https://lists.apache.org/thread.html/r377099b632c62b641e4feef5b738084fc5369b0c7157fae867853597%40%3Cdev.cassandra.apache.org%3E] > The bug looks like this: > {code:java} > $ /usr/bin/cqlsh -e 'describe keyspaces' -u cassandra -p cassandra 127.0.0.1 > Usage: cqlsh.py [options] [host [port]]cqlsh.py: error: '127.0.0.1' is not a > valid port number. > {code} > This is working in 3.x releases just fine but fails on 4. > The workaround for 4.x code as of today is to put these statements into file > and use "-f" flag. > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-15660) Unable to specify -e/--execute flag in cqlsh
[ https://issues.apache.org/jira/browse/CASSANDRA-15660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17076803#comment-17076803 ] ZhaoYang commented on CASSANDRA-15660: -- [~djoshi] there is a regression dtest.. > Unable to specify -e/--execute flag in cqlsh > > > Key: CASSANDRA-15660 > URL: https://issues.apache.org/jira/browse/CASSANDRA-15660 > Project: Cassandra > Issue Type: Bug > Components: Tool/cqlsh >Reporter: Stefan Miklosovic >Assignee: ZhaoYang >Priority: Normal > Labels: pull-request-available > Fix For: 4.0-alpha > > Time Spent: 10m > Remaining Estimate: 0h > > From mailing list: > [https://lists.apache.org/thread.html/r377099b632c62b641e4feef5b738084fc5369b0c7157fae867853597%40%3Cdev.cassandra.apache.org%3E] > The bug looks like this: > {code:java} > $ /usr/bin/cqlsh -e 'describe keyspaces' -u cassandra -p cassandra 127.0.0.1 > Usage: cqlsh.py [options] [host [port]]cqlsh.py: error: '127.0.0.1' is not a > valid port number. > {code} > This is working in 3.x releases just fine but fails on 4. > The workaround for 4.x code as of today is to put these statements into file > and use "-f" flag. > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-15660) Unable to specify -e/--execute flag in cqlsh
[ https://issues.apache.org/jira/browse/CASSANDRA-15660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17076754#comment-17076754 ] Dinesh Joshi commented on CASSANDRA-15660: -- thank you for the patch. Could we please add a test to detect a future regression? > Unable to specify -e/--execute flag in cqlsh > > > Key: CASSANDRA-15660 > URL: https://issues.apache.org/jira/browse/CASSANDRA-15660 > Project: Cassandra > Issue Type: Bug > Components: Tool/cqlsh >Reporter: Stefan Miklosovic >Assignee: ZhaoYang >Priority: Normal > Labels: pull-request-available > Fix For: 4.0-alpha > > Time Spent: 10m > Remaining Estimate: 0h > > From mailing list: > [https://lists.apache.org/thread.html/r377099b632c62b641e4feef5b738084fc5369b0c7157fae867853597%40%3Cdev.cassandra.apache.org%3E] > The bug looks like this: > {code:java} > $ /usr/bin/cqlsh -e 'describe keyspaces' -u cassandra -p cassandra 127.0.0.1 > Usage: cqlsh.py [options] [host [port]]cqlsh.py: error: '127.0.0.1' is not a > valid port number. > {code} > This is working in 3.x releases just fine but fails on 4. > The workaround for 4.x code as of today is to put these statements into file > and use "-f" flag. > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-15660) Unable to specify -e/--execute flag in cqlsh
[ https://issues.apache.org/jira/browse/CASSANDRA-15660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17073057#comment-17073057 ] Michael Semb Wever commented on CASSANDRA-15660: ||branch||circleci||jenkins|| |[trunk_15660|https://github.com/apache/cassandra/compare/trunk...jasonstack:CASSANDRA-15660-trunk]|[circleci|https://circleci.com/gh/jasonstack/workflows/cassandra/tree/CASSANDRA-15660-trunk]|[!https://ci-cassandra.apache.org/job/Cassandra-devbranch/10/badge/icon!|https://ci-cassandra.apache.org/blue/organizations/jenkins/Cassandra-devbranch/detail/Cassandra-devbranch/10]| > Unable to specify -e/--execute flag in cqlsh > > > Key: CASSANDRA-15660 > URL: https://issues.apache.org/jira/browse/CASSANDRA-15660 > Project: Cassandra > Issue Type: Bug > Components: Tool/cqlsh >Reporter: Stefan Miklosovic >Assignee: ZhaoYang >Priority: Normal > Labels: pull-request-available > Fix For: 4.0-alpha > > Time Spent: 10m > Remaining Estimate: 0h > > From mailing list: > [https://lists.apache.org/thread.html/r377099b632c62b641e4feef5b738084fc5369b0c7157fae867853597%40%3Cdev.cassandra.apache.org%3E] > The bug looks like this: > {code:java} > $ /usr/bin/cqlsh -e 'describe keyspaces' -u cassandra -p cassandra 127.0.0.1 > Usage: cqlsh.py [options] [host [port]]cqlsh.py: error: '127.0.0.1' is not a > valid port number. > {code} > This is working in 3.x releases just fine but fails on 4. > The workaround for 4.x code as of today is to put these statements into file > and use "-f" flag. > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-15660) Unable to specify -e/--execute flag in cqlsh
[ https://issues.apache.org/jira/browse/CASSANDRA-15660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17071940#comment-17071940 ] Stefan Miklosovic commented on CASSANDRA-15660: --- tested and works as expected > Unable to specify -e/--execute flag in cqlsh > > > Key: CASSANDRA-15660 > URL: https://issues.apache.org/jira/browse/CASSANDRA-15660 > Project: Cassandra > Issue Type: Bug > Components: Tool/cqlsh >Reporter: Stefan Miklosovic >Assignee: ZhaoYang >Priority: Normal > Labels: pull-request-available > Fix For: 4.0-alpha > > Time Spent: 10m > Remaining Estimate: 0h > > From mailing list: > [https://lists.apache.org/thread.html/r377099b632c62b641e4feef5b738084fc5369b0c7157fae867853597%40%3Cdev.cassandra.apache.org%3E] > The bug looks like this: > {code:java} > $ /usr/bin/cqlsh -e 'describe keyspaces' -u cassandra -p cassandra 127.0.0.1 > Usage: cqlsh.py [options] [host [port]]cqlsh.py: error: '127.0.0.1' is not a > valid port number. > {code} > This is working in 3.x releases just fine but fails on 4. > The workaround for 4.x code as of today is to put these statements into file > and use "-f" flag. > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-15660) Unable to specify -e/--execute flag in cqlsh
[ https://issues.apache.org/jira/browse/CASSANDRA-15660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17071634#comment-17071634 ] ZhaoYang commented on CASSANDRA-15660: -- The issue is that arguments are being evaluated in shell script... {{{$VAR}}} will be evaluated and causing \{{*}} to list all files, we should use {{"{$VAR}"}} instead. > Unable to specify -e/--execute flag in cqlsh > > > Key: CASSANDRA-15660 > URL: https://issues.apache.org/jira/browse/CASSANDRA-15660 > Project: Cassandra > Issue Type: Bug > Components: Tool/cqlsh >Reporter: Stefan Miklosovic >Assignee: ZhaoYang >Priority: Normal > Fix For: 4.0-alpha > > > From mailing list: > [https://lists.apache.org/thread.html/r377099b632c62b641e4feef5b738084fc5369b0c7157fae867853597%40%3Cdev.cassandra.apache.org%3E] > The bug looks like this: > {code:java} > $ /usr/bin/cqlsh -e 'describe keyspaces' -u cassandra -p cassandra 127.0.0.1 > Usage: cqlsh.py [options] [host [port]]cqlsh.py: error: '127.0.0.1' is not a > valid port number. > {code} > This is working in 3.x releases just fine but fails on 4. > The workaround for 4.x code as of today is to put these statements into file > and use "-f" flag. > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-15660) Unable to specify -e/--execute flag in cqlsh
[ https://issues.apache.org/jira/browse/CASSANDRA-15660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17071299#comment-17071299 ] Brandon Williams commented on CASSANDRA-15660: -- Just wanted to add a note about something weird going on here. {code} $ bin/cqlsh -e 'select * from foo;' Usage: cqlsh.py [options] [host [port]] cqlsh.py: error: '499.patch' is not a valid port number. {code} Note that I used single quotes, so the wildcard is not being interpreted by the shell, however '499.patch' is a file in my C* working directory. > Unable to specify -e/--execute flag in cqlsh > > > Key: CASSANDRA-15660 > URL: https://issues.apache.org/jira/browse/CASSANDRA-15660 > Project: Cassandra > Issue Type: Bug > Components: Tool/cqlsh >Reporter: Stefan Miklosovic >Priority: Normal > Fix For: 4.0-alpha > > > From mailing list: > [https://lists.apache.org/thread.html/r377099b632c62b641e4feef5b738084fc5369b0c7157fae867853597%40%3Cdev.cassandra.apache.org%3E] > The bug looks like this: > {code:java} > $ /usr/bin/cqlsh -e 'describe keyspaces' -u cassandra -p cassandra 127.0.0.1 > Usage: cqlsh.py [options] [host [port]]cqlsh.py: error: '127.0.0.1' is not a > valid port number. > {code} > This is working in 3.x releases just fine but fails on 4. > The workaround for 4.x code as of today is to put these statements into file > and use "-f" flag. > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-15660) Unable to specify -e/--execute flag in cqlsh
[ https://issues.apache.org/jira/browse/CASSANDRA-15660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17066126#comment-17066126 ] Stefan Miklosovic commented on CASSANDRA-15660: --- [~ptbannister] maybe something for you to look at? Thank you very much! > Unable to specify -e/--execute flag in cqlsh > > > Key: CASSANDRA-15660 > URL: https://issues.apache.org/jira/browse/CASSANDRA-15660 > Project: Cassandra > Issue Type: Bug > Components: Tool/cqlsh >Reporter: Stefan Miklosovic >Priority: Normal > > From mailing list: > [https://lists.apache.org/thread.html/r377099b632c62b641e4feef5b738084fc5369b0c7157fae867853597%40%3Cdev.cassandra.apache.org%3E] > The bug looks like this: > {code:java} > $ /usr/bin/cqlsh -e 'describe keyspaces' -u cassandra -p cassandra 127.0.0.1 > Usage: cqlsh.py [options] [host [port]]cqlsh.py: error: '127.0.0.1' is not a > valid port number. > {code} > This is working in 3.x releases just fine but fails on 4. > The workaround for 4.x code as of today is to put these statements into file > and use "-f" flag. > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org