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: implement SELECT query parser. #12

Merged
merged 15 commits into from
Apr 27, 2022
Merged

feat: implement SELECT query parser. #12

merged 15 commits into from
Apr 27, 2022

Conversation

v0y4g3r
Copy link
Contributor

@v0y4g3r v0y4g3r commented Apr 26, 2022

Add SELECT query statement parser. SELECT statements will be parsed to Statement::Query variant. WITH/HAVING/ORDER BY keywords currently no supported.

src/sql/src/errors.rs Outdated Show resolved Hide resolved
src/sql/src/parser.rs Show resolved Hide resolved
src/sql/src/parser.rs Outdated Show resolved Hide resolved
src/sql/src/parsers/query_parser.rs Outdated Show resolved Hide resolved
src/sql/src/parsers/query_parser.rs Outdated Show resolved Hide resolved
src/sql/src/statements/statement_query.rs Outdated Show resolved Hide resolved
src/sql/src/parser.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@evenyag evenyag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@evenyag evenyag merged commit 12eefc3 into develop Apr 27, 2022
waynexia added a commit to waynexia/greptimedb that referenced this pull request Mar 14, 2023
* feat: implement table flush (GreptimeTeam#1121)

* feat: add flush method for trait

* feat: implement flush via grpc

* chore: move table_dir/region_name/region_id to table crate

* chore: Update src/mito/src/table.rs

---------

Co-authored-by: Yingwen <[email protected]>

* fix: use correct env var (GreptimeTeam#1166)

* fix: use correct env var

* fix: move COPY up so rustup know it's nightly

* fix: add `pyo3_backend` in GHA yml

* chore: name for `TODO`

* temp: not set `pyo3_backend` before find DSO

* fix: release linux with pyo3_backend

* fix: failed to run subquery wrapped in two parentheses (GreptimeTeam#1157)

* refactor: add the separate GitHub Action job to push the image to the UCloud registry (GreptimeTeam#1170)

* refactor: make the cmd hold the application instance (GreptimeTeam#1159)

* fix: export 'PYO3_CROSS_LIB_DIR' when cargo build for aarch64-linux and refactor matrix opts (GreptimeTeam#1171)

---------

Co-authored-by: Weny Xu <[email protected]>
Co-authored-by: Yingwen <[email protected]>
Co-authored-by: discord9 <[email protected]>
Co-authored-by: LFC <[email protected]>
Co-authored-by: zyy17 <[email protected]>
paomian referenced this pull request in paomian/greptimedb Oct 19, 2023
* feat: Add SQL parser definition and SHOW DATABASE implementation

* chores: Eliminate clippy warnings and errors.

* chores: remove Gt prefix in some structs; rename some mod; remove print(s) in unit tests; refactor crate layout;
feat: wrap sqlparser error;

* chores: reorder cargo dependency

* chores: fix code style

* chores: add #[cfg(test)] to unit tests

* style: fix test mod style

* feat: implement select query parser

* chores: remove unused dependency

* feat: implement TryInto<sqlparser::ast::Statement> for Statement

* chore: fix style issues

* refactor: wrap sqlparser Query inside Query statement variant to reduce complexity

* refactor: replace TryInto to TryFrom

* refactor: use [Rust 2018 mod convention](https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html#no-more-modrs)
v0y4g3r pushed a commit to v0y4g3r/greptimedb that referenced this pull request Feb 7, 2024
* feat: write to index and data

* feat: freeze memtable

* feat: write pk to cache

* feat: impl fork for the merge tree memtable

* feat: impl is_empty

* feat: freeze shard

* feat: remove cache

* feat: shard reader

* chore: remove todo

* fix: key bytes stats

* feat: add bytes to tracker in forked memtable

* style: fix clippy

* chore: update comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants