1.0 - 8.00 - GTree Syntax - Teradata Vantage

Teradata® Vantage Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
1.0
8.00
Release Date
May 2019
Content Type
Programming Reference
Publication ID
B700-4003-098K
Language
English (United States)

Version 1.4

SELECT * FROM GTree (
  ON vertices_table AS vertices PARTITION BY vertex_key_column [,...] 
  ON edges_table AS edges PARTITION BY source_vertex_key_column [,...] 
  ON { table | view | (query) } AS root PARTITION BY root_key_column
  USING
  TargetKey ({ 'edges_column' | edges_column_range }[,...])
  [ AllowCycles ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'}) ]
  [ MaxDepth (max_depth) ]
  [ OutputType ({ 'all' | 'end' }) ]
  { Results ('func(expr) [ AS alias]' [,...]) ] | EdgeResults ('func(expr) [ AS alias]' [,...])) }
  [ FinalEdgeFlag ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'})]
) AS alias;