code: public static void pruneStaticCompactTableColumns(List<RawColumn> columns) {
      ListIterator<RawColumn> iterator = columns.listIterator();
      while (iterator.hasNext()) {
        RawColumn column = iterator.next();
        switch (column.kind) {
          case KIND_CLUSTERING_COLUMN:
          case KIND_REGULAR:
            iterator.remove();
            break;
          case KIND_STATIC:
            column.kind = KIND_REGULAR;
            break;
          default:
            // nothing to do
        }
      }
    }
docs: Helper method to filter columns while parsing a table's metadata.
  
  <p>Upon migration from thrift to CQL, we internally create a pair of surrogate
  clustering/regular columns for compact static tables. These columns shouldn't be exposed to the
  user but are currently returned by C*. We also need to remove the static keyword for all other
  columns in the table.