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

feat(sqlsmith): Support generate fuzz query sql #17153

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

b41sh
Copy link
Member

@b41sh b41sh commented Jan 2, 2025

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

Generate fuzz query based on a Statement, the Exprs in the previous Statement will be collected and randomly add to the new fuzzed Statement. This will create a lot of interesting combinations to find potential bugs.

This PR just implements the basic fuzz functionality, we still need to find some suitable seed SQL to execute.

part of: #17130

Tests

  • Unit Test
  • Logic Test
  • Benchmark Test
  • No Test - Explain why

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Breaking Change (fix or feature that could cause existing functionality not to work as expected)
  • Documentation Update
  • Refactoring
  • Performance Improvement
  • Other (please describe):

This change is Reviewable

@b41sh b41sh requested review from sundy-li and TCeason January 2, 2025 06:23
@github-actions github-actions bot added the pr-feature this PR introduces a new feature to the codebase label Jan 2, 2025
@TCeason
Copy link
Collaborator

TCeason commented Jan 2, 2025

This pr is a basic pr. So I think we can merge it directly

@BohuTANG BohuTANG merged commit c1e295f into databendlabs:main Jan 2, 2025
75 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-feature this PR introduces a new feature to the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants