I like the idea. Is the intention to have the of the function be parsable by the config parsers like DataRateSpec, DataStorageSpec, or DurationSpec?
Claude On Thu, Apr 18, 2024 at 9:47 PM Ariel Weisberg <ar...@weisberg.ws> wrote: > Hi, > > I think it’s a good quality of life improvement, but I am someone who > believes in a rich set of built-in functions being a good thing. > > A format function is a bit more scope and kind of orthogonal. It would > still be good to have shorthand functions for things like size. > > Ariel > > On Tue, Apr 9, 2024, at 8:09 AM, Štefan Miklošovič wrote: > > Hi, > > I want to propose CASSANDRA-19546. It would be possible to convert raw > numbers to something human-friendly. > There are cases when we write just a number of bytes in our system tables > but these numbers are just hard to parse visually. Users can indeed use > this for their tables too if they find it useful. > > Also, a user can indeed write a UDF for this but I would prefer if we had > something baked in. > > Does this make sense to people? Are there any other approaches to do this? > > https://issues.apache.org/jira/browse/CASSANDRA-19546 > https://github.com/apache/cassandra/pull/3239/files > > Regards > > >