We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8dea1c commit 58ce5f0Copy full SHA for 58ce5f0
lib/ecto/query/window_api.ex
@@ -72,7 +72,7 @@ defmodule Ecto.Query.WindowAPI do
72
@doc """
73
Defines a value based on the function and the window. See moduledoc for more information.
74
75
- from e in Employee, select: over(avg(e.salary, partition_by: e.depname))
+ from e in Employee, select: over(avg(e.salary), partition_by: e.depname)
76
"""
77
def over(window_function, window_name), do: doc! [window_function, window_name]
78
0 commit comments