InfluxElixir.Client.Local.SQLGrouping (InfluxElixir v0.1.40)

Copy Markdown View Source

The engine's check that a projected plain column of an aggregate query is grouped (verified against InfluxDB 3 Core): planning fails otherwise, and its message lists what does satisfy the requirement, the GROUP BY terms and then the aggregates in select order, each as the planner prints it. The double refuses by name a query whose terms it cannot print.

Summary

Functions

:ok, or the engine's planning error for a projected plain column of an aggregate query that is not in its GROUP BY.

Functions

check(query)

@spec check(InfluxElixir.Client.Local.SQLParser.parsed_query()) ::
  :ok | {:error, term()}

:ok, or the engine's planning error for a projected plain column of an aggregate query that is not in its GROUP BY.