7.00.02 - SQL-MapReduce Call - 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

The bold clause references the IDF values from Output.

CREATE fact TABLE tfidf_output2 DISTRIBUTE BY hash(term) AS
  SELECT * FROM tf_idf (
    ON TF (
      ON tfidf_input2 PARTITION BY docid
      Formula ('normal')
    ) AS tf PARTITION BY term
    ON (SELECT DISTINCT(term) AS term, idf FROM tfidf_output1 
    ) AS idf PARTITION BY term
  );