-
Notifications
You must be signed in to change notification settings - Fork 2
Sql query support #47
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
base: master
Are you sure you want to change the base?
Conversation
|
|
||
| pub enum QueryType { | ||
| PlainQuery, | ||
| SQLQuery, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usually abbreviations in CamelCase are formatted as SqlQuery
Please also run cargo fmt over the code, there are many other issues
| prometheus-client = "0.23" | ||
| prost = "0.12.3" | ||
| polars-plan = "0.43.1" | ||
| polars = { version = "0.43.1", features = ["serde", "strings", "json", "polars-io", "polars-plan", "parquet", "dtype-full", "lazy", "temporal", "is_in"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you using all these features here? Usually, cargo is smart enough to unite the features from all the dependencies, so that you only need to specify the ones you use
| sqd-network-transport = { git = "https://github.com/subsquid/sqd-network.git", rev = "c7fbb0b", version = "3.0.0", features = ["worker", "metrics"] } | ||
| sqd-query = { git = "https://github.com/subsquid/data.git", rev = "4c089d8", features = ["parquet"] } | ||
| sqd-polars = { git = "https://github.com/subsquid/data.git", rev = "4c089d8" } | ||
| qplan = {git = "https://github.com/subsquid/qplan.git", rev = "354f265" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can it have a clearer name? query_plan for example
| @@ -0,0 +1,615 @@ | |||
| //! Convert a query plan to a polars target plan. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're claiming ownership of Tobias' code here in terms of git history :)
Ideally, this can be handled with git subtree. If you don't want to deal with it, let's at least leave a link to the original
No description provided.