You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
select version();
┌─version()─┐
│ 20.13.1.1 │
└───────────┘
### query1:
SELECT toFloat32(number % 10) AS n, 'original' AS source FROM numbers(10) WHERE number % 3 = 1;
┌─n─┬─source───┐
│ 1 │ original │
│ 4 │ original │
│ 7 │ original │
└───┴──────────┘
3 rows in set. Elapsed: 0.004 sec.
### query2:
SELECT toFloat32(number % 10) AS n, 'original' AS source FROM numbers(10) WHERE number % 3 = 1 order by n with fill step 1
┌─n─┬─source───┐
│ 1 │ original │
│ 2 │ │
│ 3 │ │
│ 4 │ original │
│ 5 │ │
│ 6 │ │
│ 7 │ original │
└───┴──────────┘
7 rows in set. Elapsed: 0.004 sec.
### query3:
SELECT toFloat32(number % 10) AS n, 'original' AS source FROM numbers(10) WHERE number % 3 = 1 order by n with fill step 1 limit 2;
┌─n─┬─source───┐
│ 1 │ original │
│ 2 │ │
│ 3 │ │
│ 4 │ original │
└───┴──────────┘
4 rows in set. Elapsed: 0.004 sec.
SELECT toFloat32(number % 10) AS n, 'original' AS source FROM numbers(10) WHERE number % 3 = 1 order by n with fill step 1 limit 2 with ties;
┌─n─┬─source───┐
│ 1 │ original │
│ 2 │ │
└───┴──────────┘
2 rows in set. Elapsed: 0.004 sec.
The result returns 4 rows while the sql query use " limit 2" but return 2 rows when using "limit 2 with ties", Is this the expected behavior?
Is it a bug?
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: