dqx-apply-checks
Skill by databrickslabs
Applies DQX quality rules to a PySpark DataFrame or Delta table using DQEngine. Aimed at Databricks users who need to run data quality checks, split valid and invalid rows, or quarantine bad records.
Install dqx-apply-checks
Built from the published package, never by AI.
git clone --depth 1 https://github.com/databrickslabs/dqx /tmp/dqx && mkdir -p ~/.claude/skills && cp -r /tmp/dqx/skills/dqx-apply-checks ~/.claude/skills/dqx-apply-checksRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/databrickslabs/dqx /tmp/dqx && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/dqx/skills/dqx-apply-checks ~/.gemini/antigravity-cli/skills/dqx-apply-checksAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant through applying DQX data quality rules with DQEngine. Rules can be written as DQX classes such as DQRowRule and DQDatasetRule, or as metadata loaded from YAML, JSON or Delta. Methods are grouped by rule form and output: appending result columns, splitting valid and invalid rows, or running an end-to-end read, check and write.
The checks append struct columns named _errors and _warnings that list failing rules, with fields such as name, message and function. The skill also covers multi-table runs with apply_checks_and_save_in_tables and wildcard patterns. It is written for data engineers working with PySpark, Delta tables and streaming pipelines.
Written from the project's SKILL.md and checked against it.
What it can do
- apply_checksAppends _errors and _warnings result columns to a DataFrame using DQX class rules.
- apply_checks_and_splitSplits a DataFrame into valid and invalid DataFrames based on error severity.
- apply_checks_by_metadataApplies rules defined as metadata (list of dicts) and appends result columns.
- apply_checks_by_metadata_and_splitSplits a DataFrame into valid and invalid rows using metadata-defined rules.
- apply_checks_and_save_in_tablesRuns many input and output table pairs in one call using RunConfig entries.
- apply_checks_and_save_in_tables_for_patternsExpands Unity Catalog wildcard patterns and runs checks on the matching tables.
- DQEngine.validate_checksRaises an error on bad check definitions before any data is processed.
- Result column shapeDescribes the _errors and _warnings struct fields, including skipped entries.
What you need
- Python with PySpark
- Spark session (Databricks notebook or job, or a local SparkSession)
- DQX library (databricks.labs.dqx)
- Databricks SDK WorkspaceClient
Try asking
- Run DQX data quality checks on catalog.schema.input
- Split my table into valid and invalid rows using these DQX rules
- Quarantine bad records from my Delta table with DQX
Good to know
- Do not mix DQX classes and metadata rules in one call.
- apply_checks_and_save_in_tables_for_patterns requires a checks_location.
- Column names and skipped-entry behavior are set through additional configuration.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/dqx-apply-checks/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB
Alternatives to dqx-apply-checks
All alternatives →Diagnoses slow React components and suggests targeted performance fixes. Built for developers who want to reduce re-renders or list lag in React UIs.
Diagnoses slow React components and suggests targeted performance fixes. Built for React developers who need to reduce re-renders, list lag, or expensive render work.
Designs masterclass-style lectures as slide courses with dense pages, long teacher narration and rare quizzes. Built for subjects where understanding matters more than hands-on practice.
Designs hands-on workshop courses in which the learner practises through exercise and quiz pages instead of watching. It suits workshops, bootcamp sessions and skills the learner should leave able to use.
Analyzes competition and develops market positioning strategies using Porter's Five Forces, Blue Ocean Strategy, and positioning maps. Useful for founders and teams evaluating competitors or preparing a startup or investor pitch.
Designs courses whose content depends on current or external facts. It researches the topic first, records each claim with its source, and builds the outline and pages from fetched material. Built for educators teaching time-sensitive subjects.
Compare with react-component-performance, react-component-performance or lecture-style
dqx-apply-checks: common questions
What does DQX apply_checks return?
It returns one DataFrame with _errors and _warnings struct columns appended. Each column lists the rules that failed at that severity.
Can DQX checks run on streaming DataFrames?
Yes. The source says the same apply_checks methods work on streaming DataFrames as on batch DataFrames.
How do I split valid and invalid rows with DQX?
Use apply_checks_and_split or apply_checks_by_metadata_and_split. The split is based on error severity, and warnings stay with the valid rows.
How do I install dqx-apply-checks?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is dqx-apply-checks free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is dqx-apply-checks safe to use?
It scores 73 of 100. Grades: maintenance A, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to dqx-apply-checks?
Similar skills: react-component-performance, react-component-performance, lecture-style, workshop-style.
