udf-gen-test
OfficialGenerate Spark UDF tests with confidence
AuthorNVIDIA
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill removes the manual effort of building a reliable unit test harness for an Apache Spark UDF before converting it to a GPU-compatible implementation. It helps establish a clear behavioral contract for the CPU UDF so later conversion work can be validated against known inputs and outputs.
Core Features & Use Cases
- Project setup: Creates a self-contained Scala test project from the provided template and places the target UDF source in the expected package structure.
- Test implementation: Fills in unit test placeholders, replaces UDF name tokens, and builds coverage-focused test data with nulls, malformed inputs, boundary values, and mixed valid or invalid rows.
- Verification loop: Compiles, runs tests, reviews coverage, and iterates until the test suite passes and the important branches of the UDF are exercised.
- Use case: A developer with an existing Spark CPU UDF can use this Skill to generate a strong pre-conversion test specification that supports later GPU or SQL porting.
Quick Start
Provide the Java or Scala UDF source path and ask the Skill to generate the unit test project, implement the test cases, and iterate until the suite passes.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: udf-gen-test Download link: https://github.com/NVIDIA/cudf-spark/archive/main.zip#udf-gen-test Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 537,000+ vetted skills library on demand.