Skip to content
cccskills
FreePublished on GitHubEnglish overview

wire-datafusion-function

Connect an existing DataFusion or datafusion-spark function to a Spark expression in Comet. Choose a direct mapping, UDF registration, or custom serde for input handling and restrictions, then add SQL file tests. It assumes the upstream function already exists.

OriginalShow the original description

Use when wiring an existing DataFusion or datafusion-spark function into Comet for a Spark expression. Identifies the right wiring pattern (one-line passthrough, datafusion-spark UDF registration, or custom serde with input massaging / restrictions), applies the Scala serde, registers the UDF in jni_api when needed, and adds SQL file tests. Assumes the function already exists upstream — if not, switch to `implement-comet-expression`.

apache/datafusion-comet1,331 stars(GitHub 1,331 + cccskills 0)

Run score Not tested

See how to install

Good for

  • Connecting an existing function to a Spark expression
  • Registering a datafusion-spark UDF for Comet
  • Adding custom input handling or type restrictions
  • Writing SQL file tests for a wired expression

Overview

What it does

This skill connects a function that already exists in DataFusion or datafusion-spark to a Spark expression in Comet. It checks the Spark contract and selects an appropriate wiring pattern: a direct mapping, registration of an upstream UDF, or custom serialization when inputs need conversion or restrictions. It guides the required Scala setup, adds a JNI API registration when needed, and creates SQL file tests.

When it helps

Use it when the function implementation is already available upstream and Comet still needs the connection from the Spark expression. It can help when you need to compare Spark input types, return values, NULL behavior, or ANSI mode with the existing function and address differences through the selected wiring pattern. The workflow takes the connection through to tests.

Example requests

  • “Connect <expression-name> to an existing DataFusion function.”
  • “Compare the Spark expression with the upstream function and wire it up.”
  • “Add the matching SQL file tests.”

Notes

The function must already exist upstream. If it does not, use implement-comet-expression. If it exists only in datafusion-functions, the Spark behavior differences need to be assessed before choosing a connection approach.

This overview was written by AI (OpenAI Codex) from the public SKILL.md. Check the original below for the exact behavior.

Document check

AI checked the SKILL.md for operations that need care and for setup requirements. The score comes only from actually running the skill (hands-on test).

SafetyAre sending data, deleting files, and running commands disclosed?
BPartly lackingIt fetches source and changes code; a blocked-clone stop condition is specified.
Easy setupDoes it need few tools or API keys, and are they documented?
BPartly lackingIt relies on Spark and pinned DataFusion sources; setup guidance is partial.

Not counted in the score. Rated by AI (OpenAI Codex) as of Nov 25, 2026. Treat it as a guide and read the original before installing.

Disagree? Request a re-evaluation

Tell us which point is wrong and why. No login needed. We will check it against the SKILL.md, redo the evaluation, and show the result here.

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

Files included (1)

  • SKILL.md11.5 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Audit a Comet expression by comparing its Spark behavior across supported versions with the Scala and Rust implementations. Review existing tests, find correctness or coverage gaps, and recommend additional regression tests for edge cases.

  • Checking whether an expression matches Spark across versions
  • Finding missing tests for null, overflow, or ANSI behavior
  • Reviewing Comet support-level reasons and compatibility notes
apache/datafusion-comet1.3KUpdated Nov 18, 2026

bug-triage

FreeSummary

Classify open Comet issues awaiting triage as bugs or enhancements, apply the project's type, priority, and area labels, and record decisions and skipped issues in a dated summary issue for human review.

  • Sorting new Comet issues into bugs and enhancements
  • Applying priority and area labels to issues
  • Preparing a triage summary for human review
apache/datafusion-comet1.3KUpdated Dec 1, 2026

Implement a Spark expression in DataFusion Comet by studying Spark’s behavior, reusing an upstream datafusion-spark function when possible, and wiring the Scala serde and Rust function. Add SQL tests, then use an audit workflow to find and address coverage gaps.

  • Adding a new Spark expression to Comet
  • Checking whether an upstream function can be reused
  • Adding serde and Rust expression wiring
apache/datafusion-comet1.3KUpdated Nov 18, 2026

Improve an existing native scalar expression in DataFusion Comet by benchmarking varied input shapes, preserving identical outputs, and checking for regressions. It guides changes to per-row or per-batch expression work such as casts, strings, JSON, arrays, and math.

  • Benchmark an existing scalar expression before and after a change
  • Optimize string, JSON, array, cast, or math kernels
  • Check correctness and regression risk across input shapes
apache/datafusion-comet1.3KUpdated Nov 17, 2026

Review DataFusion Comet documentation in a pull request, branch, or existing page. Check style, technical claims, links, images, and generated content against the code, then provide advisory findings and suggested rewrites without changing files or posting comments.

  • Review docs changed in a Comet pull request
  • Audit a page under docs/source
  • Check README claims against the code
apache/datafusion-comet1.3KUpdated Nov 6, 2026

Review DataFusion Comet pull requests that add or change Spark expressions. Check the Scala serialization path, Rust implementation, return types, edge cases, tests, and performance against Spark behavior, using the general Comet PR review guide for shared review steps.

  • Reviewing a new Spark expression implementation
  • Checking expression behavior against Spark source and tests
  • Assessing expression edge cases, test coverage, and benchmarks
apache/datafusion-comet1.3KUpdated Nov 17, 2026

See all skills by apache

Report a problem with this skill