You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Brad Schoening (Jira)" <ji...@apache.org> on 2026/04/27 18:34:00 UTC
[jira] [Comment Edited] (CASSANDRA-9430) Add startup options to cqlshrc
[ https://issues.apache.org/jira/browse/CASSANDRA-9430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18076652#comment-18076652 ]
Brad Schoening edited comment on CASSANDRA-9430 at 4/27/26 6:33 PM:
--------------------------------------------------------------------
I'm inclined to agree with [~thobbs] that the simplest and cleanest approach is to configure this directly in {{{}.cqlshrc{}}}. This aligns with the original intent of the ticket, which suggested: _"It would be nice to have a section of the cqlshrc to include default settings on startup."_
I suspect that at the time this ticket was filed, {{.cqlshrc}} may not have supported options like [pagesize|https://github.com/apache/cassandra/blob/trunk/conf/cqlshrc.], but it does today. Given that {{.cqlshrc}} has since evolved to cover these use cases, the need for a separate mechanism seems largely moot.
was (Author: bschoeni):
I'm inclined to agree with [~thobbs] that the simple and clean solution is to configure it in .cqlshrc. That's what the original ticket suggested: "it would be nice to have a section of the cqlshrc to include default settings on startup."
I would guess cqlshrc didn't support [pagesize|https://github.com/apache/cassandra/blob/trunk/conf/cqlshrc.] , but it does today.
> Add startup options to cqlshrc
> ------------------------------
>
> Key: CASSANDRA-9430
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9430
> Project: Apache Cassandra
> Issue Type: Improvement
> Components: Legacy/Tools
> Reporter: Jeremy Hanna
> Assignee: Ayantika Sarkar
> Priority: Low
> Labels: cqlsh, lhf
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> There are certain settings that would be nice to set defaults for in the cqlshrc file. For example, a user may want to set the paging to off by default for their environment. You can't simply do
> {code}
> echo "paging off;" | cqlsh
> {code}
> because this would disable paging and immediately exit cqlsh.
> So it would be nice to have a section of the cqlshrc to include default settings on startup.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org