Package dev.frostlake.functions.table
Class QueryHistoryFunction
java.lang.Object
dev.frostlake.functions.TableFunction
dev.frostlake.functions.table.QueryHistoryFunction
The INFORMATION_SCHEMA.QUERY_HISTORY() TABLE FUNCTION — Snowflake exposes query history ONLY this
way (
SELECT … FROM TABLE(INFORMATION_SCHEMA.QUERY_HISTORY(RESULT_LIMIT => n)); the bare
object form is "does not exist", live-verified). The column set mirrors Snowflake's (62 columns,
captured live); the engine populates the subset its tracker records and leaves the rest NULL.
Most recent queries first; RESULT_LIMIT defaults to 100 like Snowflake.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExecute the table function with positional arguments.Execute the table function with named argumentsvoidvalidateArgs(Map<String, Object> namedArgs) Validate the arguments passed to the functionMethods inherited from class dev.frostlake.functions.TableFunction
getName
-
Constructor Details
-
QueryHistoryFunction
-
-
Method Details
-
validateArgs
Description copied from class:TableFunctionValidate the arguments passed to the function- Specified by:
validateArgsin classTableFunction
-
execute
Description copied from class:TableFunctionExecute the table function with positional arguments. Override this in user-defined table functions.- Overrides:
executein classTableFunction
-
execute
Description copied from class:TableFunctionExecute the table function with named arguments- Specified by:
executein classTableFunction
-