diff --git a/.github/workflows/apidoc.yml b/.github/workflows/apidoc.yml index 06e845f63021..ca1befa52cff 100644 --- a/.github/workflows/apidoc.yml +++ b/.github/workflows/apidoc.yml @@ -40,3 +40,4 @@ jobs: uses: JamesIves/github-pages-deploy-action@v4 with: folder: target/doc + single-commit: true diff --git a/.github/workflows/unassign.yml b/.github/workflows/unassign.yml index 3772bc499d21..e2d793b8ab11 100644 --- a/.github/workflows/unassign.yml +++ b/.github/workflows/unassign.yml @@ -17,5 +17,5 @@ jobs: - name: Auto Unassign uses: tisonspieces/auto-unassign@main with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} repository: ${{ github.repository }} diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md deleted file mode 100644 index 32fd3760e8d4..000000000000 --- a/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,132 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -We as members, contributors, and leaders pledge to make participation in our -community a harassment-free experience for everyone, regardless of age, body -size, visible or invisible disability, ethnicity, sex characteristics, gender -identity and expression, level of experience, education, socio-economic status, -nationality, personal appearance, race, caste, color, religion, or sexual -identity and orientation. - -We pledge to act and interact in ways that contribute to an open, welcoming, -diverse, inclusive, and healthy community. - -## Our Standards - -Examples of behavior that contributes to a positive environment for our -community include: - -* Demonstrating empathy and kindness toward other people -* Being respectful of differing opinions, viewpoints, and experiences -* Giving and gracefully accepting constructive feedback -* Accepting responsibility and apologizing to those affected by our mistakes, - and learning from the experience -* Focusing on what is best not just for us as individuals, but for the overall - community - -Examples of unacceptable behavior include: - -* The use of sexualized language or imagery, and sexual attention or advances of - any kind -* Trolling, insulting or derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or email address, - without their explicit permission -* Other conduct which could reasonably be considered inappropriate in a - professional setting - -## Enforcement Responsibilities - -Community leaders are responsible for clarifying and enforcing our standards of -acceptable behavior and will take appropriate and fair corrective action in -response to any behavior that they deem inappropriate, threatening, offensive, -or harmful. - -Community leaders have the right and responsibility to remove, edit, or reject -comments, commits, code, wiki edits, issues, and other contributions that are -not aligned to this Code of Conduct, and will communicate reasons for moderation -decisions when appropriate. - -## Scope - -This Code of Conduct applies within all community spaces, and also applies when -an individual is officially representing the community in public spaces. -Examples of representing our community include using an official e-mail address, -posting via an official social media account, or acting as an appointed -representative at an online or offline event. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported to the community leaders responsible for enforcement at -info@greptime.com. -All complaints will be reviewed and investigated promptly and fairly. - -All community leaders are obligated to respect the privacy and security of the -reporter of any incident. - -## Enforcement Guidelines - -Community leaders will follow these Community Impact Guidelines in determining -the consequences for any action they deem in violation of this Code of Conduct: - -### 1. Correction - -**Community Impact**: Use of inappropriate language or other behavior deemed -unprofessional or unwelcome in the community. - -**Consequence**: A private, written warning from community leaders, providing -clarity around the nature of the violation and an explanation of why the -behavior was inappropriate. A public apology may be requested. - -### 2. Warning - -**Community Impact**: A violation through a single incident or series of -actions. - -**Consequence**: A warning with consequences for continued behavior. No -interaction with the people involved, including unsolicited interaction with -those enforcing the Code of Conduct, for a specified period of time. This -includes avoiding interactions in community spaces as well as external channels -like social media. Violating these terms may lead to a temporary or permanent -ban. - -### 3. Temporary Ban - -**Community Impact**: A serious violation of community standards, including -sustained inappropriate behavior. - -**Consequence**: A temporary ban from any sort of interaction or public -communication with the community for a specified period of time. No public or -private interaction with the people involved, including unsolicited interaction -with those enforcing the Code of Conduct, is allowed during this period. -Violating these terms may lead to a permanent ban. - -### 4. Permanent Ban - -**Community Impact**: Demonstrating a pattern of violation of community -standards, including sustained inappropriate behavior, harassment of an -individual, or aggression toward or disparagement of classes of individuals. - -**Consequence**: A permanent ban from any sort of public interaction within the -community. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], -version 2.1, available at -[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1]. - -Community Impact Guidelines were inspired by -[Mozilla's code of conduct enforcement ladder][Mozilla CoC]. - -For answers to common questions about this code of conduct, see the FAQ at -[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at -[https://www.contributor-covenant.org/translations][translations]. - -[homepage]: https://www.contributor-covenant.org -[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html -[Mozilla CoC]: https://github.com/mozilla/diversity -[FAQ]: https://www.contributor-covenant.org/faq -[translations]: https://www.contributor-covenant.org/translations diff --git a/Cargo.lock b/Cargo.lock index 2fce6ba811b3..d47c6c355904 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -219,7 +219,6 @@ dependencies = [ "paste", "prost 0.12.3", "snafu", - "tonic 0.10.2", "tonic-build 0.9.2", ] @@ -334,7 +333,7 @@ dependencies = [ "arrow-data", "arrow-schema", "chrono", - "chrono-tz 0.8.4", + "chrono-tz", "half 2.3.1", "hashbrown 0.14.3", "num", @@ -551,19 +550,6 @@ dependencies = [ "futures-core", ] -[[package]] -name = "async-compat" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f68a707c1feb095d8c07f8a65b9f506b117d30af431cab89374357de7c11461b" -dependencies = [ - "futures-core", - "futures-io", - "once_cell", - "pin-project-lite", - "tokio", -] - [[package]] name = "async-compression" version = "0.3.15" @@ -703,7 +689,6 @@ dependencies = [ "common-macro", "common-test-util", "digest", - "hex", "secrecy", "sha1", "snafu", @@ -895,7 +880,6 @@ dependencies = [ "client", "futures-util", "indicatif", - "itertools 0.10.5", "parquet", "tokio", ] @@ -913,12 +897,6 @@ dependencies = [ "num-traits", ] -[[package]] -name = "bimap" -version = "0.6.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "230c5f1ca6a325a32553f8640d31ac9b49f2411e901e427570154868b46da4f7" - [[package]] name = "bincode" version = "1.3.3" @@ -1256,8 +1234,6 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" name = "catalog" version = "0.7.1" dependencies = [ - "api", - "arc-swap", "arrow", "arrow-schema", "async-stream", @@ -1266,12 +1242,10 @@ dependencies = [ "chrono", "common-catalog", "common-error", - "common-grpc", "common-macro", "common-meta", "common-query", "common-recordbatch", - "common-runtime", "common-telemetry", "common-test-util", "common-time", @@ -1287,12 +1261,9 @@ dependencies = [ "meta-client", "moka", "object-store", - "parking_lot 0.12.1", "partition", "paste", "prometheus", - "regex", - "serde", "serde_json", "session", "snafu", @@ -1388,17 +1359,6 @@ dependencies = [ "windows-targets 0.52.0", ] -[[package]] -name = "chrono-tz" -version = "0.6.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29c39203181991a7dd4343b8005bd804e7a9a37afb8ac070e43771e8c820bbde" -dependencies = [ - "chrono", - "chrono-tz-build 0.0.3", - "phf", -] - [[package]] name = "chrono-tz" version = "0.8.4" @@ -1406,21 +1366,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e23185c0e21df6ed832a12e2bda87c7d1def6842881fb634a8511ced741b0d76" dependencies = [ "chrono", - "chrono-tz-build 0.2.1", + "chrono-tz-build", "phf", ] -[[package]] -name = "chrono-tz-build" -version = "0.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f509c3a87b33437b05e2458750a0700e5bdd6956176773e6c7d6dd15a283a0c" -dependencies = [ - "parse-zoneinfo", - "phf", - "phf_codegen", -] - [[package]] name = "chrono-tz-build" version = "0.2.1" @@ -1571,7 +1520,6 @@ dependencies = [ "arrow-flight", "async-stream", "async-trait", - "common-base", "common-catalog", "common-error", "common-grpc", @@ -1581,12 +1529,8 @@ dependencies = [ "common-query", "common-recordbatch", "common-telemetry", - "common-time", - "datafusion", "datanode", - "datatypes", "derive-new 0.5.9", - "derive_builder 0.12.0", "enum_dispatch", "futures-util", "lazy_static", @@ -1595,9 +1539,7 @@ dependencies = [ "prometheus", "prost 0.12.3", "rand", - "serde", "serde_json", - "session", "snafu", "substrait 0.17.1", "substrait 0.7.1", @@ -1632,7 +1574,6 @@ dependencies = [ name = "cmd" version = "0.7.1" dependencies = [ - "anymap", "async-trait", "auth", "catalog", @@ -1668,7 +1609,6 @@ dependencies = [ "meta-srv", "mito2", "nu-ansi-term", - "partition", "plugins", "prometheus", "prost 0.12.3", @@ -1755,7 +1695,6 @@ name = "common-config" version = "0.7.1" dependencies = [ "common-base", - "humantime-serde", "num_cpus", "serde", "sysinfo", @@ -1797,7 +1736,6 @@ dependencies = [ name = "common-decimal" version = "0.7.1" dependencies = [ - "arrow", "bigdecimal", "common-error", "common-macro", @@ -1822,7 +1760,6 @@ dependencies = [ "api", "arc-swap", "async-trait", - "chrono-tz 0.6.3", "common-base", "common-catalog", "common-error", @@ -1835,7 +1772,6 @@ dependencies = [ "common-version", "datafusion", "datatypes", - "libc", "num", "num-traits", "once_cell", @@ -1855,7 +1791,6 @@ name = "common-greptimedb-telemetry" version = "0.7.1" dependencies = [ "async-trait", - "common-error", "common-runtime", "common-telemetry", "common-test-util", @@ -1863,7 +1798,6 @@ dependencies = [ "hyper", "reqwest", "serde", - "serde_json", "tempfile", "tokio", "uuid", @@ -1875,8 +1809,6 @@ version = "0.7.1" dependencies = [ "api", "arrow-flight", - "async-trait", - "backtrace", "common-base", "common-error", "common-macro", @@ -1886,10 +1818,8 @@ dependencies = [ "common-time", "criterion", "dashmap", - "datafusion", "datatypes", "flatbuffers", - "futures", "lazy_static", "prost 0.12.3", "rand", @@ -1904,13 +1834,11 @@ name = "common-grpc-expr" version = "0.7.1" dependencies = [ "api", - "async-trait", "common-base", "common-catalog", "common-error", "common-macro", "common-query", - "common-telemetry", "common-time", "datatypes", "paste", @@ -1952,7 +1880,6 @@ version = "0.7.1" dependencies = [ "api", "async-recursion", - "async-stream", "async-trait", "base64 0.21.5", "bytes", @@ -1965,7 +1892,6 @@ dependencies = [ "common-procedure", "common-procedure-test", "common-recordbatch", - "common-runtime", "common-telemetry", "common-time", "common-wal", @@ -1993,6 +1919,7 @@ dependencies = [ "table", "tokio", "tonic 0.10.2", + "typetag", "uuid", ] @@ -2060,14 +1987,12 @@ name = "common-recordbatch" version = "0.7.1" dependencies = [ "arc-swap", - "common-base", "common-error", "common-macro", "datafusion", "datafusion-common", "datatypes", "futures", - "paste", "pin-project", "serde", "serde_json", @@ -2117,7 +2042,6 @@ dependencies = [ "tokio", "tracing", "tracing-appender", - "tracing-futures", "tracing-log 0.1.4", "tracing-opentelemetry", "tracing-subscriber", @@ -2141,7 +2065,7 @@ version = "0.7.1" dependencies = [ "arrow", "chrono", - "chrono-tz 0.8.4", + "chrono-tz", "common-error", "common-macro", "once_cell", @@ -2812,21 +2736,15 @@ version = "0.7.1" dependencies = [ "api", "arrow-flight", - "async-compat", - "async-stream", "async-trait", "bytes", "catalog", "client", "common-base", - "common-catalog", - "common-config", - "common-datasource", "common-error", "common-function", "common-greptimedb-telemetry", "common-grpc", - "common-grpc-expr", "common-macro", "common-meta", "common-procedure", @@ -2846,36 +2764,27 @@ dependencies = [ "futures", "futures-util", "humantime-serde", - "hyper", "lazy_static", "log-store", "meta-client", "metric-engine", "mito2", "object-store", - "pin-project", "prometheus", "prost 0.12.3", "query", "reqwest", "secrecy", "serde", - "serde_json", "servers", "session", "snafu", - "sql", "store-api", "substrait 0.7.1", "table", "tokio", - "tokio-stream", "toml 0.8.8", "tonic 0.10.2", - "tower", - "tower-http", - "url", - "uuid", ] [[package]] @@ -2897,7 +2806,6 @@ dependencies = [ "num-traits", "ordered-float 3.9.2", "paste", - "rust_decimal", "serde", "serde_json", "snafu", @@ -3471,12 +3379,9 @@ name = "flow" version = "0.7.1" dependencies = [ "api", - "bimap", "common-decimal", "common-error", "common-macro", - "common-meta", - "common-query", "common-telemetry", "common-time", "datatypes", @@ -3487,7 +3392,6 @@ dependencies = [ "serde", "serde_json", "servers", - "session", "smallvec", "snafu", "tokio", @@ -3530,22 +3434,16 @@ version = "0.7.1" dependencies = [ "api", "arc-swap", - "arrow-flight", - "async-compat", - "async-stream", "async-trait", "auth", "catalog", - "chrono", "client", "common-base", "common-catalog", "common-config", "common-datasource", "common-error", - "common-function", "common-grpc", - "common-grpc-expr", "common-macro", "common-meta", "common-procedure", @@ -3554,24 +3452,13 @@ dependencies = [ "common-runtime", "common-telemetry", "common-test-util", - "common-time", - "datafusion", - "datafusion-common", - "datafusion-expr", "datanode", - "datatypes", - "file-engine", "futures", - "futures-util", "humantime-serde", - "itertools 0.10.5", "lazy_static", "log-store", "meta-client", "meta-srv", - "moka", - "object-store", - "openmetrics-parser", "opentelemetry-proto 0.3.0", "operator", "partition", @@ -3579,10 +3466,8 @@ dependencies = [ "prost 0.12.3", "query", "raft-engine", - "regex", "script", "serde", - "serde_json", "servers", "session", "snafu", @@ -3590,7 +3475,6 @@ dependencies = [ "sqlparser 0.38.0 (git+https://github.com/GreptimeTeam/sqlparser-rs.git?rev=6a93567ae38d42be5c8d08b13c8ff4dde26502ef)", "store-api", "strfmt", - "substrait 0.7.1", "table", "tokio", "toml 0.8.8", @@ -3870,7 +3754,7 @@ checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" [[package]] name = "greptime-proto" version = "0.1.0" -source = "git+https://github.com/GreptimeTeam/greptime-proto.git?rev=96f1f0404f421ee560a4310c73c5071e49168168#96f1f0404f421ee560a4310c73c5071e49168168" +source = "git+https://github.com/GreptimeTeam/greptime-proto.git?rev=06f6297ff3cab578a1589741b504342fbad70453#06f6297ff3cab578a1589741b504342fbad70453" dependencies = [ "prost 0.12.3", "serde", @@ -4377,7 +4261,7 @@ dependencies = [ "prost 0.12.3", "rand", "regex", - "regex-automata 0.2.0", + "regex-automata 0.4.3", "snafu", "tempfile", "tokio", @@ -4942,11 +4826,8 @@ version = "0.7.1" dependencies = [ "async-stream", "async-trait", - "byteorder", - "bytes", "chrono", "common-base", - "common-config", "common-error", "common-macro", "common-meta", @@ -4955,7 +4836,6 @@ dependencies = [ "common-test-util", "common-time", "common-wal", - "dashmap", "futures", "futures-util", "itertools 0.10.5", @@ -4970,7 +4850,6 @@ dependencies = [ "snafu", "store-api", "tokio", - "tokio-util", "uuid", ] @@ -5231,22 +5110,18 @@ version = "0.7.1" dependencies = [ "api", "async-trait", - "chrono", "common-error", "common-grpc", "common-macro", "common-meta", "common-telemetry", "datatypes", - "etcd-client", "futures", "humantime-serde", "meta-srv", "rand", "serde", - "serde_json", "snafu", - "table", "tokio", "tokio-stream", "tonic 0.10.2", @@ -5259,11 +5134,8 @@ dependencies = [ name = "meta-srv" version = "0.7.1" dependencies = [ - "anymap", "api", - "async-stream", "async-trait", - "catalog", "chrono", "client", "common-base", @@ -5271,7 +5143,6 @@ dependencies = [ "common-error", "common-greptimedb-telemetry", "common-grpc", - "common-grpc-expr", "common-macro", "common-meta", "common-procedure", @@ -5303,7 +5174,6 @@ dependencies = [ "session", "snafu", "store-api", - "strum 0.25.0", "table", "tokio", "tokio-stream", @@ -5314,7 +5184,6 @@ dependencies = [ "tracing-subscriber", "typetag", "url", - "uuid", ] [[package]] @@ -5411,23 +5280,18 @@ dependencies = [ name = "mito2" version = "0.7.1" dependencies = [ - "anymap", "api", "aquamarine", - "arc-swap", "async-channel", "async-stream", "async-trait", "bytes", - "chrono", "common-base", - "common-catalog", "common-config", "common-datasource", "common-decimal", "common-error", "common-macro", - "common-procedure", "common-procedure-test", "common-query", "common-recordbatch", @@ -5437,7 +5301,6 @@ dependencies = [ "common-time", "common-wal", "criterion", - "dashmap", "datafusion", "datafusion-common", "datafusion-expr", @@ -6028,9 +5891,6 @@ dependencies = [ "anyhow", "async-trait", "bytes", - "common-error", - "common-macro", - "common-runtime", "common-telemetry", "common-test-util", "futures", @@ -6039,7 +5899,6 @@ dependencies = [ "moka", "opendal", "prometheus", - "snafu", "tokio", "uuid", ] @@ -6270,7 +6129,6 @@ version = "0.7.1" dependencies = [ "api", "async-trait", - "auth", "catalog", "chrono", "client", @@ -6297,7 +6155,6 @@ dependencies = [ "futures-util", "lazy_static", "meta-client", - "meter-core", "meter-macros", "object-store", "partition", @@ -6305,7 +6162,6 @@ dependencies = [ "prometheus", "query", "regex", - "serde", "serde_json", "servers", "session", @@ -6313,7 +6169,6 @@ dependencies = [ "sql", "sqlparser 0.38.0 (git+https://github.com/GreptimeTeam/sqlparser-rs.git?rev=6a93567ae38d42be5c8d08b13c8ff4dde26502ef)", "store-api", - "substrait 0.7.1", "table", "tokio", "tonic 0.10.2", @@ -6548,21 +6403,14 @@ version = "0.7.1" dependencies = [ "api", "async-trait", - "common-catalog", "common-error", "common-macro", "common-meta", "common-query", - "common-telemetry", - "datafusion", "datafusion-common", "datafusion-expr", "datatypes", "itertools 0.10.5", - "lazy_static", - "meta-client", - "moka", - "prometheus", "serde", "serde_json", "snafu", @@ -6773,7 +6621,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "90fcb95eef784c2ac79119d1dd819e162b5da872ce6f3c3abe1e8ca1c082f72b" dependencies = [ "siphasher", - "uncased", ] [[package]] @@ -7516,7 +7363,6 @@ dependencies = [ "async-trait", "catalog", "chrono", - "client", "common-base", "common-catalog", "common-datasource", @@ -7548,15 +7394,12 @@ dependencies = [ "num-traits", "object-store", "once_cell", - "partition", "paste", "prometheus", "promql", "promql-parser", "rand", "regex", - "serde", - "serde_json", "session", "snafu", "sql", @@ -7800,17 +7643,6 @@ dependencies = [ "regex-syntax 0.6.29", ] -[[package]] -name = "regex-automata" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9368763f5a9b804326f3af749e16f9abf378d227bcdee7634b13d8f17793782" -dependencies = [ - "fst", - "memchr", - "regex-syntax 0.6.29", -] - [[package]] name = "regex-automata" version = "0.4.3" @@ -8907,7 +8739,6 @@ dependencies = [ "datafusion-physical-expr", "datatypes", "futures", - "futures-util", "lazy_static", "log-store", "once_cell", @@ -8918,7 +8749,6 @@ dependencies = [ "query", "rayon", "ron", - "rustpython-ast", "rustpython-codegen", "rustpython-compiler", "rustpython-compiler-core", @@ -8931,7 +8761,6 @@ dependencies = [ "session", "snafu", "sql", - "store-api", "table", "tokio", "tokio-test", @@ -9187,7 +9016,6 @@ dependencies = [ "common-catalog", "common-error", "common-grpc", - "common-grpc-expr", "common-macro", "common-mem-prof", "common-meta", @@ -9202,14 +9030,11 @@ dependencies = [ "criterion", "datafusion", "datafusion-common", - "datafusion-expr", "datatypes", "derive_builder 0.12.0", - "digest", "futures", "hashbrown 0.14.3", "headers", - "hex", "hostname", "http-body", "humantime-serde", @@ -9248,7 +9073,6 @@ dependencies = [ "serde", "serde_json", "session", - "sha1", "snafu", "snap", "sql", @@ -9277,10 +9101,8 @@ dependencies = [ "arc-swap", "auth", "common-catalog", - "common-telemetry", "common-time", "derive_builder 0.12.0", - "snafu", "sql", ] @@ -9562,7 +9384,6 @@ dependencies = [ "hex", "itertools 0.10.5", "lazy_static", - "once_cell", "regex", "snafu", "sqlparser 0.38.0 (git+https://github.com/GreptimeTeam/sqlparser-rs.git?rev=6a93567ae38d42be5c8d08b13c8ff4dde26502ef)", @@ -9603,9 +9424,7 @@ dependencies = [ "async-trait", "clap 4.4.11", "client", - "common-base", "common-error", - "common-grpc", "common-query", "common-recordbatch", "common-time", @@ -9811,13 +9630,11 @@ dependencies = [ "aquamarine", "async-stream", "async-trait", - "bytes", "common-base", "common-error", "common-macro", "common-query", "common-recordbatch", - "common-time", "common-wal", "datatypes", "derive_builder 0.12.0", @@ -9947,26 +9764,20 @@ dependencies = [ name = "substrait" version = "0.7.1" dependencies = [ - "async-recursion", "async-trait", "bytes", "catalog", - "common-catalog", "common-error", "common-macro", - "common-telemetry", "datafusion", "datafusion-common", "datafusion-expr", "datafusion-substrait", "datatypes", - "futures", "promql", "prost 0.12.3", - "session", "snafu", "substrait 0.17.1", - "table", "tokio", ] @@ -10120,7 +9931,6 @@ dependencies = [ name = "table" version = "0.7.1" dependencies = [ - "anymap", "async-trait", "chrono", "common-base", @@ -10128,7 +9938,6 @@ dependencies = [ "common-datasource", "common-error", "common-macro", - "common-procedure", "common-query", "common-recordbatch", "common-telemetry", @@ -10296,23 +10105,19 @@ dependencies = [ "meta-srv", "mysql_async", "object-store", - "once_cell", "opentelemetry-proto 0.3.0", "operator", "partition", "paste", "prost 0.12.3", "query", - "rand", "rstest", "rstest_reuse", "script", "secrecy", - "serde", "serde_json", "servers", "session", - "snafu", "sql", "sqlx", "store-api", @@ -10960,18 +10765,6 @@ dependencies = [ "valuable", ] -[[package]] -name = "tracing-futures" -version = "0.2.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97d095ae15e245a057c8e8451bab9b3ee1e1f68e9ba2b4fbc18d0ac5237835f2" -dependencies = [ - "futures", - "futures-task", - "pin-project", - "tracing", -] - [[package]] name = "tracing-log" version = "0.1.4" @@ -11268,15 +11061,6 @@ dependencies = [ "libc", ] -[[package]] -name = "uncased" -version = "0.9.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b9bc53168a4be7402ab86c3aad243a84dd7381d09be0eddc81280c1da95ca68" -dependencies = [ - "version_check", -] - [[package]] name = "unic-char-property" version = "0.9.0" diff --git a/Cargo.toml b/Cargo.toml index 4681c6535479..cebad1ef89b2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -103,7 +103,7 @@ etcd-client = "0.12" fst = "0.4.7" futures = "0.3" futures-util = "0.3" -greptime-proto = { git = "https://github.com/GreptimeTeam/greptime-proto.git", rev = "96f1f0404f421ee560a4310c73c5071e49168168" } +greptime-proto = { git = "https://github.com/GreptimeTeam/greptime-proto.git", rev = "06f6297ff3cab578a1589741b504342fbad70453" } humantime-serde = "1.1" itertools = "0.10" lazy_static = "1.4" @@ -125,7 +125,7 @@ prost = "0.12" raft-engine = { version = "0.4.1", default-features = false } rand = "0.8" regex = "1.8" -regex-automata = { version = "0.2", features = ["transducer"] } +regex-automata = { version = "0.4" } reqwest = { version = "0.11", default-features = false, features = [ "json", "rustls-tls-native-roots", diff --git a/benchmarks/Cargo.toml b/benchmarks/Cargo.toml index c2fddd474ab1..862579b26dfb 100644 --- a/benchmarks/Cargo.toml +++ b/benchmarks/Cargo.toml @@ -14,6 +14,5 @@ clap.workspace = true client.workspace = true futures-util.workspace = true indicatif = "0.17.1" -itertools.workspace = true parquet.workspace = true tokio.workspace = true diff --git a/licenserc.toml b/licenserc.toml index 8bcf6c452410..f01f7727e813 100644 --- a/licenserc.toml +++ b/licenserc.toml @@ -19,6 +19,12 @@ includes = [ "*.py", ] +excludes = [ + # copied sources + "src/common/base/src/readable_size.rs", + "src/servers/src/repeated_field.rs", +] + [properties] inceptionYear = 2023 copyrightOwner = "Greptime Team" diff --git a/src/api/Cargo.toml b/src/api/Cargo.toml index d3390e6c213f..cd1837465bd7 100644 --- a/src/api/Cargo.toml +++ b/src/api/Cargo.toml @@ -18,7 +18,6 @@ greptime-proto.workspace = true paste = "1.0" prost.workspace = true snafu.workspace = true -tonic.workspace = true [build-dependencies] tonic-build = "0.9" diff --git a/src/auth/Cargo.toml b/src/auth/Cargo.toml index d50b63fcfcbf..a3e9f199a1b1 100644 --- a/src/auth/Cargo.toml +++ b/src/auth/Cargo.toml @@ -17,7 +17,6 @@ async-trait.workspace = true common-error.workspace = true common-macro.workspace = true digest = "0.10" -hex = { version = "0.4" } secrecy = { version = "0.8", features = ["serde", "alloc"] } sha1 = "0.10" snafu.workspace = true diff --git a/src/auth/src/common.rs b/src/auth/src/common.rs index 16e1ecec2b4c..109a98175d4c 100644 --- a/src/auth/src/common.rs +++ b/src/auth/src/common.rs @@ -40,7 +40,7 @@ pub fn user_provider_from_option(opt: &String) -> Result { match name { STATIC_USER_PROVIDER => { let provider = - StaticUserProvider::try_from(content).map(|p| Arc::new(p) as UserProviderRef)?; + StaticUserProvider::new(content).map(|p| Arc::new(p) as UserProviderRef)?; Ok(provider) } _ => InvalidConfigSnafu { diff --git a/src/auth/src/user_provider/static_user_provider.rs b/src/auth/src/user_provider/static_user_provider.rs index 591a116b9281..e6d474389431 100644 --- a/src/auth/src/user_provider/static_user_provider.rs +++ b/src/auth/src/user_provider/static_user_provider.rs @@ -23,7 +23,7 @@ use secrecy::ExposeSecret; use snafu::{ensure, OptionExt, ResultExt}; use crate::error::{ - Error, IllegalParamSnafu, InvalidConfigSnafu, IoSnafu, Result, UnsupportedPasswordTypeSnafu, + IllegalParamSnafu, InvalidConfigSnafu, IoSnafu, Result, UnsupportedPasswordTypeSnafu, UserNotFoundSnafu, UserPasswordMismatchSnafu, }; use crate::user_info::DefaultUserInfo; @@ -31,10 +31,12 @@ use crate::{auth_mysql, Identity, Password, UserInfoRef, UserProvider}; pub(crate) const STATIC_USER_PROVIDER: &str = "static_user_provider"; -impl TryFrom<&str> for StaticUserProvider { - type Error = Error; +pub(crate) struct StaticUserProvider { + users: HashMap>, +} - fn try_from(value: &str) -> Result { +impl StaticUserProvider { + pub(crate) fn new(value: &str) -> Result { let (mode, content) = value.split_once(':').context(InvalidConfigSnafu { value: value.to_string(), msg: "StaticUserProviderOption must be in format `