Exploring Data With CRL
CsvPath Reference Language is a query language for navigating CsvPath Framework
CsvPath Framework has two powerful DSLs:
CVL (CsvPath Validation Language)
CRL (CsvPath Reference Language)
Both are functional path-based languages with minimal syntax. They are highly specific to the Framework. They are both intended to be simple, easy to read, and relatively hard to get wrong. They make simple things easy, hard things possible.
What is CRL?
CsvPath Reference Language is a query language. You can also think of it as a navigational path language with predicates. It helps you find and access data and metadata in sets using simple expressions. As with CsvPath Framework, CRL is oriented towards arrival time and run time ordering. It answers questions like:
What data arrived and when?
What runs were triggered and what were the results?
What version of my validations was a run based on?
Where Do I Use CRL?
CRL is available today in the CsvPath Framework CLI. In a Q1 2027 release CRL will be available in a data estate exploration UI within FlightPath Data. And in that release, or possibly a quick follow-up, FlightPath will introduce:
AI natural language narrative data estate reporting and Q&A
AI automated triage and data forensics with natural language tracing and remediation
What Validation Languages and Formats Does CRL Support?
All of Them! CRL is a tool for exploration and access. Any data that is registered, uploaded, or generated within CsvPath Framework is findable and accessable using CRL.
What Does CRL Look Like?
CRL is based on references v2. It adds functions, interpolated strings, variables, regular expressions and a functional programming style of writing, similar to SQLs. It looks like references v2, only more so.
$*.files.:all()— show all the named-files registered with no template$acme.files.:type("csv"):uuid()— get a list of the UUIDs of CSV files registered under theacmenamed-file$acme.files.2026/orders/:groups().:last()— get theacmeorders that were registered with a template starting2026/orders, treat each file name as a group and return the last version of each.
A CRL statement has the following parts:
$— the root of the statementA named-entity name — this is
acmein the example aboveA named-entity type:
files,csvpaths,resultsA template path — this value uses the path within the named-entity to select a certain registered file or run. While it is primarily a path, ordinal, date, and other function types can also be used here.
A named-entity sub-part — this is a version of a file, an individual csvpath in a named-paths group, or the results of an individual csvpath statement within a named-paths group's run results
The last of these bullets is optional. Summing up, the form is $name.type.template-path.sub.
CRL references can also be linked together as CRL expressions using three set operations:
UNION— merges the sets found by two referencesINTERSECT— returns those items common to two sets resulting from two referencesSUBTRACT— Subtracts the right-hand reference results from the left-hand reference results
Why Another Little Language?
Domain Specific Languages (DSL) or "little languages" are tightly bound to their narrow context and offer concise and consistent solutions that a general purpose programming language (e.g. Python) or query language (e.g. SQL) would not. That consistency and specialized semantic meaning is important to CsvPath Framework because the Framework is a) opinionated, having a very specific and controlled structure, and b) offers uniform workflow as a key way to deliver low-code value to data engineering teams.
Moreover, a language that is semantically fully focused on data preboarding is easier to use for purpose, particularly for AI agents. Unlocking agent autonomy and creativity is key to the value CsvPath Framework seeks to deliver. Using language to empower agents plays to LLMs' obvious strenths in language-based tasks. And tieing activity to a powerful semantic language significantly reduces the number of tools and other context inputs required. Fewer tools and simpler context engineering means more robust agent harnesses, fewer tokens spent, and more ability to enlist more sub-agents in solving a challenge while keeping explainability high.
Last updated