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

Cqlsh not reporting correctly for the columns with same name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Duplicate
    • None
    • None
    • None
    • cqlsh 5.0.1 | Cassandra 3.11.0

    • Normal

    Description

      cqlsh:test> create table test ( name text, tstamp timestamp, PRIMARY KEY (name) );
      cqlsh:test> insert into test(name, tstamp) values('aaa', 123);
      cqlsh:test> insert into test(name, tstamp) values('bbb', 321);
      cqlsh:test> select name, tstamp, name from test;

      name | tstamp | name
      -----------------------------------------
      aaa | 1970-01-01 00:00:00.123000+0000 | null
      bbb | 1970-01-01 00:00:00.321000+0000 | null

      (2 rows)
      cqlsh:test> select name, name, tstamp from test;

      name | name | tstamp
      -------------------------------------------
      aaa | 1970-01-01 00:00:00.123000+0000 | null
      bbb | 1970-01-01 00:00:00.321000+0000 | null

      (2 rows)
      cqlsh:test>

      would expect the name columns to have the same value and the tstamp column not misaligned.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              SS@T Scott Shen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: