After adding a pair of columns in schema, I want to select them via select *
. Instead select *
returns old set of columns and none new.
By documentation recommendation, I use {prepare: true} to smooth JavaScript floats and Cassandra ints/bigints difference (I don't really need the prepared statement here really, it is just to resolve this ResponseError : Expected 4 or 0 byte int issue and I also don't want to bother myself with query hints
).
So on first execution of select *
I had 3 columns. After this, I added 2 columns to schema. select *
still returns 3 columns if is used with {prepare: true}
and 5 columns if used without it.
I want to have a way to reliably refresh this cache or make cassandra driver prepare statements on each app start.
I don't consider restarting database cluster a reliable way.