https://github.com/simlay/queryparser
https://github.com/simlay/queryparser
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/simlay/queryparser
- Owner: simlay
- Created: 2023-08-25T01:47:43.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-10T12:15:36.000Z (almost 2 years ago)
- Last Synced: 2025-01-20T12:46:24.364Z (over 1 year ago)
- Language: Rust
- Size: 86.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://codecov.io/gh/simlay/queryparser)
# A Query Parser Exercise
The prompt for this exercise is in rust_code_challenge.pdf.
# Run and testing
* `cargo run` will run using the sql found in `queries.sql` and metadata from
`columns.csv`. This is configurable.
* `cargo test` will test against a couple of examples.
# Output
The spec for this exercise didn't really have a goal output. So, `cargo run`
prints the lineage and the opacity of that lineage for each sql statement in
`queries.sql`.
## Status
- [x] simple select with identifiers and simple functions (like `COUNT` ) only
- [x] column usage
- [x] unions
- [x] handling column aliases
- [ ] nested queries
- [ ] handling expressions with multiple source columns (like + or functions)