1.1 - 8.10 - VectorDistance Syntax - 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)

Version 1.3

SELECT * FROM VectorDistance (
  ON target_input_table AS TargetTable PARTITION BY target_id_column [,...]
  ON ref_input_table AS ReferenceTable DIMENSION
  USING
  TargetIDColumns ({ 'target_id_column' | target_id_column_range }[,...])
  TargetFeatureColumn ('target_feature_column')
  [ TargetValueColumn ('target_value_column') ]
  [ RefIDColumns ({ 'ref_id_column' | ref_id_column_range }[,...])
  [ RefTableSize ({ 'SMALL' | 'LARGE' }) ]
  [ RefFeatureColumn ('ref_feature_column') ]
  [ RefValueColumn ('ref_value_column') ]
  [ DistanceMeasure ({ 'cosine' | 'euclidean' | 'manhattan' | 'binary' }[,...])]
  [ IgnoreMismatch ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'}) ]
  [ ReplaceInvalid ({ 'PositiveInfinity' |'NegativeInfinity' | custom })]
  [ TopK (k) ]
  [ MaxDistance (threshold [,...]) ]
) AS alias;