MCPcopy Create free account
hub / github.com/bytedance/bolt / randLongDecimalType

Function randLongDecimalType

bolt/vector/fuzzer/VectorFuzzer.cpp:235–239  ·  view source on GitHub ↗

Generate a long decimal TypePtr with random / special precision and scale.

Source from the content-addressed store, hash-verified

233
234// Generate a long decimal TypePtr with random / special precision and scale.
235inline TypePtr randLongDecimalType(FuzzerGenerator& rng) {
236 auto [precision, scale] = randPrecisionScale(
237 rng, LongDecimalType::kMinPrecision, LongDecimalType::kMaxPrecision);
238 return DECIMAL(precision, scale);
239}
240
241Timestamp randTimestamp(
242 FuzzerGenerator& rng,

Callers 2

randLongDecimalTypeMethod · 0.85
randTypeFunction · 0.85

Calls 2

randPrecisionScaleFunction · 0.85
DECIMALFunction · 0.85

Tested by

no test coverage detected