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

Teradata Vantageā„¢ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1147-171K
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;