Skip to content

sql: remove unnecessary rowsorts from distsql_stats logic tests#90017

Merged
craig[bot] merged 2 commits intocockroachdb:masterfrom
michae2:statslogic
Oct 17, 2022
Merged

sql: remove unnecessary rowsorts from distsql_stats logic tests#90017
craig[bot] merged 2 commits intocockroachdb:masterfrom
michae2:statslogic

Conversation

@michae2
Copy link
Copy Markdown
Collaborator

@michae2 michae2 commented Oct 14, 2022

sql: remove unnecessary rowsorts from distsql_stats logic tests

In distsql_stats and distsql_automatic_stats logic tests we frequently
use queries like the following:

SELECT ...
FROM [SHOW STATISTICS FOR TABLE foo]
ORDER BY column_names, created DESC

These queries have guaranteed order, and do not need the rowsort option.

Epic: CRDB-20535

Release note: None

sql: bump testlogic --rewrite delay for queries with retry to 2 sec

This prevents some spurious rewrites in the distsql_automatic_stats
logic test.

Epic: CRDB-20535

Release note: None

In distsql_stats and distsql_automatic_stats logic tests we frequently
use queries like the following:

```sql
SELECT ...
FROM [SHOW STATISTICS FOR TABLE foo]
ORDER BY column_names, created DESC
```

These queries have guaranteed order, and do not need the rowsort option.

Epic: CRDB-20535

Release note: None
This prevents some spurious rewrites in the distsql_automatic_stats
logic test.

Epic: CRDB-20535

Release note: None
@michae2 michae2 requested review from a team, dt and mgartner October 14, 2022 23:31
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Contributor

@mgartner mgartner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 2 of 2 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @dt)

@michae2
Copy link
Copy Markdown
Collaborator Author

michae2 commented Oct 17, 2022

TFYR!

bors r=mgartner

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Oct 17, 2022

Build succeeded:

@craig craig bot merged commit 762c1b8 into cockroachdb:master Oct 17, 2022
@michae2 michae2 deleted the statslogic branch October 17, 2022 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants