Amazon Redshift Connectors > Part II: Data Integration with Amazon Redshift V2 Connector > SQL ELT with Amazon Redshift V2 Connector > Mappings in SQL ELT mode for Amazon Redshift
  

Mappings in SQL ELT mode for Amazon Redshift

You can create mappings in SQL ELT mode to read data from Amazon Redshift or Amazon S3, load it to Amazon Redshift, and perform all of the data transformation within Amazon Redshift.
To create a mapping in SQL ELT mode, you create a mapping, and then select Mapping - SQL ELT as the mapping type. You're then prompted to choose Amazon Redshift as the cloud ecosystem and an Amazon Redshift V2 target connection. If your organization doesn't have any Amazon Redshift V2 connections, you're prompted to create one.
After you choose the target connection, the Mapping Designer opens. When you create a mapping, a Source transformation and a Target transformation are already on the canvas for you to configure.

Sources in mappings in SQL ELT mode

When you configure the source connection in the Source transformation, you can choose an Amazon Redshift V2 or an Amazon S3 V2 connection.

Amazon Redshift V2 source properties

You can configure the following properties for an Amazon Redshift source:

Amazon S3 V2 source properties

You can configure the following properties for an Amazon S3 V2 source:
For information on how to configure the supported properties, see the help for Amazon S3 V2 Connector.

Targets in mappings in SQL ELT mode

When you configure a Target transformation in a mapping in SQL ELT mode, you need to use only a Amazon Redshift V2 connection.
You can configure the following properties in a Amazon Redshift V2 target transformation in a mapping in SQL ELT mode:
For information on how the targets in mappings in SQL ELT mode behave differently from the targets in other types of mappings, see Targets in mappings in SQL ELT mode in Mappings in the Data Integration help.

Transformations in mappings in SQL ELT mode

A mapping in SQL ELT mode includes transformations that Amazon Redshift can process.
You can use the following transformations in a mapping in SQL ELT mode:

Functions in mappings in SQL ELT mode

When you create expressions within a mapping in SQL ELT mode, you must use the native functions and expression syntax of Amazon Redshift and not Informatica functions and expression syntax.
You can use the following native functions in a mapping in SQL ELT mode:

Aggregate and bit-wise aggregate functions

ANY_VALUE()
COUNT()
STDDEV_SAMP()
AVG()
LISTAGG()
SUM()
BIT_AND()
MAX()
VAR_POP()
BIT_OR()
MEDIAN()
VAR_SAMP()
BOOL_AND()
MIN()
-
BOOL_OR()
STDDEV_POP()
-

Conditional functions

COALESCE()
LEAST()
NVL2()
DECODE()
NULLIF()
-
GREATEST()
NVL()
-

Data type formatting functions

TEXT_TO_INT_ALT()
TO_CHAR()
TO_NUMBER()
TEXT_TO_NUMERIC_ALT()
TO_DATE()
-

Date and time functions

ADD_MONTHS()
DATE_PART_YEAR()
TIMEOFDAY()
CONVERT_TIMEZONE()
DATE_TRUNC()
TIMESTAMP_CMP()
DATE_CMP()
GETDATE()
TIMESTAMP_CMP_DATE()
DATE_CMP_TIMESTAMP()
INTERVAL_CMP()
TIMEZONE()
DATEADD()
LAST_DAY()
TRUNC()
DATEDIFF()
MONTHS_BETWEEN()
-
DATE_PART()
NEXT_DAY()
-

Hash functions

CHECKSUM()
FNV_HASH()
SHA1()
farmFingerprint64()
MD5()
SHA2()
FUNC_SHA1()
SHA()
MURMUR3_32_HASH()

Math functions

ABS()
DEGREES()
POW()
ACOS()
DEXP()
POWER()
ASIN()
DLOG1()
RADIANS()
ATAN()
DLOG10()
RANDOM()
ATAN2()
EXP()
ROUND()
CBRT()
FLOOR()
SIGN()
CEIL()
LN()
SIN()
CEILING()
LOG()
SQRT()
COS()
MOD()
TAN()
COT()
PI()
TRUNC()

String functions

ASCII()
LENGTH()
REVERSE()
BPCHARCMP()
LOWER()
RIGHT()
BTRIM()
LPAD()
RPAD()
BTTEXT_PATTERN_CMP()
LTRIM()
RTRIM()
CHAR_LENGTH()
OCTETINDEX()
SOUNDEX()
CHARACTER_LENGTH()
OCTET_LENGTH()
SPLIT_PART()
CHARINDEX()
QUOTE_IDENT()
STRPOS()
CHR()
QUOTE_LITERAL()
STRTOL()
COLLATE()
REGEXP_COUNT()
SUBSTRING()
CONCAT()
REGEXP_INSTR()
TEXTLEN()
CRC32()
REGEXP_REPLACE()
TRANSLATE()
DIFFERENCE()
REGEXP_SUBSTR()
TRIM()
INITCAP()
REPEAT()
UPPER()
LEFT()
REPLACE()
-
LEN()
REPLICATE()
-

Window functions

AVG()
MAX()
STDDEV_SAMP()
COUNT()
MEDIAN()
STDDEV()
CUME_DIST()
MIN()
STDDEV_POP()
DENSE_RANK()
NTH_VALUE()
SUM()
FIRST_VALUE()
NTILE()
VAR_SAMP()
LAG()
PERCENT_RANK()
VARIANCE()
LAST_VALUE()
RANK()
VAR_POP()
LEAD()
RATIO_TO_REPORT()
-
LISTAGG()
ROW_NUMBER()
-
For more information about the native functions and expression syntax of Amazon Redshift, see SQL functions reference in Amazon Redshift documentation.

Operators in mappings in SQL ELT mode

When you use mappings in SQL ELT mode, Data Integration converts the expression in the transformation by determining equivalent operators in the database. If there is no equivalent operator, Data Integration processes the transformation logic.
The table lists the operators that you can push to Amazon Redshift:
Operator
+
-
*
/
%

Rules and guidelines in mappings in SQL ELT mode

Consider the following rules and guidelines when you run mappings in SQL ELT mode:

General guidelines

Amazon Redshift source and target

Amazon S3 source and Amazon Redshift target