16.20 - Example Using FNC_TblOpGetCustomKeyCount - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
April 2020
Content Type
Programming Reference
Publication ID
B035-1147-162K
Language
English (United States)

The following query has 2 Custom clause keys: SUM_AGG and AVG_AGG. FNC_TblOpGetCustomKeyCount returns 2 when called from the table operator or contract function associated with this query.

SELECT *
FROM udaggregation (
         on (select * from tab1)
         using SUM_AGG('A', 'B')
               AVG_AGG('C')
) as D;