From bc85df64cb4bda39700222b77173ccb48d8330c2 Mon Sep 17 00:00:00 2001 From: "philip.han" Date: Thu, 9 Jul 2020 22:09:52 +0900 Subject: [PATCH] Fix-style --- src/Functions/abtesting.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Functions/abtesting.cpp b/src/Functions/abtesting.cpp index d9906f17838..aedfcdcc9db 100644 --- a/src/Functions/abtesting.cpp +++ b/src/Functions/abtesting.cpp @@ -85,7 +85,7 @@ ABTestResult bayesian_ab_test(std::string distribution, std::vector xs, for (size_t i = 1; i < xs.size(); ++i) result.beats_control[i] = static_cast(result.beats_control[i]) / R / C; - + // To be best std::vector count_m(xs.size(), 0); std::vector row(xs.size(), 0); @@ -144,7 +144,7 @@ public: const IColumn * getNestedConstColumn(Block & block, const ColumnNumbers & arguments, const size_t n) { const IColumn * col = block.getByPosition(arguments[n]).column.get(); - const IColumn * nested_col; + const IColumn * nested_col; ColumnPtr materialized_column; if (const ColumnConst * const_arr = checkAndGetColumnConst(col)) @@ -206,8 +206,7 @@ public: xs = getDoubleValues(getNestedConstColumn(block, arguments, 3)); ys = getDoubleValues(getNestedConstColumn(block, arguments, 4)); if (variant_names.size() != xs.size() || xs.size() != ys.size()) - throw Exception(ErrorCodes::BAD_ARGUMENTS, "Sizes of arguments doen't match: variant_names: {}, xs: {}, ys: {}", - variant_names.size(), xs.size(), ys.size()); + throw Exception(ErrorCodes::BAD_ARGUMENTS, "Sizes of arguments doen't match: variant_names: {}, xs: {}, ys: {}", variant_names.size(), xs.size(), ys.size()); if (std::count_if(xs.begin(), xs.end(), [](double v) { return v < 0; }) > 0 || std::count_if(ys.begin(), ys.end(), [](double v) { return v < 0; }) > 0)