Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-11092

EXPAND breaks when the result has 0 rows in cqlsh

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Low

    Description

      cqlsh> EXPAND ON;
      Now Expanded output is enabled
      cqlsh> select * from system.local;
      
      @ Row 1
      -------------------------+---------------------------------------------
       key                     | local
       bootstrapped            | COMPLETED
       broadcast_address       | 127.0.0.1
       cluster_name            | dse_50_graph
       cql_version             | 3.4.0
       data_center             | Graph
       dse_version             | 5.0.0
       gossip_generation       | 1454032824
       graph                   | True
       host_id                 | ad30ccb2-04a1-4511-98b6-a72e4ea182c0
       listen_address          | 127.0.0.1
       native_protocol_version | 4
       partitioner             | org.apache.cassandra.dht.Murmur3Partitioner
       rack                    | rack1
       release_version         | 3.0.1.816
       rpc_address             | 127.0.0.1
       schema_version          | 5667501a-4ac3-3f00-ab35-9040efb927ad
       server_id               | A0-CE-C8-01-CC-CA
       thrift_version          | 20.1.0
       tokens                  | {'-9223372036854775808'}
       truncated_at            | null
       workload                | Cassandra
      
      (1 rows)
      cqlsh> select * from system.peers;
      
      max() arg is an empty sequence
      cqlsh> EXPAND OFF;
      Disabled Expanded output.
      cqlsh> select * from system.peers;
      
       peer | data_center | dse_version | graph | host_id | preferred_ip | rack | release_version | rpc_address | schema_version | server_id | tokens | workload
      ------+-------------+-------------+-------+---------+--------------+------+-----------------+-------------+----------------+-----------+--------+----------
      
      (0 rows)
      
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            yukim Yuki Morishita Assign to me
            kishkaru Kishan Karunaratne
            Yuki Morishita
            Tom Hobbs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment