diff --git a/.github/workflows/license-check.yml b/.github/workflows/license-check.yml index 5aa8dceb..7555e0d7 100644 --- a/.github/workflows/license-check.yml +++ b/.github/workflows/license-check.yml @@ -90,11 +90,13 @@ jobs: # its transitive graph is NOT seen by the root run above. Scan # it explicitly against the same deny.toml policy. `--config` # points back at the root deny.toml so both workspaces share - # one allowlist rather than drifting. `--manifest-path` is a - # global cargo-deny flag (before the subcommand); `--config` - # is a `check` flag (after it). Both paths are absolute via - # $GITHUB_WORKSPACE so the step is immune to any - # `defaults.run.working-directory` a future edit might add - # (a relative `--config` would otherwise resolve against the - # manifest dir and look for napi/deny.toml). - run: cargo deny --manifest-path "$GITHUB_WORKSPACE/napi/Cargo.toml" check --config "$GITHUB_WORKSPACE/deny.toml" + # one allowlist rather than drifting. Both `--manifest-path` and + # `--config` are GLOBAL cargo-deny flags (before the `check` + # subcommand): cargo-deny 0.20 (PR EmbarkStudios/cargo-deny#881) + # moved `--config` from a `check` flag to the root, so the old + # `check --config …` form now errors with "unexpected argument + # '--config'". Both paths are absolute via $GITHUB_WORKSPACE so the + # step is immune to any `defaults.run.working-directory` a future + # edit might add (a relative `--config` would otherwise resolve + # against the manifest dir and look for napi/deny.toml). + run: cargo deny --manifest-path "$GITHUB_WORKSPACE/napi/Cargo.toml" --config "$GITHUB_WORKSPACE/deny.toml" check diff --git a/Cargo.lock b/Cargo.lock index 9ecafd3c..54f109be 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -48,9 +48,9 @@ checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c" [[package]] name = "arrow-array" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8a4ab47b3f3eac60f7fd31b81e9028fda018607bcc63451aca4f2b755269862" +checksum = "9486151b2f0785bafc6fa04fc5c99fcb4495455662e58787ea32eaaed33c4192" dependencies = [ "ahash", "arrow-buffer", @@ -58,7 +58,7 @@ dependencies = [ "arrow-schema", "chrono", "half", - "hashbrown 0.16.1", + "hashbrown 0.17.1", "num-complex", "num-integer", "num-traits", @@ -66,9 +66,9 @@ dependencies = [ [[package]] name = "arrow-buffer" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d18b89b4c4f4811d0858175e79541fe98e33e18db3b011708bc287b1240593f" +checksum = "c4776577a87794bfdf0b4e90e2ea12454fa7738ea2823c4be5b9d1851da7b434" dependencies = [ "bytes", "half", @@ -78,9 +78,9 @@ dependencies = [ [[package]] name = "arrow-cast" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "722b5c41dd1d14d0a879a1bce92c6fe33f546101bb2acce57a209825edd075b3" +checksum = "a9ad451ce4f98710828a455b96991b8f031deb2e67f5fcad6773f017e4a69c3a" dependencies = [ "arrow-array", "arrow-buffer", @@ -99,9 +99,9 @@ dependencies = [ [[package]] name = "arrow-data" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1683705c63dcf0d18972759eda48489028cbbff67af7d6bef2c6b7b74ab778a" +checksum = "b38fe43e2e8704360f1464e6e8cc4fc381ef02cc4fb0192afa8df1aaa0115c66" dependencies = [ "arrow-buffer", "arrow-schema", @@ -112,9 +112,9 @@ dependencies = [ [[package]] name = "arrow-ipc" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8cf72d04c07229fbf4dbebe7145cac37d7cf7ec582fe705c6b92cb314af096ab" +checksum = "29dac499fcbc6ba74ee0324057821d381929a48526a3966bd9dffb44aa06d98c" dependencies = [ "arrow-array", "arrow-buffer", @@ -126,9 +126,9 @@ dependencies = [ [[package]] name = "arrow-ord" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "082342947d4e5a2bcccf029a0a0397e21cb3bb8421edd9571d34fb5dd2670256" +checksum = "0e13dbdc2a9c053c10c7baa6e30faee04a180aa7ce88e471835850ce37abd20b" dependencies = [ "arrow-array", "arrow-buffer", @@ -139,18 +139,18 @@ dependencies = [ [[package]] name = "arrow-schema" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4cf0d4a6609679e03002167a61074a21d7b1ad9ea65e462b2c0a97f8a3b2bc6" +checksum = "d9e4969dc350d571766247143ab36a5187d095d3d3690970408bc630d47c69e5" dependencies = [ "bitflags", ] [[package]] name = "arrow-select" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b320d86a9806923663bb0fd9baa65ecaba81cb0cd77ff8c1768b9716b4ef891" +checksum = "402770dba90865359d98d1ef92ef16e23d75c0cca9c2c880c8a05468b7743bf9" dependencies = [ "ahash", "arrow-array", @@ -746,12 +746,6 @@ dependencies = [ "foldhash", ] -[[package]] -name = "hashbrown" -version = "0.16.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" - [[package]] name = "hashbrown" version = "0.17.1" diff --git a/Cargo.toml b/Cargo.toml index 03954470..2ee690e8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,13 +38,13 @@ tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] } # `FFI_ArrowSchema`, `to_ffi`) used by the C ABI's result-stream export # (`src/ffi/result.rs`) so ODBC / Go consumers can pull result batches # across the boundary without re-encoding. -arrow-array = { version = "57", features = ["ffi"] } -arrow-buffer = "57" -arrow-cast = "57" -arrow-ord = "57" -arrow-schema = "57" -arrow-select = "57" -arrow-ipc = "57" +arrow-array = { version = "59", features = ["ffi"] } +arrow-buffer = "59" +arrow-cast = "59" +arrow-ord = "59" +arrow-schema = "59" +arrow-select = "59" +arrow-ipc = "59" # HTTP client and async runtime # diff --git a/napi/Cargo.lock b/napi/Cargo.lock index f0bdc956..842ac38b 100644 --- a/napi/Cargo.lock +++ b/napi/Cargo.lock @@ -42,9 +42,9 @@ dependencies = [ [[package]] name = "arrow-array" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8a4ab47b3f3eac60f7fd31b81e9028fda018607bcc63451aca4f2b755269862" +checksum = "9486151b2f0785bafc6fa04fc5c99fcb4495455662e58787ea32eaaed33c4192" dependencies = [ "ahash", "arrow-buffer", @@ -52,7 +52,7 @@ dependencies = [ "arrow-schema", "chrono", "half", - "hashbrown 0.16.1", + "hashbrown 0.17.1", "num-complex", "num-integer", "num-traits", @@ -60,9 +60,9 @@ dependencies = [ [[package]] name = "arrow-buffer" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d18b89b4c4f4811d0858175e79541fe98e33e18db3b011708bc287b1240593f" +checksum = "c4776577a87794bfdf0b4e90e2ea12454fa7738ea2823c4be5b9d1851da7b434" dependencies = [ "bytes", "half", @@ -72,9 +72,9 @@ dependencies = [ [[package]] name = "arrow-cast" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "722b5c41dd1d14d0a879a1bce92c6fe33f546101bb2acce57a209825edd075b3" +checksum = "a9ad451ce4f98710828a455b96991b8f031deb2e67f5fcad6773f017e4a69c3a" dependencies = [ "arrow-array", "arrow-buffer", @@ -93,9 +93,9 @@ dependencies = [ [[package]] name = "arrow-data" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1683705c63dcf0d18972759eda48489028cbbff67af7d6bef2c6b7b74ab778a" +checksum = "b38fe43e2e8704360f1464e6e8cc4fc381ef02cc4fb0192afa8df1aaa0115c66" dependencies = [ "arrow-buffer", "arrow-schema", @@ -106,9 +106,9 @@ dependencies = [ [[package]] name = "arrow-ipc" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8cf72d04c07229fbf4dbebe7145cac37d7cf7ec582fe705c6b92cb314af096ab" +checksum = "29dac499fcbc6ba74ee0324057821d381929a48526a3966bd9dffb44aa06d98c" dependencies = [ "arrow-array", "arrow-buffer", @@ -120,9 +120,9 @@ dependencies = [ [[package]] name = "arrow-ord" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "082342947d4e5a2bcccf029a0a0397e21cb3bb8421edd9571d34fb5dd2670256" +checksum = "0e13dbdc2a9c053c10c7baa6e30faee04a180aa7ce88e471835850ce37abd20b" dependencies = [ "arrow-array", "arrow-buffer", @@ -133,18 +133,18 @@ dependencies = [ [[package]] name = "arrow-schema" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4cf0d4a6609679e03002167a61074a21d7b1ad9ea65e462b2c0a97f8a3b2bc6" +checksum = "d9e4969dc350d571766247143ab36a5187d095d3d3690970408bc630d47c69e5" dependencies = [ "bitflags", ] [[package]] name = "arrow-select" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b320d86a9806923663bb0fd9baa65ecaba81cb0cd77ff8c1768b9716b4ef891" +checksum = "402770dba90865359d98d1ef92ef16e23d75c0cca9c2c880c8a05468b7743bf9" dependencies = [ "ahash", "arrow-array", @@ -660,9 +660,9 @@ checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" [[package]] name = "hashbrown" -version = "0.16.1" +version = "0.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" [[package]] name = "http" diff --git a/napi/Cargo.toml b/napi/Cargo.toml index b046bec2..ab37e955 100644 --- a/napi/Cargo.toml +++ b/napi/Cargo.toml @@ -99,9 +99,9 @@ futures = { version = "0.3", default-features = false, features = ["std"] } # (`RecordBatch`, `SchemaRef`); `arrow-ipc` is for the `StreamWriter` # we use on the encode side. Versions kept in lock-step with the # kernel's `arrow-*` deps to avoid two arrow versions in the dep graph. -arrow-array = "57" -arrow-schema = "57" -arrow-ipc = "57" +arrow-array = "59" +arrow-schema = "59" +arrow-ipc = "59" # Error envelope serialization. Already a kernel transitive dep; the # direct declaration is so we can use `serde_json::json!` in diff --git a/pyo3/Cargo.lock b/pyo3/Cargo.lock index e0dbb0b3..a6833de7 100644 --- a/pyo3/Cargo.lock +++ b/pyo3/Cargo.lock @@ -51,9 +51,9 @@ dependencies = [ [[package]] name = "arrow-array" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8a4ab47b3f3eac60f7fd31b81e9028fda018607bcc63451aca4f2b755269862" +checksum = "9486151b2f0785bafc6fa04fc5c99fcb4495455662e58787ea32eaaed33c4192" dependencies = [ "ahash", "arrow-buffer", @@ -61,7 +61,7 @@ dependencies = [ "arrow-schema", "chrono", "half", - "hashbrown 0.16.1", + "hashbrown 0.17.1", "num-complex", "num-integer", "num-traits", @@ -69,9 +69,9 @@ dependencies = [ [[package]] name = "arrow-buffer" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d18b89b4c4f4811d0858175e79541fe98e33e18db3b011708bc287b1240593f" +checksum = "c4776577a87794bfdf0b4e90e2ea12454fa7738ea2823c4be5b9d1851da7b434" dependencies = [ "bytes", "half", @@ -81,9 +81,9 @@ dependencies = [ [[package]] name = "arrow-cast" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "722b5c41dd1d14d0a879a1bce92c6fe33f546101bb2acce57a209825edd075b3" +checksum = "a9ad451ce4f98710828a455b96991b8f031deb2e67f5fcad6773f017e4a69c3a" dependencies = [ "arrow-array", "arrow-buffer", @@ -102,9 +102,9 @@ dependencies = [ [[package]] name = "arrow-data" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1683705c63dcf0d18972759eda48489028cbbff67af7d6bef2c6b7b74ab778a" +checksum = "b38fe43e2e8704360f1464e6e8cc4fc381ef02cc4fb0192afa8df1aaa0115c66" dependencies = [ "arrow-buffer", "arrow-schema", @@ -115,9 +115,9 @@ dependencies = [ [[package]] name = "arrow-ipc" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8cf72d04c07229fbf4dbebe7145cac37d7cf7ec582fe705c6b92cb314af096ab" +checksum = "29dac499fcbc6ba74ee0324057821d381929a48526a3966bd9dffb44aa06d98c" dependencies = [ "arrow-array", "arrow-buffer", @@ -129,9 +129,9 @@ dependencies = [ [[package]] name = "arrow-ord" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "082342947d4e5a2bcccf029a0a0397e21cb3bb8421edd9571d34fb5dd2670256" +checksum = "0e13dbdc2a9c053c10c7baa6e30faee04a180aa7ce88e471835850ce37abd20b" dependencies = [ "arrow-array", "arrow-buffer", @@ -142,9 +142,9 @@ dependencies = [ [[package]] name = "arrow-pyarrow" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "699e04d51e2ac87efc52faa0a1bb9742b11b7f75c2abd2842de50c41cc630a47" +checksum = "bf8d967bdece4fa5a0199706730175b3df3448b87e350250a86eb6c22639e445" dependencies = [ "arrow-array", "arrow-data", @@ -154,18 +154,18 @@ dependencies = [ [[package]] name = "arrow-schema" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4cf0d4a6609679e03002167a61074a21d7b1ad9ea65e462b2c0a97f8a3b2bc6" +checksum = "d9e4969dc350d571766247143ab36a5187d095d3d3690970408bc630d47c69e5" dependencies = [ "bitflags", ] [[package]] name = "arrow-select" -version = "57.3.1" +version = "59.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b320d86a9806923663bb0fd9baa65ecaba81cb0cd77ff8c1768b9716b4ef891" +checksum = "402770dba90865359d98d1ef92ef16e23d75c0cca9c2c880c8a05468b7743bf9" dependencies = [ "ahash", "arrow-array", @@ -658,9 +658,9 @@ checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" [[package]] name = "hashbrown" -version = "0.16.1" +version = "0.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" [[package]] name = "heck" @@ -893,15 +893,6 @@ dependencies = [ "icu_properties", ] -[[package]] -name = "indoc" -version = "2.0.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706" -dependencies = [ - "rustversion", -] - [[package]] name = "ipnet" version = "2.12.0" @@ -1080,15 +1071,6 @@ version = "2.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6b947ae49db0d222b1dbc6b113ce7248a3fc3a6ca21b696717bfc000ba4484d8" -[[package]] -name = "memoffset" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" -dependencies = [ - "autocfg", -] - [[package]] name = "miniz_oxide" version = "0.8.9" @@ -1276,35 +1258,32 @@ dependencies = [ [[package]] name = "pyo3" -version = "0.26.0" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ba0117f4212101ee6544044dae45abe1083d30ce7b29c4b5cbdfa2354e07383" +checksum = "cd274650b21d4bfc26a0a47587962c1edb425f69287324355cd040c3ea66071c" dependencies = [ - "indoc", "libc", - "memoffset", "once_cell", "portable-atomic", "pyo3-build-config", "pyo3-ffi", "pyo3-macros", - "unindent", ] [[package]] name = "pyo3-build-config" -version = "0.26.0" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fc6ddaf24947d12a9aa31ac65431fb1b851b8f4365426e182901eabfb87df5f" +checksum = "c5e2a7d2f0d013342f295c048ad19237add5154a55b1c5a254c0ec93d4109078" dependencies = [ "target-lexicon", ] [[package]] name = "pyo3-ffi" -version = "0.26.0" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "025474d3928738efb38ac36d4744a74a400c901c7596199e20e45d98eb194105" +checksum = "ca85c467da1bbc8d866eea5deff9cf29ea5f7785054a17da36e65bda9c05845b" dependencies = [ "libc", "pyo3-build-config", @@ -1312,9 +1291,9 @@ dependencies = [ [[package]] name = "pyo3-log" -version = "0.13.3" +version = "0.13.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26c2ec80932c5c3b2d4fbc578c9b56b2d4502098587edb8bef5b6bfcad43682e" +checksum = "f64083bd3a16a353d9d62335808e8e13d0552d2a2b83fdb084496192dcfa9fcd" dependencies = [ "arc-swap", "log", @@ -1323,9 +1302,9 @@ dependencies = [ [[package]] name = "pyo3-macros" -version = "0.26.0" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e64eb489f22fe1c95911b77c44cc41e7c19f3082fc81cce90f657cdc42ffded" +checksum = "9ac53762fd065daa3194dd09337a38bd793a188100fd1a9304c4ab312d901771" dependencies = [ "proc-macro2", "pyo3-macros-backend", @@ -1335,13 +1314,12 @@ dependencies = [ [[package]] name = "pyo3-macros-backend" -version = "0.26.0" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "100246c0ecf400b475341b8455a9213344569af29a3c841d29270e53102e0fcf" +checksum = "4ca3a1557399783172dc5bf39cfca835157732532cba56b71d2292161e53b362" dependencies = [ "heck", "proc-macro2", - "pyo3-build-config", "quote", "syn", ] @@ -2090,12 +2068,6 @@ version = "1.0.24" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" -[[package]] -name = "unindent" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3" - [[package]] name = "untrusted" version = "0.9.0" diff --git a/pyo3/Cargo.toml b/pyo3/Cargo.toml index 179e1fcd..d2b0730a 100644 --- a/pyo3/Cargo.toml +++ b/pyo3/Cargo.toml @@ -72,16 +72,16 @@ databricks-sql-kernel = { path = "..", default-features = false, features = ["tl # step with `requires-python = ">=3.9"` in pyproject.toml; bumping # both together avoids shipping a wheel whose ABI tag advertises an # interpreter the package no longer claims to support. -pyo3 = { version = "0.26", features = ["extension-module", "abi3-py39"] } +pyo3 = { version = "0.29", features = ["extension-module", "abi3-py39"] } # Multi-thread runtime — one per Session, owned on the Rust side. tokio = { version = "1", features = ["rt-multi-thread"] } # Arrow handoff. Pinned to 57 to match the kernel's arrow-* deps so we # share the same RecordBatch / Schema types and never have to convert. -arrow-array = "57" -arrow-schema = "57" -arrow-pyarrow = "57" +arrow-array = "59" +arrow-schema = "59" +arrow-pyarrow = "59" # Date / timestamp parsing for parameter binding. Same version the # kernel uses for its `TypedValue::Date` / `TypedValue::Timestamp`