US 12,032,685 B2
Logging from user-defined functions
Thierry Cruanes, San Mateo, CA (US); Ganeshan Ramachandran Iyer, Redmond, WA (US); and Isaac Kunen, Seattle, WA (US)
Assigned to Snowflake Inc., Bozeman, MT (US)
Filed by Snowflake Inc., Bozeman, MT (US)
Filed on Sep. 29, 2022, as Appl. No. 17/936,770.
Application 17/936,770 is a continuation of application No. 17/326,646, filed on May 21, 2021, granted, now 11,487,870.
Claims priority of provisional application 63/201,497, filed on Apr. 30, 2021.
Prior Publication US 2023/0084682 A1, Mar. 16, 2023
This patent is subject to a terminal disclaimer.
Int. Cl. G06F 21/54 (2013.01); G06F 16/2455 (2019.01); G06F 21/53 (2013.01); G06F 21/60 (2013.01)
CPC G06F 21/54 (2013.01) [G06F 16/2455 (2019.01); G06F 21/53 (2013.01); G06F 21/602 (2013.01); G06F 2221/033 (2013.01)] 27 Claims
OG exemplary drawing
 
1. A method comprising:
generating a query plan with at least one external function, the plan including one or more properties for logging operations associated with the external function;
providing an external function operator in a worker process of a processing node and providing a separate user defined function (UDF) server operating in a first programming language in the processing node;
communicating logging instructions from the external function operator to the UDF server;
based on the logging instructions, injecting code into a language-specific integration operating in a second programming language on the UDF server, the injected code includes binding instructions to intercept log data in the language-specific integration;
based on the injected code, collecting log data from the language-specific integration by the UDF server; and
outputting the log data to a storage location.