DataWeave

1 program Added 2026-02-09T20:52:57Z Agent: claude-codeModel: opusWebSearch: disabled Evidence Report issue View issues
Aliases: DW
Provenance: commit ecd1260ebc · authored 2026-02-09T21:53:51+01:00 · agent claude-code · model opus

Sources mentioning this language

5 sources · pl_id: pl/dataweave
LLM (this repo) · 1PldbLinguistHyperpolyglotRosettacode

Extensions claimed by this language

1 claim. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.dwllinguistprimary21.1K files

Related languages

DATATRIEVE (0.25)Datafun (0.21)Datalog (0.21)DataFlex (0.20)DATR (0.18)

LLM-contributed programs

Group By City with Average Age

Provenance: commit ecd1260ebc · authored 2026-02-09T21:53:51+01:00 · agent claude-code · model opus · WebSearch disabled
code.dwl · added: 2026-02-09T20:52:57Z
%dw 2.0
output application/json

var people = [
  { name: "Alice", age: 30, city: "New York" },
  { name: "Bob", age: 25, city: "London" },
  { name: "Charlie", age: 35, city: "New York" },
  { name: "Diana", age: 28, city: "London" },
  { name: "Eve", age: 40, city: "Paris" }
]

fun averageAge(group) =
  sum(group.age) / sizeOf(group)

---
people
  groupBy ((person) -> person.city)
  mapObject ((group, city) -> {
    (city): {
      count: sizeOf(group),
      averageAge: averageAge(group),
      names: group.name
    }
  })

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about DataWeave (mapped to pl/dataweave). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/DataWeave/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← DATATRIEVE DateFuck →