Skip to content

Conversation

@denisbsu
Copy link
Contributor

No description provided.


pub enum QueryType {
PlainQuery,
SQLQuery,
Copy link
Collaborator

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"] }
Copy link
Collaborator

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" }
Copy link
Collaborator

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.
Copy link
Collaborator

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

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