Function Mapping for WRITE_NOS | CREATE FUNCTION MAPPING | Teradata Database - Example: Function Mapping for WRITE_NOS - Teradata Database

SQL Data Definition Language Syntax and Examples

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Teradata Database
Release Number
20.00
Publication Date
June 2025
Content Type
SQL Reference
Publication ID
B035-1144-200K
ft:locale
en-US
ft:lastEdition
2026-09-23
dita:mapPath
mbm1747160743883.ditamap
dita:ditavalPath
jlp1749501702948.ditaval
ft:sourceId
dita
dita:id
mdr1472255012272
lifecycle
latest
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 SQL Data Manipulation Language, B035-1146.

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;