Skip to content

Releases

DataRanger v0.8.0

Choose a tag to compare

@akshaysharma1088 akshaysharma1088 released this 27 Nov 06:51
32eb0f6

A fix to the hash-total check from 0.7.0, the first two of four steps toward safe apply on Snowflake, and two contributions from @areebaf29: Discord alerts and an Airflow example. If your control totals carry a hash_total, upgrade: 0.7.0 could miss a two-row swap on days with more than about 200 rows.

  • Fix: the hash total now decides the day (#113). In 0.7.0 a hash_total in the control totals was compared as a fraction of its own value, so two amounts swapped between rows moved it by about one row's worth and stayed under the gate's threshold on any day with more than about 200 rows; a patrol reported such days as "no action needed". When a day's row count and amount match the control totals exactly, its hash total must now match exactly too. A swap on a day that is also short of late rows still cannot be seen.

  • Fix: optional control measures on warehouse sources (#113). Snowflake, BigQuery, Postgres and dbt sources selected only n and amount from the control totals, so hash_total, min_amount, max_amount and distinct_<column> were ignored there. The control totals are now read whole. A distinct_<column> measure also follows your own column name (distinct_cust_id with --reference cust_id) instead of being skipped.

  • Check the Snowflake clone before any swap (#98, second part of safe apply, #96). snowflake_apply.verify_clone reads the fixed days back from the clone and holds them to the control totals with the same gap rule and threshold as the patrol's gate. Given the patrol's fixed table, it also requires each day to hold exactly the rows the gate approved. A failed check drops the clone. Two read-only queries; nothing in patrol calls it yet.

  • Write a proven fix to a Snowflake clone (#97, first part of safe apply, #96). dataranger.connectors.snowflake_apply.write_fix_to_clone clones the patrolled table and replays the fix on the clone as row-level statements, so columns the patrol never read stay as they were. The patrolled table is never written to, and nothing in patrol calls this yet: a patrol is still three SELECT statements. Fixes that reload rows from the source, and duplicate copies that differ only in a column the patrol did not read, are refused with a clear message.

  • --notify-webhook supports Discord webhooks: the summary is sent as {"content": ...} and cut to Discord's 2,000 character limit. Contributed by @areebaf29.

  • Example: a daily patrol as an Airflow DAG, in examples/airflow. Contributed by @areebaf29.

v0.7.0

Choose a tag to compare

@akshaysharma1088 akshaysharma1088 released this 22 Nov 06:54
cd097bf
Bump version to 0.7.0 and add CHANGELOG entry

DataRanger v0.6.3

Choose a tag to compare

@akshaysharma1088 akshaysharma1088 released this 20 Nov 15:17
e61bf10

Version bump only — recreates the v0.6.3 tag/release against the commit that actually bumped version to 0.6.3, so the release workflow's tag/version gate passes this time and the GHCR Docker image gets published.

v0.6.2

Choose a tag to compare

@akshaysharma1088 akshaysharma1088 released this 20 Nov 07:05
2febc4c

Fixes a version/tag mismatch from v0.6.1 (package still read 0.6.0). No functional changes.

DataRanger 0.6.0

Choose a tag to compare

@akshaysharma1088 akshaysharma1088 released this 18 Nov 06:40
2464594
image

More warehouses for dbt projects, alerts where your team already works, and less to configure. All five changes were contributed by @sarankumar1325.

  • dbt on Postgres. --dbt-model now patrols models on a Postgres target, in a read-only session. Install with pip install "dataranger[dbt,postgres]".
  • dbt on BigQuery (experimental). --dbt-model also patrols models on a BigQuery target and honors the profile's maximum_bytes_billed. Use --days to keep the scan small. Please report how it runs on a real project.
  • Slack and Teams alerts. patrol --notify-webhook URL posts the summary when an incident needs a person; --notify-always posts after every patrol.
  • Less configuration for dbt. The key and the reference are read from the model's unique and relationships tests when meta does not set them.
  • Stricter settings. --threshold, --alpha and --delta outside their valid ranges now stop with a short error.

Full details in CHANGELOG.md.

v0.5.4: Windows fix, OpenSSF badge

Choose a tag to compare

@akshaysharma1088 akshaysharma1088 released this 15 Nov 10:01
fe1011e
  • python -m dataranger now works when the dataranger command is not on PATH (common on Windows).
  • README: how DataRanger compares with tests, observability platforms and AI agents, and what data leaves your machine.
  • OpenSSF Best Practices passing badge, a security policy with private reporting, a code of conduct, and issue and pull request templates.
  • Linter in CI, and read-only workflow tokens by default.

v0.5.3

Choose a tag to compare

@akshaysharma1088 akshaysharma1088 released this 15 Nov 06:43
f526a59
Merge pull request #68 from akshaysharma1088/release-0.5.3

Release 0.5.3: version matches the tag

v0.5.2

Choose a tag to compare

@akshaysharma1088 akshaysharma1088 released this 15 Nov 06:31
2f80fad
Merge pull request #67 from akshaysharma1088/real-feed-study

Matched no-gate comparison; conformal cleaning with the authors' code

v0.5.1: Snowflake, dbt and a GitHub Action, now on PyPI

Choose a tag to compare

@akshaysharma1088 akshaysharma1088 released this 13 Nov 03:24
Gemini_Generated_Image_fxdg6rfxdg6rfxdg

This release puts the 0.5 features on PyPI. The v0.5.0 tag works for the GitHub Action, but its PyPI publish did not complete.

Snowflake

pip install "dataranger[snowflake]"
dataranger patrol --snowflake --table ANALYTICS.GOLD.PAYMENTS --ref-table ANALYTICS.GOLD.CUSTOMERS \
    --manifest-table ANALYTICS.OPS.CONTROL_TOTALS --days 45

Three read-only queries, so a read-only role is enough. Credentials come from SNOWFLAKE_* environment variables or a named connection, including SNOWFLAKE_PASSCODE for multi-factor logins. A demo you can run on a trial account is in examples/snowflake.

dbt

pip install "dataranger[dbt]"
dbt build
dataranger patrol --dbt-model fct_payments

Patrols the table behind a dbt model on DuckDB or Snowflake targets. The column mapping can live in the model's meta: dataranger: block. A runnable project is in examples/dbt.

GitHub Action

- uses: akshaysharma1088/dataranger@v0.5.1
  with:
    dbt-model: fct_payments

Runs a patrol in CI, writes the result to the job summary, uploads the report, and fails the job when an incident needs a person.

Also new

  • --days N patrols only the most recent days, for every source.
  • --summary-md PATH appends a Markdown summary of the patrol to a file.
  • Two new MCP tools for AI agents: patrol_snowflake and patrol_dbt.

If DataRanger is useful to you, a ⭐ helps other people find it.

v0.5.0: Snowflake, dbt and a GitHub Action

Choose a tag to compare

@akshaysharma1088 akshaysharma1088 released this 13 Nov 03:10
Gemini_Generated_Image_fxdg6rfxdg6rfxdg

DataRanger now reads from where the data lives and runs in CI.

Snowflake

pip install "dataranger[snowflake]"
dataranger patrol --snowflake --table ANALYTICS.GOLD.PAYMENTS --ref-table ANALYTICS.GOLD.CUSTOMERS \
    --manifest-table ANALYTICS.OPS.CONTROL_TOTALS --days 45

Three read-only queries, so a read-only role is enough. Credentials come from SNOWFLAKE_* environment variables or a named connection. A demo you can run on a trial account is in examples/snowflake.

dbt

pip install "dataranger[dbt]"
dbt build
dataranger patrol --dbt-model fct_payments

Patrols the table behind a dbt model on DuckDB or Snowflake targets. The column mapping can live in the model's meta: dataranger: block. A runnable project is in examples/dbt.

GitHub Action

- uses: akshaysharma1088/dataranger@v0.5.0
  with:
    dbt-model: fct_payments

Runs a patrol in CI, writes the result to the job summary, uploads the report, and fails the job when an incident needs a person.

Also new

  • --days N patrols only the most recent days, for every source.
  • --summary-md PATH appends a Markdown summary of the patrol to a file.
  • Two new MCP tools for AI agents: patrol_snowflake and patrol_dbt.

If DataRanger is useful to you, a ⭐ helps other people find it.