MCPcopy Create free account
hub / github.com/ByConity/ByConity / makeOutputNullable

Method makeOutputNullable

src/QueryPlan/EnforceSingleRowStep.cpp:42–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void EnforceSingleRowStep::makeOutputNullable()
43{
44 auto input_header = input_streams[0].header;
45 NamesAndTypes nullable_output_header;
46 for(auto & input : input_header)
47 {
48 if (!JoinCommon::canBecomeNullable(input.type))
49 nullable_output_header.emplace_back(input.name, input.type);
50 else
51 nullable_output_header.emplace_back(input.name, JoinCommon::convertTypeToNullable(input.type));
52 }
53 output_stream = DataStream{.header = {nullable_output_header}};
54}
55
56std::shared_ptr<EnforceSingleRowStep> EnforceSingleRowStep::fromProto(const Protos::EnforceSingleRowStep & proto, ContextPtr)
57{

Callers

nothing calls this directly

Calls 3

canBecomeNullableFunction · 0.85
convertTypeToNullableFunction · 0.85
emplace_backMethod · 0.45

Tested by

no test coverage detected