1.1 - 8.10 - Multiple-Node Data Sets - Teradata Vantage

Teradata Vantage™ - Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
1.1
8.10
Release Date
October 2019
Content Type
Programming Reference
Publication ID
B700-4003-079K
Language
English (United States)

DistributionMatchReduce version 1.7, DistributionMatchMultiInput version 1.4

SELECT * FROM DistributionMatchReduce (
  ON DistributionMatchMultiInput (
    ON (SELECT COUNT(1) AS counts,
      SUM(COUNT(1)) OVER (PARTITION BY column [,...] 
        ORDER BY column) AS rank, column [,...] 
        FROM input_table 
        WHERE column IS NOT NULL
        GROUP BY column [,...] 
    ) AS InputTable PARTITION BY ANY
    ON (SELECT column [,...], COUNT(*) AS group_size
      FROM input_table 
      WHERE column IS NOT NULL
      GROUP BY column [,...] 
    ) AS GroupStatistics DIMENSION
    USING
    TargetColumn ('target_column')
    [ Tests ('test' [,...]) ]
    Distributions ('distribution:parameters' [,...])
    [ GroupByColumns ({ 'group_column' | group_column_range }[,...]) ]
    [ MinGroupSize (min_group_size) ]
    [ NumCell (cell_size) ]
  ) AS alias_1 PARTITION BY column [,...] 
) AS alias_2;