MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / insertNumberEntry

Method insertNumberEntry

src/Client/BuzzHouse/Generator/SQLTypes.cpp:130–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130String BoolType::insertNumberEntry(RandomGenerator & rg, StatementGenerator & gen, const uint32_t, const uint32_t) const
131{
132 if (rg.nextSmallNumber() < 8)
133 {
134 const static DB::Strings comp = {"<", "<=", ">", ">=", "=", "=", "=", "<>", "<>"};
135 String buf = "(number % ";
136
137 buf += std::to_string(rg.randomInt<uint32_t>(1, 10));
138 buf += ") ";
139 buf += rg.pickRandomly(comp);
140 buf += " ";
141 buf += std::to_string(rg.randomInt<uint32_t>(1, 10));
142 return buf;
143 }
144 return appendRandomRawValue(rg, gen);
145}
146
147String IntType::typeName(const bool, const bool) const
148{

Callers 1

generateInsertToTableMethod · 0.80

Calls 11

numberColumnFunction · 0.85
appendAggrParamsFunction · 0.85
nextSmallNumberMethod · 0.80
nextStringMethod · 0.80
nextStrlenMethod · 0.80
randomNextTypeMethod · 0.80
nextMediumNumberMethod · 0.80
to_stringFunction · 0.50
minFunction · 0.50
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected