Skip to content
cccskills
FreePublished on GitHubEnglish overview

implement-comet-expression

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.

OriginalShow the original description

Use when implementing a new Spark expression in DataFusion Comet. Walks through cloning latest Spark master to study the canonical implementation, checking the upstream datafusion-spark crate before writing native code, building the Comet serde and Rust wire-up from the contributor guide, then running audit-comet-expression to drive a test-coverage iteration loop.

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

Run score Not tested

See how to install

Good for

  • Adding a new Spark expression to Comet
  • Checking whether an upstream function can be reused
  • Adding serde and Rust expression wiring
  • Iterating on SQL test coverage after an audit

Overview

What it does

This skill guides implementation of a Spark expression in DataFusion Comet. It starts by examining the expression and tests in Spark master to establish input types, return values, and behavior for NULL and ANSI mode. If an existing datafusion-spark function matches, the workflow reuses it. Otherwise, it guides setup of Scala expression serialization and Rust function registration and implementation. It also adds SQL file tests and uses audit-comet-expression to find compatibility or coverage gaps and iterate on them.

When it helps

Use it to add a Spark expression that Comet does not yet support, decide whether an upstream function can be reused, or build tests for edge cases and NULL behavior while accounting for Spark version differences. The workflow also includes addressing audit findings with additional tests or fixes.

Example requests

  • “Implement <expression-name> in Comet.”
  • “First check Spark’s behavior and whether a DataFusion function can be reused.”
  • “Add the missing tests identified by the audit.”

Notes

The workflow includes fetching Spark source, building, and running tests. Its final step prepares the changes for a pull request.

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 includes fetching source, builds, tests, and PR preparation, with limited confirmation guidance.
Easy setupDoes it need few tools or API keys, and are they documented?
BPartly lackingIt requires Spark, Make, Maven, and Rust tooling; installation steps are not provided.

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.md6.0 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

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

Review DataFusion Comet changes that cross the JVM/native boundary, focusing on Arrow data transfer, ownership, lifetimes, offsets, and memory release. It helps identify risks such as leaks, invalid access, or crashes and is used alongside the general Comet PR review skill.

  • Review a PR changing Arrow C Data or C Stream handling
  • Check batch ownership and cleanup across JVM and native code
  • Inspect vector export, import, offsets, and lifecycle changes
apache/datafusion-comet1.3KUpdated Oct 31, 2026

See all skills by apache

Report a problem with this skill