Function Mapping for WRITE_NOS | VantageCloud Lake - Example: Function Mapping for WRITE_NOS - Teradata VantageCloud Lake

Lake - Working with SQL

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
jbe1714339405530.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
jbe1714339405530
This statement creates the function mapping NOS_Writer for the WRITE_NOS table operator using the authorization MyObjAuth.
To create a function mapping for WRITE_NOS, you must have the EXECUTE FUNCTION privilege on WRITE_NOS.
For information about the WRITE_NOS table operator, see WRITE_NOS.

Create an authorization object called MyObjAuth:

CREATE AUTHORIZATION MyObjAuth
 AS DEFINER TRUSTED
     USER 'YOUR-ACCESS-KEY-ID'
     PASSWORD 'YOUR-SECRET-ACCESS-KEY';

Create the function mapping for WRITE_NOS:

CREATE FUNCTION MAPPING NOS_Writer
FOR WRITE_NOS
EXTERNAL SECURITY DEFINER TRUSTED MyObjAuth
USING
LOCATION,
STOREDAS,
NAMING,
MANIFESTFILE,
MANIFESTONLY,
OVERWRITE,
INCLUDE_ORDERING,
INCLUDE_HASHBY,
MAXOBJECTSIZE,
COMPRESSION,
ANY IN TABLE;