Repository navigation
What's Changed
DQX Core
- Added the
is_greater_thanandis_less_thanrow-level checks (#1644). These are the strict counterparts ofis_not_less_thanandis_not_greater_thanand accept the same limit types (number, date, timestamp, column name, or SQL expression) and the sameallow_nullsoption. - Added support for datacontract-cli 1.x (#1648). The
datacontractextra now requiresdatacontract-cli>=1.2.0,<2.0, so DQX can be installed alongside current datacontract-cli releases.generate_rules_from_contractnow also acceptsDataContract(data_contract=<ODCS model>), which previously raisedParameterError. Rules generated from contract files, strings, and models are unchanged. - Fixed date and timestamp format rules generated from ODCS contracts (#1625).
logicalTypeOptions.formatis now passed tois_valid_date/is_valid_timestampunchanged instead of being converted to a Pythonstrftimepattern, which Spark rejected or used to flag every valid value as invalid. Contract formats written asstrftimepatterns (containing%) are skipped with a warning. If you generated or imported rules from a contract before this fix (e.g. in DQX Studio), regenerate them and remove the old format rules. - Fixed checks that require a minimum Databricks Runtime version failing inside Lakeflow Declarative Pipelines (#1620). The
dlt:prefix on the pipeline runtime version is now ignored, so geospatial checks no longer fail withCannot parse Databricks Runtime version. - Fixed
import databricks.labs.dqxfailing with older Blueprint versions (#1671, #1679). DQX now requiresdatabricks-labs-blueprint>=0.10.2,<=0.13, avoiding theinstall_logger() got an unexpected keyword argument 'root'error and allowing Blueprint 0.13.
DQX Studio
- DQX Studio: released Studio 0.1.2 and pinned one published DQX version for the app and task runner (#1647). The app and task runner now install the same DQX release (
0.17.0for Studio 0.1.2) in both DAB and Marketplace deployments, and start withuv run --frozenso the container installs exactly the committed lock without re-resolving at startup. Studio 0.1.2 also ships the table-approval fix from #1640. If your localtarget.*.ymlstill setsdqx_task_dependencyto${var.dqx_wheel_filename}, remove those lines; the variable no longer exists andbundle validatefails until you do.
BREAKING CHANGES!
- The
datacontractextra now requiresdatacontract-cli>=1.2.0,<2.0. Environments pinned to datacontract-cli 0.x must upgrade. (#1648)
Contributors: @adkinsty, @akuwano, @gueniai, @laurencewells, @vb-dbrks, @ghanse