| 67 | } |
| 68 | |
| 69 | void 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 | |
| 103 | void CreatingSetsTransform::startSubquery() |
| 104 | { |
nothing calls this directly
no test coverage detected