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

Improving random query generation for endtoend testing #13460

Merged
merged 29 commits into from
Aug 17, 2023

Commits on Jul 28, 2023

  1. added flag for if the randomly generated query can have aggregation

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    3d10df5 View commit details
    Browse the repository at this point in the history
  2. added ExprGeneratorConfig to random expression generation

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    b40e319 View commit details
    Browse the repository at this point in the history
  3. refactor tableT struct

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    54368c6 View commit details
    Browse the repository at this point in the history
  4. simplified random predicate generation

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    0b07313 View commit details
    Browse the repository at this point in the history
  5. refactor column struct

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    f14943d View commit details
    Browse the repository at this point in the history
  6. added aggregation to random expressions and changed random query gene…

    …ration to use a single seed
    
    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    e005e78 View commit details
    Browse the repository at this point in the history
  7. added queryGen struct to pass along Rand and ExprGeneratorConfig

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    8e28e60 View commit details
    Browse the repository at this point in the history
  8. added random column aliases

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    f32f5dd View commit details
    Browse the repository at this point in the history
  9. added more complex aggregate expressions

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    e92b3c2 View commit details
    Browse the repository at this point in the history
  10. added scalar subqueries to fuzzer

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    1953053 View commit details
    Browse the repository at this point in the history
  11. added scalar subqueries to all random expression generation for the f…

    …uzzer
    
    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    bf53801 View commit details
    Browse the repository at this point in the history
  12. added support for tuple random expressions

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    98055b7 View commit details
    Browse the repository at this point in the history
  13. added support for random expressions with exists

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    dccd6ec View commit details
    Browse the repository at this point in the history
  14. added union queries in fuzzer

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    35e045b View commit details
    Browse the repository at this point in the history
  15. added tuple comparisons to random expression generator

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    13c89ca View commit details
    Browse the repository at this point in the history
  16. exported vschemaWrapper to go/test/utils

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    60ec73c View commit details
    Browse the repository at this point in the history
  17. added query simplification to fuzzer

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    a0acb5a View commit details
    Browse the repository at this point in the history
  18. simplified vschema and schema for simplifying fuzzer queries

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    a28cd5f View commit details
    Browse the repository at this point in the history
  19. added simplification for case expressions

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    ce019af View commit details
    Browse the repository at this point in the history
  20. moved VSchemaWrapper to its own package

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    10c2034 View commit details
    Browse the repository at this point in the history
  21. updated caseExpr simplification and reverted reverted simplifier changes

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    a066e09 View commit details
    Browse the repository at this point in the history
  22. added sqlparser.NewCaseExpr

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    a2f7920 View commit details
    Browse the repository at this point in the history
  23. removed separate testing runs from simplifier in query fuzzer

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    1d2ab6c View commit details
    Browse the repository at this point in the history
  24. simplified existing results mismatched queries

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    756ad95 View commit details
    Browse the repository at this point in the history
  25. minor fixes/improvements

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    359189e View commit details
    Browse the repository at this point in the history
  26. fixed goimports and failing endtoend tests

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    a60a1c2 View commit details
    Browse the repository at this point in the history
  27. skip TestRandom

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    6736793 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2023

  1. Merge remote-tracking branch 'upstream/main' into am-random-2

    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    2c85a63 View commit details
    Browse the repository at this point in the history
  2. Merge remote-tracking branch 'upstream/main' into am-random-2

    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    5c159f9 View commit details
    Browse the repository at this point in the history