v.20.5New Feature

Add fuzzBits function to randomly flip bits in a string

Add function fuzzBits that randomly flips bits in a string with given probability. #11237 (Andrei Nekrashevich).
Introduces the fuzzBits function that randomly flips bits in a string based on a specified probability.

Why it matters

This feature allows users to simulate data corruption or noise by probabilistically flipping bits within string data, which is useful for testing robustness and error handling in data processing workflows.

How to use it

Use the fuzzBits function by passing a string and a probability value as arguments. For example:

SELECT fuzzBits('string_data', 0.1);

This flips bits in string_data with a 10% chance per bit.