For the complete documentation index, see llms.txt. This page is also available as Markdown.

Cross Join

Good old Cartesian Join ..

Cross / Cartesian Join
Cross Joins

Create a new Transformation

Any one of these actions opens a new Transformation tab for you to begin designing your transformation.

  • By clicking File > New > Transformation

  • By using the CTRL-N hot key

You should be familiar with the Data Grid step. Used to list values for first and middle names.

First names
Middle names

Joins all possible first_name, middle_name combinations together.

Join rows

You can also add a condition to constrain the resulting dataset.

2 new fields are added to the data stream:

  • first_middle_name: concates the first_names and middle names.

  • initials: returns the 2 character initials.

This method has two variants and returns a new string that is a substring of this string. The substring begins with the character at the specified index and extends to the end of this string or up to endIndex – 1, if the second argument is given.

UDJE - concat names, initials

Returns the value associated with the ${surname}. This is set in the Parameters tab in Transformation properties.

Joins all possible first_middle_name, surname combinations together. The output for initials is also excludes in the list various initials combinations.

Join rows

Determine the order and selection of the data stream fields.

Select values

2 new fields are added to the data stream:

  • boys_initials: returns the babys’ 3 character initials.

  • boys_name: concates first_name + middle_name + surname

UDJE - name
  • Returns 5 sampled records.

  • Returns Random seed ${seed}

  • Reservoir Sampling allows you to select a set number of random records, from an unknown number ‘reservoir’ of records, i.e. not known beforehand.

  • Use a different seed value to ensure no two ‘sets’ are the same.

Reservoir sampling

RUN

The workshop illustrates the use of cross joins to create data sets with every possible combination - unless conditions are set. The final dataset is randomly selected using Reservoir Sampling - a common technique used in ML.

  1. Click the Run button in the Canvas Toolbar.

  2. Click on the Preview tab:

Preview data

Last updated

Was this helpful?