Update docs/en/sql-reference/aggregate-functions/reference/argmin.md

Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
This commit is contained in:
Denny Crane 2023-06-06 10:18:13 -03:00 committed by GitHub
parent 1a517bb332
commit 5308abb93a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,7 @@ select (argMin((a, b), b) as t).1 argMinA, t.2 argMinB from test;
select argMin(a, b), min(b) from test where a is Null and b is Null; select argMin(a, b), min(b) from test where a is Null and b is Null;
┌─argMin(a, b)─┬─min(b)─┐ ┌─argMin(a, b)─┬─min(b)─┐
│ ᴺᵁᴸᴸ │ ᴺᵁᴸᴸ │ -- Nulls are not skipped because only Null values are available │ ᴺᵁᴸᴸ │ ᴺᵁᴸᴸ │ -- ll aggregated rows contains at least one `NULL` value because of the filter, so all rows are skipped, therefore the result will be `NULL`
└──────────────┴────────┘ └──────────────┴────────┘
select argMin(a, (b, a)), min(tuple(b, a)) from test; select argMin(a, (b, a)), min(tuple(b, a)) from test;