Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

distsqlrun: forward-port regression test for topk panic #25240

Merged
merged 1 commit into from
May 2, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions pkg/sql/logictest/testdata/logic_test/order_by
Original file line number Diff line number Diff line change
Expand Up @@ -876,3 +876,15 @@ limit · · (block_id, writer_id,
· table blocks@primary · ·
· spans ALL · ·
· limit 1 · ·

# Regression test for #25197: make sure that order by with an offset works in
# the top-k sorter.

statement ok
CREATE TABLE t25197 (id BIGSERIAL PRIMARY KEY, d TEXT)

statement ok
INSERT INTO t25197 (d) VALUES ('test1')

query TT
SELECT * FROM t25197 ORDER BY d ASC OFFSET 1 LIMIT 10