nl_tokens: 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 .
pl_tokens: function pruneStaticCompactTableColumns ( tableInfo ) { let i ; let c ; //remove "column1 text" clustering column for ( i = 0 ; i < tableInfo . clusteringKeys . length ; i ++ ) { c = tableInfo . clusteringKeys [ i ] ; const index = tableInfo . columns . indexOf ( c ) ; tableInfo . columns . splice ( <mask> , 1 ) ; delete tableInfo . columnsByName [ c . name ] ; } tableInfo . clusteringKeys = utils . emptyArray ; tableInfo . clusteringOrder = utils . emptyArray ; //remove regular columns and set the static columns to non-static i = tableInfo . columns . length ; while ( i -- ) { c = tableInfo . columns [ i ] ; if ( ! c . isStatic && tableInfo . partitionKeys . indexOf ( c ) === - 1 ) { // remove "value blob" regular column tableInfo . columns . splice ( i , 1 ) ; delete tableInfo . columnsByName [ c . name ] ; continue ; } c . isStatic = false ; } }