Implicit Expression/Function Argument Translation | VantageCloud Lake - SQL Rules for Implicit Translation for Expression and Function Arguments - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

The following are the rules for implicit translation between types of expressions and function arguments.

For string functions that produce a character result, the results are summarized by the following table.

Function Result
TRIM Converted back to the type of the main string argument (last argument).
|| (concatenation) Not translated and remains with the character data type of the arguments after any implicit translation.

The other string functions either do not involve conversion or the type of the result is based on the function and not the server character set of the argument.

For example, in the following TRIM function, unicode-literal is first translated to Latin, and then the trim operation is performed.

...
TRIM(unicode-literal FROM latin-value)

The result is Latin.