17.10 - Example: Creating a Java External Stored Procedure Using a DATASET Data Type - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1144-171K
Language
English (United States)
This statement creates a Java external stored procedure using the DATASET data type for the input parameter dataset_in and output parameter dataset_out:
CREATE PROCEDURE dst_xsp(IN dataset_in DATASET(8000) Storage Format Avro,
                          OUT dataset_out DATASET(8000) Storage Format Avro)
LANGUAGE JAVA 
NO SQL 
PARAMETER STYLE JAVA
EXTERNAL NAME 'JarXSP1:dst_xsp1.dst_xsp(java.sql.Blob, byte[][])';

public static void dst_xsp(java.sql.Blob b,
                           byte[][]vb_out) throws SQLException