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

Method GenerateSource

src/Storages/StorageGenerateRandom.cpp:852–869  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

850{
851public:
852 GenerateSource(
853 UInt64 block_size_,
854 UInt64 max_array_length_,
855 UInt64 max_string_length_,
856 UInt64 random_seed_,
857 Block block_header_,
858 ContextPtr context_,
859 GenerateRandomStatePtr state_)
860 : ISource(std::make_shared<const Block>(Nested::flattenNested(prepareBlockToFill(block_header_))))
861 , block_size(block_size_)
862 , max_array_length(max_array_length_)
863 , max_string_length(max_string_length_)
864 , block_to_fill(std::move(block_header_))
865 , rng(random_seed_)
866 , context(context_)
867 , shared_state(state_)
868 {
869 }
870
871 String getName() const override { return "GenerateRandom"; }
872

Callers

nothing calls this directly

Calls 1

flattenNestedFunction · 0.85

Tested by

no test coverage detected