diff --git a/lib/simpleramix.ex b/lib/simpleramix.ex index 689ed27..65b4621 100644 --- a/lib/simpleramix.ex +++ b/lib/simpleramix.ex @@ -510,4 +510,11 @@ defmodule Simpleramix do } end end + + def as_query_type(%Simpleramix.Query{} = query, type) when type in [:groupBy, :timeseries, :topN] do + %Simpleramix.Query{ + query + | query_type: type + } + end end