Products | Versions |
---|---|
TIBCO Data Virtualization | TIBCO Data Virtualization 8.4.1 and above |
The new behavior of the SPLIT_PART function in TDV is as follows:
An empty string is returned if the position does not have any valid string. This behavior is consistent with the behavior of the SPLIT_PART function in Postgres and MySQL.
Example:
To illustrate the change in behavior, consider the following examples:
In versions 8.3 and below:
Calling SPLIT_PART('1234Acme_parts', ',', 2) => return NULL.
In versions 8.4.1 and above:
Calling SPLIT_PART('1234Acme_parts', ',', 2) => return an empty string.
This change aligns the SPLIT_PART function in TDV with the behavior of similar functions in popular database systems like Postgres and MySQL.