7.00.02 - Example 6: Using table_from_afs - Aster Analytics

Teradata Aster® Analytics Foundation User GuideUpdate 2

Product
Aster Analytics
Release Number
7.00.02
Published
September 2017
Content Type
Programming Reference
User Guide
Publication ID
B700-1022-700K
Language
English (United States)
Last Update
2018-04-17

This SQL-MapReduce call uses the Alternative Way to Run PSTParserAFS:

SELECT * FROM table_from_afs (
  ON empty_table
  Path ('/test/dum1.pst')
  Input_Format (
    'com.asterdata.sqlmr.analytics.parser.PSTParserAFS.inputformat.PSTInputFormat',
    'columns Sender,folder,Message_ID STRINGS',
    'exclude Sent\\sItems STRINGS')
  SerDe (
    'com.asterdata.sqlmr.analytics.parser.PSTParserAFS.serde.PSTSerDe',     'field.delim=1',
    'escape.delim=27')
  OutputColumns ('Sender varchar', 'folder varchar', 'Message_ID varchar')
);