Skip to content

Commit

Permalink
return array of arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavnajindal committed Feb 23, 2024
1 parent 41741e7 commit 2134d92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Parsers/Kusto/KustoFunctions/KQLTimeSeriesFunctions.cpp
Expand Up @@ -135,8 +135,7 @@ bool SeriesDecomposeAnomalies::convertImpl(String & out, IParser::Pos & pos)
throw DB::Exception(DB::ErrorCodes::NOT_IMPLEMENTED, "only linefit value for trend is supported");

out = std::format(
"ad_flag, ad_score, baseline FROM ( Select seriesDecomposeAnomaliesDetection({0},{1},{2},{3}) AS r) ARRAY JOIN "
"r[1] AS ad_flag, r[2] AS ad_score, r[3] AS baseline",
"seriesDecomposeAnomaliesDetection({0},{1},{2},{3})",
series,
threshold.value_or("1.5"),
seasonality.value_or("-1"),
Expand Down

0 comments on commit 2134d92

Please sign in to comment.