diff --git a/.gitignore b/.gitignore index 0716fb1ac09..52d58e68cb6 100644 --- a/.gitignore +++ b/.gitignore @@ -118,6 +118,7 @@ website/package-lock.json # clangd cache /.clangd +/.cache /compile_commands.json diff --git a/src/Functions/abtesting.h b/src/Functions/abtesting.h index 24ec22e4a88..0be41db0538 100644 --- a/src/Functions/abtesting.h +++ b/src/Functions/abtesting.h @@ -4,25 +4,24 @@ #if !defined(ARCADIA_BUILD) && USE_STATS +# include +# include -#include -#include -#include - -#include -#include +# include +# include +# include namespace DB { -typedef struct _Variant +struct Variant { Float64 x; Float64 y; Float64 beats_control; Float64 best; -} Variant; +}; using Variants = PODArray; diff --git a/src/Functions/tests/gtest_abtesting.cpp b/src/Functions/tests/gtest_abtesting.cpp index 0e0234e0096..b388a187479 100644 --- a/src/Functions/tests/gtest_abtesting.cpp +++ b/src/Functions/tests/gtest_abtesting.cpp @@ -1,8 +1,8 @@ -#include - #include -#include -#include + +#if !defined(ARCADIA_BUILD) && USE_STATS + +# include using namespace DB; @@ -97,3 +97,4 @@ TEST(BayesAB, gamma) ASSERT_EQ(0, max); } +#endif