I have gone through the official documentation of Teradata.
I am planning to write a table function (UDF in C++) which accepts 2 columns as input, processes the input and converts it to a std::map< string,string >
or array of structs
and passes it to some other function which accepts input as array of structs
/std::map< string,string >
. My questions are:
- If I pass 2 columns from a table, how can know the number of rows in new temporary table??How can I accept the values, passed as a column from Teradata query statement into the UDF??
- Are the things, given in the appendix of the documentation such as phase checking,like
TBL_BUILD
,TBL_PRE_INIT
etc., mandatory to be included in the code, for building of the table and other purposes??