- TargetIDColumns
- Specify the names of the columns that comprise the target vector identifier. You must partition the target input table by these columns and specify them with this syntax element.
- RefIDColumns
- [Optional] Specify the names of the columns that comprise the reference vector identifier.
- TargetAttributeNameColumn
- [Optional] Specify the name of the column that contains the target vector feature name (for example, the axis of a 3-D vector).
- TargetAttributeValueColumn
- [Optional] Specify the name of the column that contains the value for the target vector feature. If you omit this syntax element, each feature (that is, each row) has the target value 1.
- RefAttributeNameColumn
- [Optional] Specify the name of the column that contains the reference vector feature name.
- RefAttributeValueColumn
- [Optional] Specify the name of the column that contains the value for the reference vector feature.
- TargetColumns
- [Optional] Specify names of the columns that contain target vector feature values (for example, the names of the three axes of a 3-D vector).
- RefColumns
- [Optional] Specify names of the columns that contain reference vector feature values (for example, the names of the three axes of a 3-D vector).
- RefTableSize
- [Optional] Specify the size of the ReferenceTable. Specify 'LARGE' only if the ReferenceTable does not fit in memory, because 'SMALL' allows faster processing.
- DistanceMeasure
- [Optional] Specify the distance measures that the function uses.
Option Description 'cosine' Cosine distance between vectors p and q: 'euclidean' Euclidean distance between vectors p and q: 'manhattan' Manhattan distance between vectors p and q: 'binary' Binary distance between two vectors is 1 if vectors are identical and 0 otherwise. - IgnoreMismatch
- [Optional for sparse input, ignored otherwise.] Specify whether to drop mismatched dimensions. If DistanceMeasure is 'cosine', this syntax element is 'false'. If you specify 'true', two vectors with no common features become two empty vectors when only their common features are considered, and the function cannot measure the distance between them.
- ReplaceInvalid
- [Optional] Specify the value to return when the function encounters an infinite value or empty vectors. For custom, you can supply any DOUBLE PRECISION value.
- TopK
- [Optional] Specify, for each target vector and for each measure, the maximum number of closest reference vectors to include in the output table. k is a positive INTEGER value.
- MaxDistance
- [Optional] Specify the maximum distance between a pair of target and reference vectors. If the distance exceeds the threshold, the pair does not appear in the output table.
- OutputFormat
- [Optional] Specify the format of the output table. For large data sets, Teradata recommends input in dense format, for which computing distances is faster.
- InputTablesSame
- [Optional without TopK, disallowed otherwise.] When TargetTable and ReferenceTable are the same, specify 'true' to increase speed of computing distances.