Ask a question to get started
Enter to sendā¢Shift+Enter new line
Execute Cortex functions with proper SQL escaping.
execute_cortex_function( session: Session, function_name: str, args: list, operation_name: str = 'Cortex function execution' ) -> Dict[str, Any]
session
Session
Active Snowflake session
function_name
str
Name of the Cortex function (e.g., 'SENTIMENT', 'SUMMARIZE')
args
list
List of arguments to pass to the function
operation_name
'Cortex function execution'
Description for error logging