Skip to main content
Version: 0.1.0

Introduction to Jayvee

Jayvee is a domain-specific language (DSL) for data engineering - the cleaning and preprocessing of data for later activities like data science or machine learning. You can use Jayvee to model an ETL pipeline and the command-line interpreter to run the ETL pipeline on your local machine.

Installation

Install the interpreter via npm. You will need a nodejs version >= 17.0.0.

npm install -g @jvalue/jayvee-interpreter

You can install a specific version using the @-syntax, e.g., version 0.0.17:

npm install -g @jvalue/jayvee-interpreter@0.0.17

Update

Updating the interpreter is done by reinstalling it using npm. Make sure to also update the VSCode plugin to match the installed interpreter if you use it.

npm install -g @jvalue/jayvee-interpreter

Usage

Show help

jv -h

Run a .jv file

jv <file>

Run with additional debug output:

jv <file> -d

With runtime parameters:

jv -e <param>=<value> -e <param>=<value> ... <file>

Debug a .jv file

Print debugging is further configured by the parameters --debug-granularity and --debug-target.

jv <file> -d -dg peek

The value of the parameter --debug-granularity (short -dg) can have the following values:

  • peek to log a short summary, including a small subset of data
  • exhaustive to log a summary, including the full data
  • minimal to log a summary, including no additional data (default). To see logs, debugging has to be enabled using the -d flag.
jv <file> -d --debug-granularity peek

The parameter --debug-target (short -dt) allows to specify which blocks should be logged for debugging. Separate block names by comma if multiple blocks are targeted. All blocks are logged if the parameter is omitted.

jv <file> -d --debug-granularity peek --debug-target MyExtractorBlock,MySinkBlock

Examples

You can find multiple examples here. Copy them to your local file system and execute them with the jv command on your command line (see usage).

VSCode Plugin

To set up Jayvee locally in VS Code, you need to install the latest Jayvee VS Code extension. To install the most recent extension, go to our latest release and download the jayvee.vsix file from the release assets. Next, go to this page and follow the instructions for installing the downloaded extension.

Troubleshooting

  1. Error structuredClone is not defined
    • Please make sure you use node version 17+.