Skip to content

Elusion v9.0.0

Latest

Choose a tag to compare

@DataBora DataBora released this 25 Oct 16:05

🚀 Elusion v9.0.0 Release Notes

📦 Installation

[dependencies]
elusion = "9.0.0"
tokio = { version = "1.50.0", features = ["rt-multi-thread"] }

[9.0.0] - 2026-10-25

Added - Column operations, data cleaning and Data Lake partitioning

  • with_columns([...]) — add new columns or replace existing ones while keeping all other columns, no need to list every column in .select(). Existing columns keep their position, new ones are added at the end
  • drop_columns([...]) — remove columns by name
  • rename([("old", "new")]) — rename columns
  • cast([("column", "SQL_TYPE")]) — change column types (INT, DOUBLE, DECIMAL(10,2), VARCHAR, DATE...)
  • Vec versions for dynamic column lists: with_columns_vec(), drop_columns_vec(), rename_vec(), cast_vec()
  • Column operations chain with the existing builder and run in call order on the query result. Missing columns return a clear error with the list of available columns
  • columns(), count_rows(), shape() — column names, row count and (rows, columns) of a DataFrame
  • schema() — Arrow schema with column names and types (programmatic counterpart of df_schema())
  • value_counts("column", "alias") — frequency of each value in a column, most frequent first
  • write_to_parquet_partitioned(mode, path, &["col1", "col2"]) — Hive-style partitioned Parquet output (path/col1=value/col2=value/*.parquet) with overwrite and append modes, the standard layout for Fabric, Databricks and Spark
  • load_parquet_partitioned(path, alias) — load a Hive-partitioned Parquet folder; partition columns are detected from folder names
  • fill_null_strategy(["col"], strategy) (+ _vec) — fill nulls with forward, backward, mean, median, min, max or zero. forward gives the same result as fill_down()
  • with_row_index("name", offset) — row number as the first column
  • sample(n) and sample_fraction(f) — random rows for quick looks at large files
  • NDJSON / JSON Lines: .ndjson and .jsonl files load with CustomDataFrame::new() and folder loaders, write_to_ndjson(path) writes one JSON object per line
  • explode("col") — one row per element of a JSON array column (REST API data); explode_split("col", ",") — one row per part of delimited text
  • to_dummies(["col"]) (+ _vec) — one 0/1 column per category, replacing the original column
  • interpolate(["col"]) (+ _vec) — linear interpolation of nulls in numeric columns

⚠️ Breaking Changes

  • Azure SDK migration: Azure Blob support now uses the official azure_storage_blob 1.1 crate instead of the deprecated azure_storage / azure_storage_blobs 0.21 crates
  • elusion::prelude no longer re-exports the old Azure SDK types: azure_storage_blobs::prelude::*, StorageCredentials, CloudLocation, BlockList, BlobBlockType. If you used them directly, add azure_storage_blob to your own Cargo.toml
  • Elusion's Azure functions are unchanged — from_azure_with_sas_token(), write_parquet_to_azure_with_sas() and write_json_to_azure_with_sas() keep the same signatures and behavior
  • JSON nulls: null values in JSON / NDJSON files are now loaded as real nulls instead of the text "null", and no longer turn a numeric column into a text column. A column with whole and decimal numbers (1 and 1.5) is now Float64 instead of text. If your code compared JSON values to the string 'null', use IS NULL instead
  • Elusion now enables the preserve_order feature of serde_json. Because Cargo unifies features, serde_json::Map in your project will also keep insertion order instead of sorting keys alphabetically

Security

  • Fixed 32 of 34 RustSec advisories reported by cargo audit
  • azure_core 0.21 wrote the authorization header to logs (RUSTSEC-2026-0275) — fixed by the Azure SDK migration
  • suppaftp 8 → 12.1.2 — fixes FTP command injection via CRLF (RUSTSEC-2026-0271)
  • calamine 0.34 → 0.37 and rust_xlsxwriter 0.94 → 0.101 — pulls zip 9.1 (symlink / SUID extraction issues, RUSTSEC-2026-0367/0368/0369) and quick-xml 0.42
  • cargo update for patched transitive dependencies: rustls, rustls-webpki, quinn-proto, h2, tokio, tokio-postgres, postgres-protocol, webpki-roots and others
  • Remaining: 2 quick-xml 0.38 advisories (RUSTSEC-2026-0194/0195) come through deltalake → delta_kernel → object_store 0.12 cloud features. They are not reachable from Elusion: Elusion uses deltalake only with local file:// paths and includes no deltalake cloud handlers, so the S3/Azure/GCS XML parsing code never runs (Elusion's own Azure and Fabric code uses the fixed quick-xml 0.41). They are ignored in CI with this explanation and will be removed once deltalake moves to object_store 0.14 (delta-rs #4566). If your own project uses deltalake with cloud storage handlers, that code path is reachable in your dependencies

Fixed

  • macOS build: relaxed the openssl pin from =0.10.72 to 0.10.72 (minimum) so it compiles against OpenSSL 4 from Homebrew

  • Cross-platform paths in ElusionProject local materialization — Parquet and Delta output paths are now built with Path::join instead of a hardcoded \ separator, so Linux and macOS write to the correct location

  • JSON column order: columns loaded from JSON (local files, FTP, Azure, CopyData) now keep the order they have in the source file instead of a random order on every run. Azure CSV blobs keep their header order too. JSON written with write_to_json() keeps the DataFrame column order. Loading large JSON files is also slightly faster (228 MB file: 18.6s → 17.2s)

  • df_schema() now shows String for all string types (Utf8View, LargeUtf8) and the real type name instead of Other for everything else

  • "Column Not Found" error suggested a non-existent .display_schema() — now points to .df_schema()

  • extract_value_from_df() and extract_row_from_df() returned Arrow debug text for non-string columns (e.g. "PrimitiveArray<Int64>\n[\n 10,\n]" instead of "10"). All types (numbers, dates, booleans, Parquet Utf8View strings) are now returned as plain values; nulls stay empty strings

  • COUNT(DISTINCT col) in .select() and .agg() failed with "Column Not Found" — DISTINCT was treated as part of the column name

  • write_to_json() wrote whole numbers as decimals (478.0 instead of 478) and lost precision for integers above 2^53

Tests

  • New integration tests in tests/column_operations.rs (22) for column operations, fill_null_strategy, with_row_index, sample, explode, to_dummies, interpolate, value_counts, DataFrame info, cache keys, partitioned Parquet and NDJSON round-trips, JSON nulls and COUNT(DISTINCT)

Changed

  • Azure uploads and downloads are partitioned and parallelized by the SDK — the manual block upload for files over 1 GB was removed