Before writing a CREATE EXTERNAL FUNCTION statement:
- Read
references/parameters.mdto review all available parameters and their defaults. - For each parameter, decide whether the user's request implies a non-default value.
- Include only the parameters that differ from the default or that the user explicitly requested.
- Never use
CREATE OR REPLACE— always useCREATE EXTERNAL FUNCTION IF NOT EXISTSwhere supported (note: IF NOT EXISTS is not supported for external functions — omit it and warn the user). API_INTEGRATIONand theAS '<url>'clause are always required; ensure both are present.- Set
MAX_BATCH_ROWSexplicitly when the remote service has a documented row-per-request limit. - Use
RETURNS NULL ON NULL INPUTwhen the remote endpoint cannot handle NULL payloads. - Prefer
COMPRESSION = NONEduring development to simplify payload inspection; switch toAUTO(default) for production. - Use
REQUEST_TRANSLATOR/RESPONSE_TRANSLATORUDFs to adapt the Snowflake row-array envelope to/from custom API schemas.