diff --git a/Cargo.lock b/Cargo.lock index eb8a6f7db406..d6f8cee57ca7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -220,7 +220,7 @@ dependencies = [ "paste", "prost 0.12.6", "serde_json", - "snafu 0.8.5", + "snafu 0.8.4", "tonic-build", ] @@ -462,7 +462,7 @@ dependencies = [ "arrow-schema", "chrono", "half 2.4.1", - "indexmap 2.6.0", + "indexmap 2.5.0", "lexical-core", "num", "serde", @@ -537,7 +537,7 @@ dependencies = [ "memchr", "num", "regex", - "regex-syntax 0.8.5", + "regex-syntax 0.8.4", ] [[package]] @@ -610,11 +610,11 @@ dependencies = [ [[package]] name = "async-compression" -version = "0.4.13" +version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e614738943d3f68c628ae3dbce7c3daffb196665f82f8c8ea6b65de73c79429" +checksum = "fec134f64e2bc57411226dfc4e52dec859ddfc7e711fc5e07b612584f000e4aa" dependencies = [ - "brotli 7.0.0", + "brotli 6.0.0", "bzip2", "flate2", "futures-core", @@ -657,14 +657,14 @@ checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] name = "async-stream" -version = "0.3.6" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b5a71a6f37880a80d1d7f19efd781e4b5de42c88f0722cc13bcb6cc2cfe8476" +checksum = "cd56dd203fef61ac097dd65721a419ddccb106b2d2b70ba60a6b529f03961a51" dependencies = [ "async-stream-impl", "futures-core", @@ -673,13 +673,13 @@ dependencies = [ [[package]] name = "async-stream-impl" -version = "0.3.6" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7c24de15d275a1ecfd47a380fb4d5ec9bfe0933f309ed5e705b775596a3574d" +checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -690,13 +690,13 @@ checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de" [[package]] name = "async-trait" -version = "0.1.83" +version = "0.1.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "721cae7de5c34fbb2acd27e21e6d2cf7b886dce0c27388d46c4e6c47ea4318dd" +checksum = "a27b8a3a6e1a44fa4c8baf1f653e4172e81486d4941f2237e20dc2d0cf4ddff1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -781,7 +781,7 @@ dependencies = [ "digest", "notify", "sha1", - "snafu 0.8.5", + "snafu 0.8.4", "sql", "tokio", ] @@ -794,7 +794,7 @@ checksum = "3c87f3f15e7794432337fc718554eaa4dc8f04c9677a950ffe366f20a162ae42" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -805,9 +805,9 @@ checksum = "7460f7dd8e100147b82a63afca1a20eb6c231ee36b90ba7272e14951cb58af59" [[package]] name = "autocfg" -version = "1.4.0" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" +checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" [[package]] name = "autotools" @@ -893,7 +893,7 @@ dependencies = [ "heck 0.4.1", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -1051,7 +1051,7 @@ dependencies = [ "regex", "rustc-hash 1.1.0", "shlex", - "syn 2.0.79", + "syn 2.0.77", "which", ] @@ -1070,7 +1070,7 @@ dependencies = [ "regex", "rustc-hash 1.1.0", "shlex", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -1194,7 +1194,7 @@ dependencies = [ "proc-macro-crate 3.2.0", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", "syn_derive", ] @@ -1211,9 +1211,9 @@ dependencies = [ [[package]] name = "brotli" -version = "7.0.0" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc97b8f16f944bba54f0433f07e30be199b6dc2bd25937444bbad560bcea29bd" +checksum = "74f7971dbd9326d58187408ab83117d8ac1bb9c17b085fdacd1cf2f598719b6b" dependencies = [ "alloc-no-stdlib", "alloc-stdlib", @@ -1258,7 +1258,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "40723b8fb387abc38f4f4a37c09073622e41dd12327033091ef8950659e6dc0c" dependencies = [ "memchr", - "regex-automata 0.4.8", + "regex-automata 0.4.7", "serde", ] @@ -1386,7 +1386,7 @@ dependencies = [ "common-macro", "common-meta", "moka", - "snafu 0.8.5", + "snafu 0.8.4", "substrait 0.9.5", ] @@ -1456,7 +1456,7 @@ dependencies = [ "rustc-hash 2.0.0", "serde_json", "session", - "snafu 0.8.5", + "snafu 0.8.4", "sql", "store-api", "table", @@ -1475,9 +1475,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.1.24" +version = "1.1.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "812acba72f0a070b003d3697490d2b55b837230ae7c6c6497f05cc2ddbb8d938" +checksum = "07b1695e2c7e8fc85310cde85aeaab7e3097f593c91d209d3f9df76c928100f0" dependencies = [ "jobserver", "libc", @@ -1544,7 +1544,7 @@ version = "0.13.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6026d8cd82ada8bbcfe337805dd1eb6afdc9e80fa4d57e977b3a36315e0c5525" dependencies = [ - "indexmap 2.6.0", + "indexmap 2.5.0", "lazy_static", "num-traits", "regex", @@ -1704,9 +1704,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.19" +version = "4.5.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7be5744db7978a28d9df86a214130d106a89ce49644cbc4e3f0c22c3fba30615" +checksum = "b0956a43b323ac1afaffc053ed5c4b7c1f1800bacd1683c353aabbb752515dd3" dependencies = [ "clap_builder", "clap_derive", @@ -1714,9 +1714,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.19" +version = "4.5.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5fbc17d3ef8278f55b282b2a2e75ae6f6c7d4bb70ed3d0382375104bfafdb4b" +checksum = "4d72166dd41634086d5803a47eb71ae740e61d84709c36f3c34110173db3961b" dependencies = [ "anstream", "anstyle", @@ -1733,7 +1733,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -1781,7 +1781,7 @@ dependencies = [ "query", "rand", "serde_json", - "snafu 0.8.5", + "snafu 0.8.4", "substrait 0.37.3", "substrait 0.9.5", "tokio", @@ -1831,7 +1831,7 @@ dependencies = [ "cache", "catalog", "chrono", - "clap 4.5.19", + "clap 4.5.18", "client", "common-base", "common-catalog", @@ -1878,7 +1878,7 @@ dependencies = [ "servers", "session", "similar-asserts", - "snafu 0.8.5", + "snafu 0.8.4", "store-api", "substrait 0.9.5", "table", @@ -1937,7 +1937,7 @@ dependencies = [ "futures", "paste", "serde", - "snafu 0.8.5", + "snafu 0.8.4", "toml 0.8.19", "zeroize", ] @@ -1949,7 +1949,7 @@ dependencies = [ "chrono", "common-error", "common-macro", - "snafu 0.8.5", + "snafu 0.8.4", "tokio", ] @@ -1969,7 +1969,7 @@ dependencies = [ "num_cpus", "serde", "serde_json", - "snafu 0.8.5", + "snafu 0.8.4", "sysinfo", "temp-env", "tempfile", @@ -2005,7 +2005,7 @@ dependencies = [ "rand", "regex", "serde", - "snafu 0.8.5", + "snafu 0.8.4", "strum 0.25.0", "tokio", "tokio-util", @@ -2023,14 +2023,14 @@ dependencies = [ "rust_decimal", "serde", "serde_json", - "snafu 0.8.5", + "snafu 0.8.4", ] [[package]] name = "common-error" version = "0.9.5" dependencies = [ - "snafu 0.8.5", + "snafu 0.8.4", "strum 0.25.0", "tonic 0.11.0", ] @@ -2046,7 +2046,7 @@ dependencies = [ "common-macro", "common-query", "session", - "snafu 0.8.5", + "snafu 0.8.4", "sql", ] @@ -2084,7 +2084,7 @@ dependencies = [ "serde", "serde_json", "session", - "snafu 0.8.5", + "snafu 0.8.4", "sql", "statrs", "store-api", @@ -2130,7 +2130,7 @@ dependencies = [ "lazy_static", "prost 0.12.6", "rand", - "snafu 0.8.5", + "snafu 0.8.4", "tokio", "tonic 0.11.0", "tower", @@ -2150,7 +2150,7 @@ dependencies = [ "datatypes", "paste", "prost 0.12.6", - "snafu 0.8.5", + "snafu 0.8.4", "store-api", "table", ] @@ -2164,9 +2164,9 @@ dependencies = [ "datatypes", "proc-macro2", "quote", - "snafu 0.8.5", + "snafu 0.8.4", "static_assertions", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -2175,7 +2175,7 @@ version = "0.9.5" dependencies = [ "common-error", "common-macro", - "snafu 0.8.5", + "snafu 0.8.4", "tempfile", "tikv-jemalloc-ctl", "tikv-jemalloc-sys", @@ -2228,7 +2228,7 @@ dependencies = [ "serde_json", "serde_with", "session", - "snafu 0.8.5", + "snafu 0.8.4", "store-api", "strum 0.25.0", "table", @@ -2251,7 +2251,7 @@ dependencies = [ "common-macro", "pprof", "prost 0.12.6", - "snafu 0.8.5", + "snafu 0.8.4", "tokio", ] @@ -2277,7 +2277,7 @@ dependencies = [ "serde", "serde_json", "smallvec", - "snafu 0.8.5", + "snafu 0.8.4", "tokio", "uuid", ] @@ -2308,7 +2308,7 @@ dependencies = [ "datatypes", "futures-util", "serde", - "snafu 0.8.5", + "snafu 0.8.4", "sqlparser 0.45.0 (git+https://github.com/GreptimeTeam/sqlparser-rs.git?rev=54a267ac89c09b11c0c88934690530807185d3e7)", "sqlparser_derive 0.1.1", "statrs", @@ -2331,7 +2331,7 @@ dependencies = [ "pin-project", "serde", "serde_json", - "snafu 0.8.5", + "snafu 0.8.4", "tokio", ] @@ -2340,7 +2340,7 @@ name = "common-runtime" version = "0.9.5" dependencies = [ "async-trait", - "clap 4.5.19", + "clap 4.5.18", "common-error", "common-macro", "common-telemetry", @@ -2356,7 +2356,7 @@ dependencies = [ "ratelimit", "serde", "serde_json", - "snafu 0.8.5", + "snafu 0.8.4", "tempfile", "tokio", "tokio-metrics", @@ -2418,7 +2418,7 @@ dependencies = [ "rand", "serde", "serde_json", - "snafu 0.8.5", + "snafu 0.8.4", ] [[package]] @@ -2446,11 +2446,11 @@ dependencies = [ "rskafka", "rustls 0.23.13", "rustls-native-certs 0.7.3", - "rustls-pemfile 2.2.0", + "rustls-pemfile 2.1.3", "serde", "serde_json", "serde_with", - "snafu 0.8.5", + "snafu 0.8.4", "tokio", "toml 0.8.19", ] @@ -2709,7 +2709,7 @@ dependencies = [ "anes", "cast", "ciborium", - "clap 4.5.19", + "clap 4.5.18", "criterion-plot", "is-terminal", "itertools 0.10.5", @@ -2894,7 +2894,7 @@ dependencies = [ "proc-macro2", "quote", "strsim 0.11.1", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -2916,7 +2916,7 @@ checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" dependencies = [ "darling_core 0.20.10", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -2948,7 +2948,7 @@ dependencies = [ "arrow-array", "arrow-ipc", "arrow-schema", - "async-compression 0.4.13", + "async-compression 0.4.12", "async-trait", "bytes", "bzip2", @@ -2971,7 +2971,7 @@ dependencies = [ "glob", "half 2.4.1", "hashbrown 0.14.5", - "indexmap 2.6.0", + "indexmap 2.5.0", "itertools 0.12.1", "log", "num_cpus", @@ -3130,10 +3130,10 @@ dependencies = [ "datafusion-expr", "datafusion-physical-expr", "hashbrown 0.14.5", - "indexmap 2.6.0", + "indexmap 2.5.0", "itertools 0.12.1", "log", - "regex-syntax 0.8.5", + "regex-syntax 0.8.4", ] [[package]] @@ -3158,7 +3158,7 @@ dependencies = [ "half 2.4.1", "hashbrown 0.14.5", "hex", - "indexmap 2.6.0", + "indexmap 2.5.0", "itertools 0.12.1", "log", "paste", @@ -3200,7 +3200,7 @@ dependencies = [ "futures", "half 2.4.1", "hashbrown 0.14.5", - "indexmap 2.6.0", + "indexmap 2.5.0", "itertools 0.12.1", "log", "once_cell", @@ -3291,7 +3291,7 @@ dependencies = [ "serde_json", "servers", "session", - "snafu 0.8.5", + "snafu 0.8.4", "store-api", "substrait 0.9.5", "table", @@ -3324,7 +3324,7 @@ dependencies = [ "paste", "serde", "serde_json", - "snafu 0.8.5", + "snafu 0.8.4", ] [[package]] @@ -3407,7 +3407,7 @@ checksum = "2cdc8d50f426189eef89dac62fabfa0abb27d5cc008f25bf4156a0203325becc" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -3418,7 +3418,7 @@ checksum = "67e77553c4162a157adbf834ebae5b415acbecbeafc7a74b0e886657506a7611" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -3481,7 +3481,7 @@ dependencies = [ "darling 0.20.10", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -3511,7 +3511,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4abae7035bf79b9877b779505d8cf3749285b80c43941eda66604841889451dc" dependencies = [ "derive_builder_core 0.20.1", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -3531,7 +3531,7 @@ checksum = "cb7330aeadfbe296029522e6c40f315320aba36fc43a5b3632f3795348f3bd22" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", "unicode-xid", ] @@ -3543,7 +3543,7 @@ checksum = "65f152f4b8559c4da5d574bafc7af85454d706b4c5fe8b530d508cacbb6807ea" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -3700,7 +3700,7 @@ dependencies = [ "serde", "thiserror", "time", - "winnow 0.6.20", + "winnow 0.6.18", ] [[package]] @@ -3764,7 +3764,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -3776,7 +3776,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -3940,7 +3940,7 @@ dependencies = [ "object-store", "serde", "serde_json", - "snafu 0.8.5", + "snafu 0.8.4", "store-api", "table", "tokio", @@ -3994,9 +3994,9 @@ dependencies = [ [[package]] name = "flate2" -version = "1.0.34" +version = "1.0.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1b589b4dc103969ad3cf85c950899926ec64300a1a46d76c03a6072957036f0" +checksum = "324a1be68054ef05ad64b861cc9eaf1d623d2d8cb25b4bf2cb9cdd902b4bf253" dependencies = [ "crc32fast", "libz-sys", @@ -4089,7 +4089,7 @@ dependencies = [ "servers", "session", "smallvec", - "snafu 0.8.5", + "snafu 0.8.4", "store-api", "strum 0.25.0", "substrait 0.9.5", @@ -4203,7 +4203,7 @@ dependencies = [ "serde_json", "servers", "session", - "snafu 0.8.5", + "snafu 0.8.4", "sql", "sqlparser 0.45.0 (git+https://github.com/GreptimeTeam/sqlparser-rs.git?rev=54a267ac89c09b11c0c88934690530807185d3e7)", "store-api", @@ -4245,7 +4245,7 @@ checksum = "e99b8b3c28ae0e84b604c75f721c21dc77afb3706076af5e8216d15fd1deaae3" dependencies = [ "frunk_proc_macro_helpers", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -4257,7 +4257,7 @@ dependencies = [ "frunk_core", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -4269,7 +4269,7 @@ dependencies = [ "frunk_core", "frunk_proc_macro_helpers", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -4399,7 +4399,7 @@ checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -4601,7 +4601,7 @@ dependencies = [ "futures-sink", "futures-util", "http 0.2.12", - "indexmap 2.6.0", + "indexmap 2.5.0", "slab", "tokio", "tokio-util", @@ -4672,12 +4672,6 @@ dependencies = [ "allocator-api2", ] -[[package]] -name = "hashbrown" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e087f84d4f86bf4b218b927129862374b72199ae7d8657835f1e89000eea4fb" - [[package]] name = "hashlink" version = "0.8.4" @@ -4923,9 +4917,9 @@ checksum = "add0ab9360ddbd88cfeb3bd9574a1d85cfdfa14db10b3e21d3700dbc4328758f" [[package]] name = "httparse" -version = "1.9.5" +version = "1.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d71d3574edd2771538b901e6549113b4006ece66150fb69c0fb6d9a2adae946" +checksum = "0fcc0b4a115bf80b728eb8ea024ad5bd707b615bfed49e0665b6e0f86fd082d9" [[package]] name = "httpdate" @@ -5006,7 +5000,7 @@ dependencies = [ "proc-macro-crate 1.3.1", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -5021,7 +5015,7 @@ dependencies = [ "rust-sitter", "rust-sitter-tool", "slotmap", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -5030,7 +5024,7 @@ version = "0.6.2" source = "git+https://github.com/GreptimeTeam/hydroflow.git?branch=main#b072ee026f97f8537165e1fb247101e0ab2fb320" dependencies = [ "auto_impl", - "clap 4.5.19", + "clap 4.5.18", "data-encoding", "itertools 0.10.5", "prettyplease", @@ -5040,7 +5034,7 @@ dependencies = [ "serde", "serde_json", "slotmap", - "syn 2.0.79", + "syn 2.0.77", "webbrowser", ] @@ -5054,7 +5048,7 @@ dependencies = [ "proc-macro-crate 1.3.1", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -5166,9 +5160,9 @@ dependencies = [ [[package]] name = "hyper-util" -version = "0.1.9" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41296eb09f183ac68eec06e03cdbea2e759633d4067b2f6552fc2e009bcad08b" +checksum = "da62f120a8a37763efb0cf8fdf264b884c7b8b9ac8660b900c8661030c00e6ba" dependencies = [ "bytes", "futures-channel", @@ -5179,6 +5173,7 @@ dependencies = [ "pin-project-lite", "socket2 0.5.7", "tokio", + "tower", "tower-service", "tracing", ] @@ -5313,9 +5308,9 @@ dependencies = [ "prost 0.12.6", "rand", "regex", - "regex-automata 0.4.8", + "regex-automata 0.4.7", "serde", - "snafu 0.8.5", + "snafu 0.8.4", "tantivy", "tantivy-jieba", "tempfile", @@ -5337,12 +5332,12 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.6.0" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da" +checksum = "68b900aa2f7301e21c36462b170ee99994de34dff39a4a6a528e80e7376d07e5" dependencies = [ "equivalent", - "hashbrown 0.15.0", + "hashbrown 0.14.5", "serde", ] @@ -5359,7 +5354,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "232929e1d75fe899576a3d5c7416ad0d88dbfbb3c3d6aa00873a7408a50ddb88" dependencies = [ "ahash 0.8.11", - "indexmap 2.6.0", + "indexmap 2.5.0", "is-terminal", "itoa", "log", @@ -5458,9 +5453,9 @@ checksum = "187674a687eed5fe42285b40c6291f9a01517d415fad1c3cbc6a9f778af7fcd4" [[package]] name = "iri-string" -version = "0.7.6" +version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44bd7eced44cfe2cebc674adb2a7124a754a4b5269288d22e9f39f8fada3562d" +checksum = "9c25163201be6ded9e686703e85532f8f852ea1f92ba625cb3c51f7fe6d07a4a" dependencies = [ "memchr", "serde", @@ -5640,7 +5635,7 @@ dependencies = [ "fast-float", "itoa", "nom", - "ordered-float 4.3.0", + "ordered-float 4.2.2", "rand", "ryu", "serde_json", @@ -5715,7 +5710,7 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ee7893dab2e44ae5f9d0173f26ff4aa327c10b01b06a72b52dd9405b628640d" dependencies = [ - "indexmap 2.6.0", + "indexmap 2.5.0", ] [[package]] @@ -5776,7 +5771,7 @@ dependencies = [ "kube-core", "pem 3.0.4", "rustls 0.23.13", - "rustls-pemfile 2.2.0", + "rustls-pemfile 2.1.3", "secrecy", "serde", "serde_json", @@ -5816,7 +5811,7 @@ dependencies = [ "proc-macro2", "quote", "serde_json", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -5908,7 +5903,7 @@ dependencies = [ "proc-macro2", "quote", "regex", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -6007,9 +6002,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.159" +version = "0.2.158" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "561d97a539a36e26a9a5fad1ea11a3039a67714694aaa379433e580854bc3dc5" +checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439" [[package]] name = "libfuzzer-sys" @@ -6068,7 +6063,7 @@ checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" dependencies = [ "bitflags 2.6.0", "libc", - "redox_syscall 0.5.7", + "redox_syscall 0.5.4", ] [[package]] @@ -6156,7 +6151,7 @@ dependencies = [ "rskafka", "serde", "serde_json", - "snafu 0.8.5", + "snafu 0.8.4", "store-api", "tokio", "uuid", @@ -6175,7 +6170,7 @@ dependencies = [ "num-traits", "quote", "regex", - "regex-syntax 0.8.5", + "regex-syntax 0.8.4", "serde", "vergen", ] @@ -6190,7 +6185,7 @@ dependencies = [ "cactus", "cfgrammar", "filetime", - "indexmap 2.6.0", + "indexmap 2.5.0", "lazy_static", "lrtable", "num-traits", @@ -6236,18 +6231,18 @@ dependencies = [ [[package]] name = "lz4" -version = "1.28.0" +version = "1.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d1febb2b4a79ddd1980eede06a8f7902197960aa0383ffcfdd62fe723036725" +checksum = "a231296ca742e418c43660cb68e082486ff2538e8db432bc818580f3965025ed" dependencies = [ "lz4-sys", ] [[package]] name = "lz4-sys" -version = "1.11.1+lz4-1.10.0" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bd8c0d6c6ed0cd30b3652886bb8711dc4bb01d637a68105a3d5158039b418e6" +checksum = "fcb44a01837a858d47e5a630d2ccf304c8efcc4b83b8f9f75b7a9ee4fcc6e57d" dependencies = [ "cc", "libc", @@ -6459,7 +6454,7 @@ dependencies = [ "meta-srv", "rand", "serde", - "snafu 0.8.5", + "snafu 0.8.4", "tokio", "tokio-stream", "tonic 0.11.0", @@ -6475,7 +6470,7 @@ dependencies = [ "api", "async-trait", "chrono", - "clap 4.5.19", + "clap 4.5.18", "client", "common-base", "common-catalog", @@ -6513,7 +6508,7 @@ dependencies = [ "serde_json", "servers", "session", - "snafu 0.8.5", + "snafu 0.8.4", "store-api", "table", "tokio", @@ -6570,7 +6565,7 @@ dependencies = [ "object-store", "prometheus", "serde_json", - "snafu 0.8.5", + "snafu 0.8.4", "store-api", "tokio", ] @@ -6709,7 +6704,7 @@ dependencies = [ "serde_with", "session", "smallvec", - "snafu 0.8.5", + "snafu 0.8.4", "store-api", "strum 0.25.0", "table", @@ -6855,7 +6850,7 @@ dependencies = [ "proc-macro-error", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", "termcolor", "thiserror", ] @@ -6873,7 +6868,7 @@ dependencies = [ "proc-macro-error", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", "termcolor", "thiserror", ] @@ -7265,7 +7260,7 @@ checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -7427,12 +7422,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.20.1" +version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82881c4be219ab5faaf2ad5e5e5ecdff8c66bd7402ca3160975c93b24961afd1" -dependencies = [ - "portable-atomic", -] +checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] name = "oneshot" @@ -7507,9 +7499,9 @@ dependencies = [ [[package]] name = "openssl" -version = "0.10.66" +version = "0.10.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9529f4786b70a3e8c61e11179af17ab6188ad8d0ded78c5529441ed39d4bd9c1" +checksum = "6174bc48f102d208783c2c84bf931bb75927a617866870de8a4ea85597f871f5" dependencies = [ "bitflags 2.6.0", "cfg-if", @@ -7528,7 +7520,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -7539,9 +7531,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "openssl-sys" -version = "0.9.103" +version = "0.9.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f9e8deee91df40a943c71b917e5874b951d32a802526c85721ce3b776c929d6" +checksum = "45abf306cbf99debc8195b66b7346498d7b10c210de50418b5ccd7ceba08c741" dependencies = [ "cc", "libc", @@ -7557,7 +7549,7 @@ checksum = "1e32339a5dc40459130b3bd269e9892439f55b33e772d2a9d402a789baaf4e8a" dependencies = [ "futures-core", "futures-sink", - "indexmap 2.6.0", + "indexmap 2.5.0", "js-sys", "once_cell", "pin-project-lite", @@ -7648,7 +7640,7 @@ dependencies = [ "glob", "once_cell", "opentelemetry 0.21.0", - "ordered-float 4.3.0", + "ordered-float 4.2.2", "percent-encoding", "rand", "thiserror", @@ -7670,7 +7662,7 @@ dependencies = [ "glob", "once_cell", "opentelemetry 0.22.0", - "ordered-float 4.3.0", + "ordered-float 4.2.2", "percent-encoding", "rand", "serde_json", @@ -7721,7 +7713,7 @@ dependencies = [ "regex", "serde_json", "session", - "snafu 0.8.5", + "snafu 0.8.4", "sql", "sqlparser 0.45.0 (git+https://github.com/GreptimeTeam/sqlparser-rs.git?rev=54a267ac89c09b11c0c88934690530807185d3e7)", "store-api", @@ -7784,9 +7776,9 @@ dependencies = [ [[package]] name = "ordered-float" -version = "4.3.0" +version = "4.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44d501f1a72f71d3c063a6bbc8f7271fa73aa09fe5d6283b6571e2ed176a2537" +checksum = "4a91171844676f8c7990ce64959210cd2eaef32c2612c50f9fae9f8aaa6065a6" dependencies = [ "num-traits", ] @@ -7923,7 +7915,7 @@ dependencies = [ "cfg-if", "libc", "petgraph", - "redox_syscall 0.5.7", + "redox_syscall 0.5.4", "smallvec", "thread-id", "windows-targets 0.52.6", @@ -7989,7 +7981,7 @@ dependencies = [ "itertools 0.10.5", "serde", "serde_json", - "snafu 0.8.5", + "snafu 0.8.4", "sql", "sqlparser 0.45.0 (git+https://github.com/GreptimeTeam/sqlparser-rs.git?rev=54a267ac89c09b11c0c88934690530807185d3e7)", "store-api", @@ -8147,7 +8139,7 @@ dependencies = [ "pest_meta", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -8168,7 +8160,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" dependencies = [ "fixedbitset", - "indexmap 2.6.0", + "indexmap 2.5.0", ] [[package]] @@ -8259,7 +8251,7 @@ checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -8323,7 +8315,7 @@ dependencies = [ "serde", "serde_json", "session", - "snafu 0.8.5", + "snafu 0.8.4", "sql", "table", "tokio", @@ -8404,9 +8396,9 @@ dependencies = [ [[package]] name = "pkg-config" -version = "0.3.31" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2" +checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" [[package]] name = "plotters" @@ -8446,7 +8438,7 @@ dependencies = [ "frontend", "meta-srv", "serde", - "snafu 0.8.5", + "snafu 0.8.4", ] [[package]] @@ -8462,9 +8454,9 @@ dependencies = [ [[package]] name = "portable-atomic" -version = "1.9.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc9c68a3f6da06753e9335d63e27f6b9754dd1920d941135b7ea8224f141adb2" +checksum = "d30538d42559de6b034bc76fd6dd4c38961b1ee5c6c56e3808c50128fdbc22ce" [[package]] name = "postgres-protocol" @@ -8603,7 +8595,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "479cf940fbbb3426c32c5d5176f62ad57549a0bb84773423ba8be9d089f5faba" dependencies = [ "proc-macro2", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -8622,7 +8614,7 @@ version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ecf48c7ca261d60b74ab1a7b20da18bede46776b2e55535cb958eb595c5fa7b" dependencies = [ - "toml_edit 0.22.22", + "toml_edit 0.22.21", ] [[package]] @@ -8732,7 +8724,7 @@ dependencies = [ "prost 0.12.6", "query", "session", - "snafu 0.8.5", + "snafu 0.8.4", "tokio", ] @@ -8799,7 +8791,7 @@ dependencies = [ "prost 0.12.6", "prost-types 0.12.6", "regex", - "syn 2.0.79", + "syn 2.0.77", "tempfile", ] @@ -8845,7 +8837,7 @@ dependencies = [ "itertools 0.12.1", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -8858,7 +8850,7 @@ dependencies = [ "itertools 0.13.0", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -8952,7 +8944,7 @@ dependencies = [ name = "puffin" version = "0.9.5" dependencies = [ - "async-compression 0.4.13", + "async-compression 0.4.12", "async-trait", "async-walkdir", "auto_impl", @@ -8971,7 +8963,7 @@ dependencies = [ "serde", "serde_json", "sha2", - "snafu 0.8.5", + "snafu 0.8.4", "tokio", "tokio-util", "uuid", @@ -9039,7 +9031,7 @@ dependencies = [ "proc-macro2", "pyo3-macros-backend", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -9052,7 +9044,7 @@ dependencies = [ "proc-macro2", "pyo3-build-config", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -9132,7 +9124,7 @@ dependencies = [ "serde", "serde_json", "session", - "snafu 0.8.5", + "snafu 0.8.4", "sql", "sqlparser 0.45.0 (git+https://github.com/GreptimeTeam/sqlparser-rs.git?rev=54a267ac89c09b11c0c88934690530807185d3e7)", "statrs", @@ -9336,9 +9328,9 @@ dependencies = [ [[package]] name = "raw-cpuid" -version = "11.2.0" +version = "11.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ab240315c661615f2ee9f0f2cd32d5a7343a84d5ebcccb99d46e6637565e7b0" +checksum = "cb9ee317cfe3fbd54b36a511efc1edd42e216903c9cd575e686dd68a2ba90d8d" dependencies = [ "bitflags 2.6.0", ] @@ -9386,9 +9378,9 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.5.7" +version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b6dfecf2c74bce2466cabf93f6664d6998a69eb21e39f4207930065b27b771f" +checksum = "0884ad60e090bf1345b93da0a5de8923c93884cd03f40dfcfddd3b4bee661853" dependencies = [ "bitflags 2.6.0", ] @@ -9421,19 +9413,19 @@ checksum = "bcc303e793d3734489387d205e9b186fac9c6cfacedd98cbb2e8a5943595f3e6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] name = "regex" -version = "1.11.0" +version = "1.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38200e5ee88914975b69f657f0801b6f6dccafd44fd9326302a4aaeecfacb1d8" +checksum = "4219d74c6b67a3654a9fbebc4b419e22126d13d2f3c4a07ee0cb61ff79a79619" dependencies = [ "aho-corasick", "memchr", - "regex-automata 0.4.8", - "regex-syntax 0.8.5", + "regex-automata 0.4.7", + "regex-syntax 0.8.4", ] [[package]] @@ -9447,13 +9439,13 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.8" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "368758f23274712b504848e9d5a6f010445cc8b87a7cdb4d7cbee666c1288da3" +checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df" dependencies = [ "aho-corasick", "memchr", - "regex-syntax 0.8.5", + "regex-syntax 0.8.4", ] [[package]] @@ -9470,9 +9462,9 @@ checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" [[package]] name = "regex-syntax" -version = "0.8.5" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" +checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" [[package]] name = "regress" @@ -9532,9 +9524,9 @@ dependencies = [ [[package]] name = "reqwest" -version = "0.12.8" +version = "0.12.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f713147fbe92361e52392c73b8c9e48c04c6625bce969ef54dc901e58e042a7b" +checksum = "f8f4955649ef5c38cc7f9e8aa41761d48fb9677197daea9984dc54f56aad5e63" dependencies = [ "base64 0.22.1", "bytes", @@ -9556,8 +9548,8 @@ dependencies = [ "pin-project-lite", "quinn", "rustls 0.23.13", - "rustls-native-certs 0.8.0", - "rustls-pemfile 2.2.0", + "rustls-native-certs 0.7.3", + "rustls-pemfile 2.1.3", "rustls-pki-types", "serde", "serde_json", @@ -9816,7 +9808,7 @@ dependencies = [ "regex", "relative-path", "rustc_version", - "syn 2.0.79", + "syn 2.0.77", "unicode-ident", ] @@ -9828,7 +9820,7 @@ checksum = "b3a8fb4672e840a587a66fc577a5491375df51ddb88f2a2c2a792598c326fe14" dependencies = [ "quote", "rand", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -9851,7 +9843,7 @@ dependencies = [ "proc-macro2", "quote", "rust-embed-utils", - "syn 2.0.79", + "syn 2.0.77", "walkdir", ] @@ -10061,7 +10053,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5bfb394eeed242e909609f56089eecfe5fda225042e8b171791b9c95f5931e5" dependencies = [ "openssl-probe", - "rustls-pemfile 2.2.0", + "rustls-pemfile 2.1.3", "rustls-pki-types", "schannel", "security-framework", @@ -10074,7 +10066,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fcaf18a4f2be7326cd874a5fa579fae794320a0f388d365dca7e480e55f83f8a" dependencies = [ "openssl-probe", - "rustls-pemfile 2.2.0", + "rustls-pemfile 2.1.3", "rustls-pki-types", "schannel", "security-framework", @@ -10091,18 +10083,19 @@ dependencies = [ [[package]] name = "rustls-pemfile" -version = "2.2.0" +version = "2.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50" +checksum = "196fe16b00e106300d3e45ecfcb764fa292a535d7326a29a5875c579c7417425" dependencies = [ + "base64 0.22.1", "rustls-pki-types", ] [[package]] name = "rustls-pki-types" -version = "1.9.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e696e35370c65c9c541198af4543ccd580cf17fc25d8e05c5a242b202488c55" +checksum = "fc0a2ce646f8655401bb81e7927b812614bd5d91dbc968696be50603510fcaf0" [[package]] name = "rustls-webpki" @@ -10591,7 +10584,7 @@ dependencies = [ "proc-macro2", "quote", "serde_derive_internals", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -10649,7 +10642,7 @@ dependencies = [ "serde", "servers", "session", - "snafu 0.8.5", + "snafu 0.8.4", "sql", "table", "tokio", @@ -10692,7 +10685,7 @@ dependencies = [ "heck 0.4.1", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -10770,7 +10763,7 @@ checksum = "243902eda00fad750862fc144cea25caca5e20d615af0a81bee94ca738f1df1f" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -10781,7 +10774,7 @@ checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -10790,7 +10783,7 @@ version = "1.0.128" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6ff5456707a1de34e7e37f2a6fd3d3f808c318259cbd01ab6377795054b483d8" dependencies = [ - "indexmap 2.6.0", + "indexmap 2.5.0", "itoa", "memchr", "ryu", @@ -10815,14 +10808,14 @@ checksum = "6c64451ba24fc7a6a2d60fc75dd9c83c90903b19028d4eff35e88fc1e86564e9" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] name = "serde_spanned" -version = "0.6.8" +version = "0.6.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87607cb1398ed59d48732e575a4c28a7a8ebf2454b964fe3f224f2afc07909e1" +checksum = "eb5b1b31579f3811bf615c144393417496f152e12ac8b7663bf664f4a815306d" dependencies = [ "serde", ] @@ -10836,7 +10829,7 @@ dependencies = [ "proc-macro2", "quote", "serde", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -10853,15 +10846,15 @@ dependencies = [ [[package]] name = "serde_with" -version = "3.10.0" +version = "3.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9720086b3357bcb44fce40117d769a4d068c70ecfa190850a980a71755f66fcc" +checksum = "69cecfa94848272156ea67b2b1a53f20fc7bc638c4a46d2f8abde08f05f4b857" dependencies = [ "base64 0.22.1", "chrono", "hex", "indexmap 1.9.3", - "indexmap 2.6.0", + "indexmap 2.5.0", "serde", "serde_derive", "serde_json", @@ -10871,14 +10864,14 @@ dependencies = [ [[package]] name = "serde_with_macros" -version = "3.10.0" +version = "3.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f1abbfe725f27678f4663bcacb75a83e829fd464c25d78dd038a3a29e307cec" +checksum = "a8fee4991ef4f274617a51ad4af30519438dacb2f56ac773b08a1922ff743350" dependencies = [ "darling 0.20.10", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -10887,7 +10880,7 @@ version = "0.9.34+deprecated" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a8b1a1a2ebf674015cc02edccce75287f1a0130d394307b36743c2f5d504b47" dependencies = [ - "indexmap 2.6.0", + "indexmap 2.5.0", "itoa", "ryu", "serde", @@ -10975,14 +10968,14 @@ dependencies = [ "reqwest", "rust-embed", "rustls 0.23.13", - "rustls-pemfile 2.2.0", + "rustls-pemfile 2.1.3", "rustls-pki-types", "schemars", "script", "serde", "serde_json", "session", - "snafu 0.8.5", + "snafu 0.8.4", "snap", "sql", "strum 0.25.0", @@ -11019,7 +11012,7 @@ dependencies = [ "common-time", "derive_builder 0.12.0", "meter-core", - "snafu 0.8.5", + "snafu 0.8.4", "sql", ] @@ -11068,9 +11061,9 @@ dependencies = [ [[package]] name = "shadow-rs" -version = "0.35.1" +version = "0.35.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2311e39772c00391875f40e34d43efef247b23930143a70ca5fbec9505937420" +checksum = "f1b2328fb3ec0d5302f95915e7e77cfc2ff943714d9970bc4b66e9eacf318687" dependencies = [ "const_format", "git2", @@ -11225,11 +11218,11 @@ dependencies = [ [[package]] name = "snafu" -version = "0.8.5" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "223891c85e2a29c3fe8fb900c1fae5e69c2e42415e3177752e8718475efa5019" +checksum = "2b835cb902660db3415a672d862905e791e54d306c6e8189168c7f3d9ae1c79d" dependencies = [ - "snafu-derive 0.8.5", + "snafu-derive 0.8.4", ] [[package]] @@ -11246,14 +11239,14 @@ dependencies = [ [[package]] name = "snafu-derive" -version = "0.8.5" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03c3c6b7927ffe7ecaa769ee0e3994da3b8cafc8f444578982c83ecb161af917" +checksum = "38d1e02fca405f6280643174a50c942219f0bbf4dbf7d480f1dd864d6f211ae5" dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -11365,7 +11358,7 @@ dependencies = [ "lazy_static", "regex", "serde_json", - "snafu 0.8.5", + "snafu 0.8.4", "sqlparser 0.45.0 (git+https://github.com/GreptimeTeam/sqlparser-rs.git?rev=54a267ac89c09b11c0c88934690530807185d3e7)", "sqlparser_derive 0.1.1", "table", @@ -11404,7 +11397,7 @@ name = "sqlness-runner" version = "0.9.5" dependencies = [ "async-trait", - "clap 4.5.19", + "clap 4.5.18", "client", "common-error", "common-query", @@ -11462,7 +11455,7 @@ checksum = "01b2e185515564f15375f593fb966b5718bc624ba77fe49fa4616ad619690554" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -11472,7 +11465,7 @@ source = "git+https://github.com/GreptimeTeam/sqlparser-rs.git?rev=54a267ac89c09 dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -11642,7 +11635,7 @@ dependencies = [ "humantime", "serde", "serde_json", - "snafu 0.8.5", + "snafu 0.8.4", "strum 0.25.0", "tokio", ] @@ -11763,7 +11756,7 @@ dependencies = [ "proc-macro2", "quote", "rustversion", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -11776,7 +11769,7 @@ dependencies = [ "proc-macro2", "quote", "rustversion", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -11805,7 +11798,7 @@ dependencies = [ "datatypes", "promql", "prost 0.12.6", - "snafu 0.8.5", + "snafu 0.8.4", "substrait 0.37.3", "tokio", ] @@ -11829,7 +11822,7 @@ dependencies = [ "serde", "serde_json", "serde_yaml", - "syn 2.0.79", + "syn 2.0.77", "typify", "walkdir", ] @@ -11850,7 +11843,7 @@ dependencies = [ "serde", "serde_json", "serde_yaml", - "syn 2.0.79", + "syn 2.0.77", "typify", "walkdir", ] @@ -11863,9 +11856,9 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "symbolic-common" -version = "12.12.0" +version = "12.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "366f1b4c6baf6cfefc234bbd4899535fca0b06c74443039a73f6dfb2fad88d77" +checksum = "9fdf97c441f18a4f92425b896a4ec7a27e03631a0b1047ec4e34e9916a9a167e" dependencies = [ "debugid", "memmap2 0.9.5", @@ -11875,9 +11868,9 @@ dependencies = [ [[package]] name = "symbolic-demangle" -version = "12.12.0" +version = "12.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aba05ba5b9962ea5617baf556293720a8b2d0a282aa14ee4bf10e22efc7da8c8" +checksum = "bc8ece6b129e97e53d1fbb3f61d33a6a9e5369b11d01228c068094d6d134eaea" dependencies = [ "cpp_demangle", "rustc-demangle", @@ -11897,9 +11890,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.79" +version = "2.0.77" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89132cd0bf050864e1d38dc3bbc07a0eb8e7530af26344d3d2bbbef83499f590" +checksum = "9f35bcdf61fd8e7be6caf75f429fdca8beb3ed76584befb503b1569faee373ed" dependencies = [ "proc-macro2", "quote", @@ -11934,7 +11927,7 @@ dependencies = [ "proc-macro-error", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -12020,7 +12013,7 @@ dependencies = [ "paste", "serde", "serde_json", - "snafu 0.8.5", + "snafu 0.8.4", "store-api", "tokio", "tokio-util", @@ -12129,7 +12122,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d60769b80ad7953d8a7b2c70cdfe722bbcdcac6bccc8ac934c40c034d866fc18" dependencies = [ "byteorder", - "regex-syntax 0.8.5", + "regex-syntax 0.8.4", "utf8-ranges", ] @@ -12208,9 +12201,9 @@ dependencies = [ [[package]] name = "tempfile" -version = "3.13.0" +version = "3.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0f2c9fc62d0beef6951ccffd757e241266a2c833136efbe35af6cd2567dca5b" +checksum = "04cbcdd0c794ebb0d4cf35e88edd2f7d2c4c3e9a5a6dab322839b321c6a87a64" dependencies = [ "cfg-if", "fastrand", @@ -12286,7 +12279,7 @@ dependencies = [ "serde", "serde_json", "serde_yaml", - "snafu 0.8.5", + "snafu 0.8.4", "sql", "sqlparser 0.45.0 (git+https://github.com/GreptimeTeam/sqlparser-rs.git?rev=54a267ac89c09b11c0c88934690530807185d3e7)", "sqlx", @@ -12309,7 +12302,7 @@ dependencies = [ "cache", "catalog", "chrono", - "clap 4.5.19", + "clap 4.5.18", "client", "cmd", "common-base", @@ -12356,7 +12349,7 @@ dependencies = [ "servers", "session", "similar-asserts", - "snafu 0.8.5", + "snafu 0.8.4", "sql", "sqlx", "store-api", @@ -12412,7 +12405,7 @@ checksum = "08904e7672f5eb876eaaf87e0ce17857500934f4981c4a0ab2b4aa98baac7fc3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -12599,7 +12592,7 @@ checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -12766,7 +12759,7 @@ dependencies = [ "serde", "serde_spanned", "toml_datetime", - "toml_edit 0.22.22", + "toml_edit 0.22.21", ] [[package]] @@ -12784,22 +12777,22 @@ version = "0.19.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" dependencies = [ - "indexmap 2.6.0", + "indexmap 2.5.0", "toml_datetime", "winnow 0.5.40", ] [[package]] name = "toml_edit" -version = "0.22.22" +version = "0.22.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ae48d6208a266e853d946088ed816055e556cc6028c5e8e2b84d9fa5dd7c7f5" +checksum = "3b072cee73c449a636ffd6f32bd8de3a9f7119139aff882f44943ce2986dc5cf" dependencies = [ - "indexmap 2.6.0", + "indexmap 2.5.0", "serde", "serde_spanned", "toml_datetime", - "winnow 0.6.20", + "winnow 0.6.18", ] [[package]] @@ -12850,7 +12843,7 @@ dependencies = [ "percent-encoding", "pin-project", "prost 0.12.6", - "rustls-pemfile 2.2.0", + "rustls-pemfile 2.1.3", "rustls-pki-types", "tokio", "tokio-rustls 0.25.0", @@ -12872,7 +12865,7 @@ dependencies = [ "proc-macro2", "prost-build 0.12.6", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -12915,7 +12908,7 @@ version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "61c5bb1d698276a2443e5ecfabc1008bf15a36c12e6a7176e7bf089ea9131140" dependencies = [ - "async-compression 0.4.13", + "async-compression 0.4.12", "base64 0.21.7", "bitflags 2.6.0", "bytes", @@ -13002,7 +12995,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -13259,7 +13252,7 @@ checksum = "70b20a22c42c8f1cd23ce5e34f165d4d37038f5b663ad20fb6adbdf029172483" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -13287,7 +13280,7 @@ dependencies = [ "semver", "serde", "serde_json", - "syn 2.0.79", + "syn 2.0.77", "thiserror", "unicode-ident", ] @@ -13305,7 +13298,7 @@ dependencies = [ "serde", "serde_json", "serde_tokenstream", - "syn 2.0.79", + "syn 2.0.77", "typify-impl", ] @@ -13346,9 +13339,9 @@ checksum = "fe4fa6e588762366f1eb4991ce59ad1b93651d0b769dfb4e4d1c5c4b943d1159" [[package]] name = "ucd-trie" -version = "0.1.7" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2896d95c02a80c6d6a5d6e953d479f5ddf2dfdb6a244441010e373ac0fb88971" +checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9" [[package]] name = "uname" @@ -13486,9 +13479,9 @@ dependencies = [ [[package]] name = "unicode-bidi" -version = "0.3.17" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ab17db44d7388991a428b2ee655ce0c212e862eff1768a455c58f9aad6e7893" +checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" [[package]] name = "unicode-casing" @@ -13513,9 +13506,9 @@ dependencies = [ [[package]] name = "unicode-properties" -version = "0.1.3" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e70f2a8b45122e719eb623c01822704c4e0907e7e426a05927e1a1cfff5b75d0" +checksum = "52ea75f83c0137a9b98608359a5f1af8144876eb67bcb1ce837368e906a9f524" [[package]] name = "unicode-segmentation" @@ -13629,7 +13622,7 @@ checksum = "ee1cd046f83ea2c4e920d6ee9f7c3537ef928d75dce5d84a87c2c5d6b3999a3a" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -13745,7 +13738,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", "wasm-bindgen-shared", ] @@ -13779,7 +13772,7 @@ checksum = "afc340c74d9005395cf9dd098506f7f44e38f2b4a21c6aaacf9a105ea5e1e836" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -13792,9 +13785,9 @@ checksum = "c62a0a307cb4a311d3a07867860911ca130c3494e8c2719593806c08bc5d0484" [[package]] name = "wasm-streams" -version = "0.4.1" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e072d4e72f700fb3443d8fe94a39315df013eef1104903cdb0a2abd322bbecd" +checksum = "b65dc4c90b63b118468cf747d8bf3566c1913ef60be765b5730ead9e0a3ba129" dependencies = [ "futures-util", "js-sys", @@ -13902,7 +13895,7 @@ version = "1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "372d5b87f58ec45c384ba03563b03544dc5fadc3983e434b286913f5b4a9bb6d" dependencies = [ - "redox_syscall 0.5.7", + "redox_syscall 0.5.4", "wasite", "web-sys", ] @@ -14271,9 +14264,9 @@ dependencies = [ [[package]] name = "winnow" -version = "0.6.20" +version = "0.6.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36c1fec1a2bb5866f07c25f68c26e565c4c200aebb96d7e55710c19d3e8ac49b" +checksum = "68a9bda4691f099d435ad181000724da8e5899daa10713c2d432552b9ccd3a6f" dependencies = [ "memchr", ] @@ -14375,7 +14368,7 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] @@ -14395,7 +14388,7 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.77", ] [[package]] diff --git a/src/common/recordbatch/src/error.rs b/src/common/recordbatch/src/error.rs index 3eb90b05e765..908ab5e91b95 100644 --- a/src/common/recordbatch/src/error.rs +++ b/src/common/recordbatch/src/error.rs @@ -161,6 +161,11 @@ pub enum Error { #[snafu(implicit)] location: Location, }, + #[snafu(display("Stream timeout"))] + StreamTimeout { + #[snafu(implicit)] + location: Location, + }, } impl ErrorExt for Error { @@ -190,6 +195,8 @@ impl ErrorExt for Error { Error::SchemaConversion { source, .. } | Error::CastVector { source, .. } => { source.status_code() } + + Error::StreamTimeout { .. } => StatusCode::Cancelled, } } diff --git a/src/operator/src/error.rs b/src/operator/src/error.rs index 15b4e4e15bee..48bc7a81c221 100644 --- a/src/operator/src/error.rs +++ b/src/operator/src/error.rs @@ -23,6 +23,7 @@ use datafusion::parquet; use datatypes::arrow::error::ArrowError; use snafu::{Location, Snafu}; use table::metadata::TableType; +use tokio::time::error::Elapsed; #[derive(Snafu)] #[snafu(visibility(pub))] @@ -777,6 +778,14 @@ pub enum Error { location: Location, json: String, }, + + #[snafu(display("Canceling statement due to statement timeout"))] + StatementTimeout { + #[snafu(implicit)] + location: Location, + #[snafu(source)] + error: Elapsed, + }, } pub type Result = std::result::Result; @@ -924,6 +933,7 @@ impl ErrorExt for Error { Error::BuildRecordBatch { source, .. } => source.status_code(), Error::UpgradeCatalogManagerRef { .. } => StatusCode::Internal, + Error::StatementTimeout { .. } => StatusCode::Cancelled, } } diff --git a/src/operator/src/statement.rs b/src/operator/src/statement.rs index 4b061dd6e592..97465e3ee048 100644 --- a/src/operator/src/statement.rs +++ b/src/operator/src/statement.rs @@ -24,11 +24,14 @@ mod show; mod tql; use std::collections::HashMap; +use std::pin::Pin; use std::sync::Arc; +use std::task::{Context, Poll}; +use std::time::Duration; use catalog::kvbackend::KvBackendCatalogManager; use catalog::CatalogManagerRef; -use client::RecordBatches; +use client::{OutputData, RecordBatches, SendableRecordBatchStream}; use common_error::ext::BoxedError; use common_meta::cache::TableRouteCacheRef; use common_meta::cache_invalidator::CacheInvalidatorRef; @@ -39,10 +42,15 @@ use common_meta::key::view_info::{ViewInfoManager, ViewInfoManagerRef}; use common_meta::key::{TableMetadataManager, TableMetadataManagerRef}; use common_meta::kv_backend::KvBackendRef; use common_query::Output; +use common_recordbatch::adapter::RecordBatchMetrics; +use common_recordbatch::error::StreamTimeoutSnafu; +use common_recordbatch::{OrderOption, RecordBatch, RecordBatchStream}; use common_telemetry::tracing; use common_time::range::TimestampRange; use common_time::Timestamp; use datafusion_expr::LogicalPlan; +use datatypes::schema::SchemaRef; +use futures::stream::Stream; use partition::manager::{PartitionRuleManager, PartitionRuleManagerRef}; use query::parser::QueryStatement; use query::QueryEngineRef; @@ -64,8 +72,8 @@ use table::TableRef; use self::set::{set_bytea_output, set_datestyle, set_timezone, validate_client_encoding}; use crate::error::{ self, CatalogSnafu, ExecLogicalPlanSnafu, ExternalSnafu, InvalidSqlSnafu, NotSupportedSnafu, - PlanStatementSnafu, Result, SchemaNotFoundSnafu, TableMetadataManagerSnafu, TableNotFoundSnafu, - UpgradeCatalogManagerRefSnafu, + PlanStatementSnafu, Result, SchemaNotFoundSnafu, StatementTimeoutSnafu, + TableMetadataManagerSnafu, TableNotFoundSnafu, UpgradeCatalogManagerRefSnafu, }; use crate::insert::InserterRef; use crate::statement::copy_database::{COPY_DATABASE_TIME_END_KEY, COPY_DATABASE_TIME_START_KEY}; @@ -413,8 +421,19 @@ impl StatementExecutor { #[tracing::instrument(skip_all)] async fn plan_exec(&self, stmt: QueryStatement, query_ctx: QueryContextRef) -> Result { - let plan = self.plan(&stmt, query_ctx.clone()).await?; - self.exec_plan(plan, query_ctx).await + let timeout = derive_timeout(&stmt, &query_ctx); + match timeout { + Some(timeout) => { + let start = tokio::time::Instant::now(); + let output = tokio::time::timeout(timeout, self.plan_exec_inner(stmt, query_ctx)) + .await + .context(StatementTimeoutSnafu)?; + // compute remaining timeout + let remaining_timeout = timeout.checked_sub(start.elapsed()).unwrap_or_default(); + Ok(attach_timeout_stream(output?, remaining_timeout)) + } + None => self.plan_exec_inner(stmt, query_ctx).await, + } } async fn get_table(&self, table_ref: &TableReference<'_>) -> Result { @@ -431,6 +450,89 @@ impl StatementExecutor { table_name: table_ref.to_string(), }) } + + async fn plan_exec_inner( + &self, + stmt: QueryStatement, + query_ctx: QueryContextRef, + ) -> Result { + let plan = self.plan(&stmt, query_ctx.clone()).await?; + self.exec_plan(plan, query_ctx).await + } +} + +fn attach_timeout_stream(output: Output, timeout: Duration) -> Output { + match output.data { + OutputData::AffectedRows(_) | OutputData::RecordBatches(_) => output, + OutputData::Stream(stream) => { + let stream = TimeoutStream::new(stream, timeout); + Output::new(OutputData::Stream(Box::pin(stream)), output.meta) + } + } +} + +/// A stream to with timeouts. +struct TimeoutStream { + stream: SendableRecordBatchStream, + timeout_duration: Duration, + start_time: tokio::time::Instant, +} + +impl TimeoutStream { + fn new(stream: SendableRecordBatchStream, timeout_duration: Duration) -> Self { + TimeoutStream { + stream, + timeout_duration, + start_time: tokio::time::Instant::now(), + } + } +} + +impl RecordBatchStream for TimeoutStream { + fn name(&self) -> &str { + self.stream.name() + } + + fn schema(&self) -> SchemaRef { + self.stream.schema() + } + + fn output_ordering(&self) -> Option<&[OrderOption]> { + self.stream.output_ordering() + } + + fn metrics(&self) -> Option { + self.stream.metrics() + } +} + +impl Stream for TimeoutStream { + type Item = common_recordbatch::error::Result; + + fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { + let this = self.get_mut(); + + if this.start_time.elapsed() >= this.timeout_duration { + return Poll::Ready(Some(StreamTimeoutSnafu.fail())); + } + + Pin::new(&mut this.stream).poll_next(cx) + } + + fn size_hint(&self) -> (usize, Option) { + self.stream.size_hint() + } +} + +/// If the relevant variables are set, the timeout is enforced for all PostgreSQL statements. +/// For MySQL, it applies only to read-only statements. +fn derive_timeout(stmt: &QueryStatement, query_ctx: &QueryContextRef) -> Option { + let query_timeout = query_ctx.query_timeout()?; + match (query_ctx.channel(), stmt) { + (Channel::Mysql, QueryStatement::Sql(Statement::Query(_))) + | (Channel::Postgres, QueryStatement::Sql(_)) => Some(query_timeout), + (_, _) => None, + } } fn to_copy_table_request(stmt: CopyTable, query_ctx: QueryContextRef) -> Result {