MY_BUDGET_SUMMARY

functionsupportedAccounts, users, sessions, warehouses

docs.snowflake.com ↗

Table functions

Returns the calling user’s limits, usage, and current block status for each per-user quota that applies to them in the current account. Any user can call this function. It returns only the calling user’s information, so users can check how much of their per-user limit they’ve used without asking an administrator and without privileges on the quota or on the ACCOUNT_USAGE schema.

Syntax

SNOWFLAKE.LOCAL.MY_BUDGET_SUMMARY()

Returns

The function returns one row for each quota that applies to the calling user and each cycle that has a per-user limit. For example, a quota with daily, weekly, and monthly limits returns three rows. Cycles without a limit don’t return a row. If no quota applies to the calling user, the function returns no rows.

Usage notes

Access control requirements

No privileges are required. Any user can call this function, and it returns only the calling user’s information.

See also