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

Provide access to select statement's real column definitions

    XMLWordPrintableJSON

Details

    Description

      Currently there is no way to get access to the real ColumnDefinitions being used in a SelectStatement.

      This information is there in
      selectStatement.selection.columns but is private.

      Giving public access would make it possible for third-party implementations of a QueryHandler to work accurately with the real columns being queried and not have to work-around column aliases (or when the rawSelectors don't map directly to ColumnDefinitions, eg in Selection.fromSelectors(..), like functions), which is what one has to do today with going through ResultSet.metadata.names.

      This issue provides a very minimal patch to provide access to the already final and immutable fields.

      Attachments

        1. trunk-9532.txt
          1 kB
          Michael Semb Wever
        2. cassandra-2.2-9532.txt
          1 kB
          Michael Semb Wever
        3. cassandra-2.1-9532.txt
          1 kB
          Michael Semb Wever
        4. cassandra-2.0-9532.txt
          2 kB
          Michael Semb Wever
        5. 9532-trunk-v2.txt
          28 kB
          Sam Tunnicliffe
        6. 9532-2.2-v2.txt
          28 kB
          Sam Tunnicliffe
        7. 9532-2.1-v2.txt
          20 kB
          Sam Tunnicliffe
        8. 9532-2.0-v2.txt
          19 kB
          Sam Tunnicliffe

        Activity

          People

            samt Sam Tunnicliffe
            mck Michael Semb Wever
            Sam Tunnicliffe
            Benjamin Lerer
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: