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

Adding random query generation for endtoend testing of the Gen4 planner #13260

Merged
merged 29 commits into from
Jun 29, 2023

Commits on Jun 23, 2023

  1. group by queries failing with limit and distinct

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    65c8ca5 View commit details
    Browse the repository at this point in the history
  2. added some failing test cases and a toggle to generate known failing …

    …queries
    
    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    f575d69 View commit details
    Browse the repository at this point in the history
  3. fix WaitForAuthoritative function call

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    e0736a3 View commit details
    Browse the repository at this point in the history
  4. moved randomly generated buggy queries to aggregation

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    ffe4df2 View commit details
    Browse the repository at this point in the history
  5. added left/right joins

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    9bff9e0 View commit details
    Browse the repository at this point in the history
  6. Refactor sqlparser/random_expr.go to be public

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    1f440f3 View commit details
    Browse the repository at this point in the history
  7. added random expressions to random query generation

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    40298d5 View commit details
    Browse the repository at this point in the history
  8. fixed syntax error in random query generation group by

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

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    2ec528d View commit details
    Browse the repository at this point in the history
  10. added derived tables

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    6fb6f4f View commit details
    Browse the repository at this point in the history
  11. fixed random_expr_test formatting

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    f093992 View commit details
    Browse the repository at this point in the history
  12. fixed infinite loop in predicate generation

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

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    7eb939d View commit details
    Browse the repository at this point in the history
  14. renamed TableT and Col methods

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    3ce4f20 View commit details
    Browse the repository at this point in the history
  15. reorder failing queries

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    a59380e View commit details
    Browse the repository at this point in the history
  16. refactor random query generation to use the ast

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    34a46cd View commit details
    Browse the repository at this point in the history
  17. separated failures in must-fix and known failures

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    e925343 View commit details
    Browse the repository at this point in the history
  18. added two must-fix queries

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    2a30aea View commit details
    Browse the repository at this point in the history
  19. added having to random query generation

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    5aabd0e View commit details
    Browse the repository at this point in the history
  20. removed one passing must-fix query

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    9de596c View commit details
    Browse the repository at this point in the history
  21. created interface for random expression generation with a schema

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    8b80cd9 View commit details
    Browse the repository at this point in the history
  22. added toggle to fail on EOF and mismatched results errors

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    4e07f06 View commit details
    Browse the repository at this point in the history
  23. deleted aggregation/fuzz_test.go and minor fixes/changes to random

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

Commits on Jun 26, 2023

  1. limited query generation to make TestRandom consistently pass

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

Commits on Jun 28, 2023

  1. rename random/query_gen_test.go to query_gen.go

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

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    db14cd4 View commit details
    Browse the repository at this point in the history
  3. added support for non-aggregate queries and a few more known failures

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

Commits on Jun 29, 2023

  1. updated tableT.name comment

    Signed-off-by: Arvind Murty <10248018+arvind-murty@users.noreply.github.com>
    arvind-murty committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    51c1431 View commit details
    Browse the repository at this point in the history
  2. added vtgate/queries/random to CI

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