17.10 - Import Job - Access Module

Teradata® Tools and Utilities Access Module Reference

Product
Access Module
Release Number
17.10
Published
October 2021
Language
English (United States)
Last Update
2021-11-02
dita:mapPath
uur1608578381725.ditamap
dita:ditavalPath
obe1474387269547.ditaval
The parameters inside <> brackets need to be replaced appropriately and <> brackets need to be removed. Teradata Access Module for S3 config and credentials files need to be created and placed at $HOME/.aws.
DEFINE JOB IMPORT_TO_TERADATA
DESCRIPTION 'Import data to Teradata from S3'
(
   SET TargetTable = 'S3W001';

   STEP IMPORT_THE_DATA
   (
      APPLY $INSERT TO OPERATOR ($LOAD)
      SELECT * FROM OPERATOR ($FILE_READER ()
         ATTR
         (
            AccessModuleName = 'libs3axsmod.so',
            AccessModuleInitStr = 'S3Bucket=<S3BucketName>
                                   S3Prefix="<PrefixName>/"
                                   S3Object=testdata.raw’
                                   S3SinglePartFile=True'
         )
      );
   );
);