Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DEV and version r095

...

For some transforms, you can specify patterns to identify conditions or elements of the data on which to take action. These matching patterns can be specified using one of the following types. 

Pattern TypeDescriptionExample
Literal value An exact string or value.

The following matches on the exact value between the quotes:

  'This is what I want to match.'

D s lang
itempattern

D s product
supports a variety of macro-like pattern identifiers, which can be used in place of more complex regular expressions.

The following matches when two digits appear at the beginning of a value:

`{start}{digit} {digit}`

Regular expression

Regular expressions are a standard method of describing matching patterns.

Info

NOTE: The syntax of regular expressions can be complex and can lead to unexpected results if they are improperly specified. Regex is considered a developer-level skill.

The following matches on all numerical values from 0 to 99:

/^\d$|^\d\d$/

For more information on pattern-based matching, see Text Matching.

...

Delimiter groups are listed below. 

Delimiter groupDescription
On delimiterTransformation is applied based on a specific literal or pattern.
Between delimitersTransformation is applied on database between two literal or pattern-based delimiters. Details are below.
On multiple delimiters

Transformation is applied based on a sequence of delimiters. An individual pattern can be a string literal, 

D s lang
itempattern
, or regular expression, and the sequence can contain combinations of these pattern types.

Between positionsTransformation is applied based on a starting index position and an ending index position. Index positions start from 0 on the left side of any cell value.
On positionsTransformation is applied based on a sequence of listed index positions. Index positions start from 0 on the left side of any cell value.
At regular intervalTransformation is applied at every nth position. Index positions start from 0 on the left side of any cell value.

For more information on the underlying syntax for delimiter groups, see Pattern Clause Position Matching.

...

Each delimiter can either include or exclude the matching value:

Transform Builder optionInclude as part of transformInclude/Exclude
Start delimiterfalseExcludes sub-pattern
Start delimitertrueIncludes sub-pattern
End delimiterfalseExcludes sub-pattern
End delimitertrueIncludes sub-pattern

Condition

condition is an expression that yields a true or false value. A condition may include all of the elements of a formula. This value determines whether the transformation is applied to the evaluated row.

...

A number of transforms support the following parameters.

D s ordering

Group parameter: For transforms that aggregate data, such as pivot or window, you can specify the column by which you wish to group the computed aggregations. In the following example, all values in the POS_Sales column are summed up for each value in the Store_Nbr column.

...