| 1046 | } |
| 1047 | |
| 1048 | ExpressionActionsChain::ArrayJoinStep::ArrayJoinStep(ArrayJoinActionPtr array_join_, ColumnsWithTypeAndName required_columns_) |
| 1049 | : Step({}) |
| 1050 | , array_join(std::move(array_join_)) |
| 1051 | , result_columns(std::move(required_columns_)) |
| 1052 | { |
| 1053 | for (auto & column : result_columns) |
| 1054 | { |
| 1055 | required_columns.emplace_back(NameAndTypePair(column.name, column.type)); |
| 1056 | |
| 1057 | if (array_join->columns.count(column.name) > 0) |
| 1058 | { |
| 1059 | const auto array_type = getArrayJoinDataType(column.type); |
| 1060 | column.type = array_type->getNestedType(); |
| 1061 | /// Arrays are materialized |
| 1062 | column.column = nullptr; |
| 1063 | } |
| 1064 | } |
| 1065 | } |
| 1066 | |
| 1067 | void ExpressionActionsChain::ArrayJoinStep::finalize(const NameSet & required_output_) |
| 1068 | { |
nothing calls this directly
no test coverage detected