Skip to content

sql: use metamorphic defaults for optimizer testing knobs in logictest#170882

Open
lohitkolluri wants to merge 1 commit into
cockroachdb:masterfrom
lohitkolluri:opt-metamorphic-optimizer-settings
Open

sql: use metamorphic defaults for optimizer testing knobs in logictest#170882
lohitkolluri wants to merge 1 commit into
cockroachdb:masterfrom
lohitkolluri:opt-metamorphic-optimizer-settings

Conversation

@lohitkolluri
Copy link
Copy Markdown

Summary

  • Use metamorphic constants for logictest defaults of optimizer-cost-perturbation and disable-opt-rule-probability flags
  • Aligns with testing_optimizer_cost_perturbation and testing_optimizer_disable_rule_probability session settings used by costfuzz and unoptimized-query-oracle
  • Improves optimizer test coverage during metamorphic logictest runs

Fixes #93825

Test plan

  • ./dev build pkg/sql/logictest

Release note: None

Wire testing_optimizer_cost_perturbation and
testing_optimizer_disable_rule_probability into logictest via metamorphic
constants, matching other logictest fuzzing knobs. Improves coverage during
metamorphic test runs alongside costfuzz and unoptimized-query-oracle.

Fixes cockroachdb#93825

Release note: None
@trunk-io
Copy link
Copy Markdown
Contributor

trunk-io Bot commented May 25, 2026

Merging to master in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@blathers-crl
Copy link
Copy Markdown

blathers-crl Bot commented May 25, 2026

Thank you for contributing to CockroachDB. Please ensure you have followed the guidelines for creating a PR.

My owl senses detect your PR is good for review. Please keep an eye out for any test failures in CI.

I have added a few people who may be able to assist in reviewing:

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@blathers-crl blathers-crl Bot added O-community Originated from the community X-blathers-triaged blathers was able to find an owner labels May 25, 2026
@blathers-crl blathers-crl Bot requested review from rytaft and yuzefovich May 25, 2026 09:00
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@yuzefovich yuzefovich requested review from a team and michae2 and removed request for a team and yuzefovich May 25, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

O-community Originated from the community X-blathers-triaged blathers was able to find an owner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sql: use optimizer cost perturbation and disable rule settings for metamorphic testing

2 participants