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

Method work

src/Processors/Transforms/CreatingSetsTransform.cpp:69–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void CreatingSetsTransform::work()
70{
71 try
72 {
73 if (!is_initialized)
74 init();
75
76 if (done_with_set && done_with_table)
77 {
78 finishConsume();
79 input.close();
80 }
81
82 IAccumulatingTransform::work();
83 }
84 catch (...)
85 {
86 if (promise_to_build)
87 {
88 /// set_exception can also throw
89 try
90 {
91 promise_to_build->set_exception(std::current_exception());
92 promise_to_build.reset();
93 }
94 catch (...)
95 {
96 tryLogCurrentException(log, "Failed to set_exception for promise");
97 }
98 }
99 throw;
100 }
101}
102
103void CreatingSetsTransform::startSubquery()
104{

Callers

nothing calls this directly

Calls 4

initFunction · 0.50
tryLogCurrentExceptionFunction · 0.50
closeMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected