Common Content for Data Catalog
- Common Content for Data Catalog 10.5
- All Products
The following table describes the arguments for this command:SQL_LIKE(subject, pattern, escape character)
Argument
| Required/Optional
| Description
|
|---|---|---|
subject
| Required
| String data type. Passes the value you want to match against the regular expression. Enclose the value in single quotation marks.
|
pattern
| Required
| String data type. Regular expression that you want to match. Enclose the pattern in single quotation marks.
|
escape character
| Optional
| String data type. The SQL_LIKE function supports the percentage sign (%) and underscore (_) as escape characters. Enclose the escape character in single quotation marks.
|
SQL_LIKE(ENAME, 'A_#%', '#')
ENAME | Value |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
I copy and paste the example above to my filter. I replace ENAME with my data element Name. It gives me the same error whenever I try SQL_LIKE command
TE_7002 Transformation stopped due to a fatal error in the mapping. The expression [SQL_LIKE(Name, 'A_#%', '#')] contains the following errors [<> [SQL_LIKE(Name, 'A_#%', '#')]: : invalid function reference ... >>>>SQL_LIKE(Name, 'A_#%', '#')<<<<].
Note: I validate and ger the message 'The expression is valid' before I run the mapping.
Please test the SQL_LIKE command again to make sure it works.
Hi Khoi Nguyen,
We’re working to address your comments and will get back to you.