Generate a short decimal TypePtr with random / special precision and scale.
| 223 | |
| 224 | // Generate a short decimal TypePtr with random / special precision and scale. |
| 225 | inline TypePtr randShortDecimalType(FuzzerGenerator& rng) { |
| 226 | auto [precision, scale] = randPrecisionScale( |
| 227 | rng, |
| 228 | ShortDecimalType::kMinPrecision == 0 ? 1 |
| 229 | : ShortDecimalType::kMinPrecision, |
| 230 | ShortDecimalType::kMaxPrecision); |
| 231 | return DECIMAL(precision, scale); |
| 232 | } |
| 233 | |
| 234 | // Generate a long decimal TypePtr with random / special precision and scale. |
| 235 | inline TypePtr randLongDecimalType(FuzzerGenerator& rng) { |
no test coverage detected