{"id":19251846,"url":"https://github.com/risinglightdb/sql-optimizer-labs","last_synced_at":"2025-04-21T13:30:37.577Z","repository":{"id":108998083,"uuid":"582219061","full_name":"risinglightdb/sql-optimizer-labs","owner":"risinglightdb","description":"🚧 Build a SQL optimizer in 1000 lines of Rust using egg.","archived":false,"fork":false,"pushed_at":"2023-02-06T16:18:32.000Z","size":38,"stargazers_count":77,"open_issues_count":0,"forks_count":10,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-01T13:37:50.628Z","etag":null,"topics":["equality-saturation","optimizer","sql"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/risinglightdb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-26T05:51:30.000Z","updated_at":"2025-03-02T02:20:48.000Z","dependencies_parsed_at":"2023-04-06T23:48:00.898Z","dependency_job_id":null,"html_url":"https://github.com/risinglightdb/sql-optimizer-labs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/risinglightdb%2Fsql-optimizer-labs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/risinglightdb%2Fsql-optimizer-labs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/risinglightdb%2Fsql-optimizer-labs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/risinglightdb%2Fsql-optimizer-labs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/risinglightdb","download_url":"https://codeload.github.com/risinglightdb/sql-optimizer-labs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250064498,"owners_count":21368915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["equality-saturation","optimizer","sql"],"created_at":"2024-11-09T18:24:18.584Z","updated_at":"2025-04-21T13:30:37.572Z","avatar_url":"https://github.com/risinglightdb.png","language":"Rust","readme":"# SQL Optimizer Labs\n\nBuild a SQL optimizer in 1000 lines of Rust using [egg](https://egraphs-good.github.io).\n\n🚧 Under construction 🚧 Stay tuned 👀\n\n## Tasks\n\nFill the code in `src` and pass the tests in `tests`!\n\n```sh\ncargo test --test 1_language\ncargo test --test 2_rewrite\ncargo test --test 3_conditional_rewrite\ncargo test --test 4_constant_folding\ncargo test --test 5_sql_plan\ncargo test --test 6_plan_elimination\ncargo test --test 7_predicate_pushdown\ncargo test --test 8_projection_pushdown\ncargo test --test 9_agg_extraction\ncargo test --test 10_index_resolving\n```\n\n## What's Next\n\nThese labs are taken from the [RisingLight] project.\n[Check out] how it works in a real database system!\n\n[RisingLight]: https://github.com/risinglightdb/risinglight\n[Check out]: https://github.com/risinglightdb/risinglight/blob/main/src/planner/mod.rs\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frisinglightdb%2Fsql-optimizer-labs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frisinglightdb%2Fsql-optimizer-labs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frisinglightdb%2Fsql-optimizer-labs/lists"}