About Expressions
An expression is a combination of one or more values, operators, and functions that resolve to a value, like a formula. You can use expressions to return a specific set of data. The Transformation Editor can accommodate expressions in queries, loops, switches, and in the stand-alone Expression operation.
When writing expressions, use the inputs of the operation that contains the expression. For example if the operation has an EMP input column named, when you are defining the expression for that operation you can use the EMP input column as a symbol within the expression.
Because of the flexibility required by the Transformation Editor, the expression syntax that is supported is also flexible. Valid expressions can contain operators, names, paths, and literal values. The following table can be used to give you ideas for what you might want to use when defining your Expression.
Canonical functions are built in and cannot be created.
When creating a custom function, the Transformation Editor follows the same rules as for TDV SQL. You create a procedure with one output and promote it as a custom function within the TDV. Using it within a transform, requires the use of the "custom" prefix. For example, if you made a custom function called "amazing", then you'd invoke it within a transform expression using "custom:amazing(x,y,z)".
XQuery functions must be invoked with the "xquery" prefix. For example, to invoke the XQuery concat function, you would use "xquery:concat()". XPath expressions are not supported.
Transform expressions don't allow dashes within symbol names. Replace dashes (-) with underscores (_).