{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"SDF","colors":{"primary":"#527398","light":"#9FBBDC","dark":"#0C1D37"},"logo":{"light":"https://mintcdn.com/promise-sdf/DO4pvPF5_fwFXGN4/assets/logo/light.svg?fit=max\u0026auto=format\u0026n=DO4pvPF5_fwFXGN4\u0026q=85\u0026s=81b54453175e2919ce43ff83e6a48e25","dark":"https://mintcdn.com/promise-sdf/DO4pvPF5_fwFXGN4/assets/logo/dark.svg?fit=max\u0026auto=format\u0026n=DO4pvPF5_fwFXGN4\u0026q=85\u0026s=4c91a2490a1c65e21cc66f49eba30832"},"favicon":"https://mintcdn.com/promise-sdf/DO4pvPF5_fwFXGN4/assets/favicon.png?fit=max\u0026auto=format\u0026n=DO4pvPF5_fwFXGN4\u0026q=85\u0026s=d96cdef018fc854071000699cbd70ae3","banner":{"content":"SDF is now a part of dbt Labs. Get live CTA previews, inline errors, and mesh support natively in the dbt platform. [Learn more](https://docs.getdbt.com/blog/dbt-fusion-engine?version=2.0) Β· [Migrate to Fusion](https://docs.getdbt.com/guides/prepare-fusion-upgrade?step=7\u0026version=2.0)","dismissible":false},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"promise-sdf","hasAudioNarration":false,"actualSubdomain":"promise-sdf","customDomains":["docs.sdf.com"],"gitSource":{"type":"github","owner":"dbt-labs","repo":"sdf-docs","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"REMOVE_BRANDING":{"status":"DISABLED"}},"buildId":"6ae914f9cd3faed8ded0eb5d:success","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"Reference","count":85},{"language":"default","tag":"SQL Functions","count":75},{"language":"default","tag":"Documentation","count":55},{"language":"default","tag":"Trino Functions","count":28},{"language":"default","tag":"Guides","count":24},{"language":"default","tag":"Bigquery Functions","count":21},{"language":"default","tag":"Snowflake Functions","count":21},{"language":"default","tag":"Integrations","count":20},{"language":"default","tag":"Database","count":14},{"language":"default","tag":"Using SDF","count":12}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"reference/snowflake/context_functions","slug":"/reference/snowflake/context_functions","pageMetadata":{"title":"Context Functions","description":null,"href":"/reference/snowflake/context_functions"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`all_user_names`,children:_jsx(_components.code,{children:`all_user_names`})}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`Supported Signatures`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` all_user_names() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` array`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/all_user_names`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`current_account`,children:_jsx(_components.code,{children:`current_account`})}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`Supported Signatures`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` current_account() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` string`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/current_account`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`current_account_name`,children:_jsx(_components.code,{children:`current_account_name`})}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`Supported Signatures`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` current_account_name() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` string`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/current_account_name`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`current_available_roles`,children:_jsx(_components.code,{children:`current_available_roles`})}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`Supported Signatures`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` current_available_roles() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` string`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/current_available_roles`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`current_client`,children:_jsx(_components.code,{children:`current_client`})}),`\n`,_jsxs(_components.p,{children:[`Returns the current client version.\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` current_client() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` varchar`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/current_client`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`current_database`,children:_jsx(_components.code,{children:`current_database`})}),`\n`,_jsxs(_components.p,{children:[`Returns the current database.\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` current_database() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` varchar`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/current_database`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`current_date`,children:_jsx(_components.code,{children:`current_date`})}),`\n`,_jsxs(_components.p,{children:[`Returns the current date.\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` current_date() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` date`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/current_date`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`current_ip_address`,children:_jsx(_components.code,{children:`current_ip_address`})}),`\n`,_jsxs(_components.p,{children:[`Returns the Client Internet Protocol address (IP address) of the current request.\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` current_ip_address() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` varchar`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/current_ip_address`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`current_organization_name`,children:_jsx(_components.code,{children:`current_organization_name`})}),`\n`,_jsxs(_components.p,{children:[`Returns the name of the organization the current account belongs to.\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` current_organization_name() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` varchar`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/current_organization_name`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`current_region`,children:_jsx(_components.code,{children:`current_region`})}),`\n`,_jsxs(_components.p,{children:[`Returns the current region name.\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` current_region() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` varchar`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/current_region`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`current_role`,children:_jsx(_components.code,{children:`current_role`})}),`\n`,_jsxs(_components.p,{children:[`Returns the currently active role name.\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` current_role() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` varchar`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/current_role`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`current_role_type`,children:_jsx(_components.code,{children:`current_role_type`})}),`\n`,_jsxs(_components.p,{children:[`Returns if the current role is of type account or database\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` current_role_type() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` varchar`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/current_role_type`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`current_schema`,children:_jsx(_components.code,{children:`current_schema`})}),`\n`,_jsxs(_components.p,{children:[`Returns the current schema.\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` current_schema() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` varchar`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/current_schema`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`current_schemas`,children:_jsx(_components.code,{children:`current_schemas`})}),`\n`,_jsxs(_components.p,{children:[`Returns active search path schemas\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` current_schemas() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` varchar`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/current_schemas`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`current_secondary_roles`,children:_jsx(_components.code,{children:`current_secondary_roles`})}),`\n`,_jsxs(_components.p,{children:[`Returns the currently active secondary rolesβ names.\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` current_secondary_roles() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` varchar`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/current_secondary_roles`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`current_session`,children:_jsx(_components.code,{children:`current_session`})}),`\n`,_jsxs(_components.p,{children:[`Returns the current session.\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` current_session() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` varchar`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/current_session`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`current_statement`,children:_jsx(_components.code,{children:`current_statement`})}),`\n`,_jsxs(_components.p,{children:[`Returns the text of the currently executing statement.\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` current_statement() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` varchar`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/current_statement`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`current_time`,children:_jsx(_components.code,{children:`current_time`})}),`\n`,_jsxs(_components.p,{children:[`Returns the current time.\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` current_time`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` time`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` current_time`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`decimal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`38`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` time`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/current_time`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`current_timestamp`,children:_jsx(_components.code,{children:`current_timestamp`})}),`\n`,_jsxs(_components.p,{children:[`Returns the current timestamp.\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` current_timestamp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` timestamp`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` current_timestamp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`decimal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`38`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` timestamp`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/current_timestamp`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`current_transaction`,children:_jsx(_components.code,{children:`current_transaction`})}),`\n`,_jsxs(_components.p,{children:[`Returns the transaction id of an open transaction in the current session or scope.\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` current_transaction() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` decimal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`38`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/current_transaction`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`current_user`,children:_jsx(_components.code,{children:`current_user`})}),`\n`,_jsxs(_components.p,{children:[`Returns the current user name.\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` current_user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` varchar`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/current_user`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`current_version`,children:_jsx(_components.code,{children:`current_version`})}),`\n`,_jsxs(_components.p,{children:[`Returns the current software version (major.minor.patch).\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` current_version() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` varchar`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/current_version`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`current_warehouse`,children:_jsx(_components.code,{children:`current_warehouse`})}),`\n`,_jsxs(_components.p,{children:[`Returns the warehouse currently in use.\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` current_warehouse() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` varchar`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/current_warehouse`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`getdate`,children:_jsx(_components.code,{children:`getdate`})}),`\n`,_jsxs(_components.p,{children:[`Returns the current timestamp\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` getdate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` timestamp`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/getdate`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`getvariable`,children:_jsx(_components.code,{children:`getvariable`})}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`Supported Signatures`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` getvariable(string) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` string`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/getvariable`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`invoker_role`,children:_jsx(_components.code,{children:`invoker_role`})}),`\n`,_jsxs(_components.p,{children:[`Returns the invoker role\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` invoker_role() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` varchar`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/invoker_role`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`invoker_share`,children:_jsx(_components.code,{children:`invoker_share`})}),`\n`,_jsxs(_components.p,{children:[`Returns the invoker role\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` invoker_share() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` varchar`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/invoker_share`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`is_database_role_in_session`,children:_jsx(_components.code,{children:`is_database_role_in_session`})}),`\n`,_jsxs(_components.p,{children:[`Return true if the db role is in current role hierarchy\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` is_database_role_in_session(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`varchar`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` boolean`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/is_database_role_in_session`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`is_granted_to_invoker_role`,children:_jsx(_components.code,{children:`is_granted_to_invoker_role`})}),`\n`,_jsxs(_components.p,{children:[`Returns true if the arg is in invoker_roleβs hierarchy\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` is_granted_to_invoker_role(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`varchar`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` boolean`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/is_granted_to_invoker_role`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`is_role_in_session`,children:_jsx(_components.code,{children:`is_role_in_session`})}),`\n`,_jsxs(_components.p,{children:[`Return true if in current hierarchy\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` is_role_in_session(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`varchar`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` boolean`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/is_role_in_session`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`last_query_id`,children:_jsx(_components.code,{children:`last_query_id`})}),`\n`,_jsxs(_components.p,{children:[`Returns the id of the last executed statement in the current session.\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` last_query_id() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` varchar`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` last_query_id(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`decimal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`38`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` varchar`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/last_query_id`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`last_transaction`,children:_jsx(_components.code,{children:`last_transaction`})}),`\n`,_jsxs(_components.p,{children:[`Returns the transaction id of the last committed or rolled back transaction in the current session.\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` last_transaction() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` decimal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`38`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/last_transaction`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`localtime`,children:_jsx(_components.code,{children:`localtime`})}),`\n`,_jsxs(_components.p,{children:[`Returns the current time.\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` localtime() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` time`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` localtime(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`decimal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`38`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` time`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/localtime`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`localtimestamp`,children:_jsx(_components.code,{children:`localtimestamp`})}),`\n`,_jsxs(_components.p,{children:[`Returns the current timestamp.\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` localtimestamp() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` timestamp`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` localtimestamp(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`decimal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`38`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` timestamp`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/localtimestamp`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`sysdate`,children:_jsx(_components.code,{children:`sysdate`})}),`\n`,_jsxs(_components.p,{children:[`Returns the current timestamp in the UTC time zone\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` sysdate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` timestamp`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/sysdate`,children:`π Official Documentation`})}),`\n`,_jsx(Heading,{level:`2`,id:`systimestamp`,children:_jsx(_components.code,{children:`systimestamp`})}),`\n`,_jsxs(_components.p,{children:[`Returns the current timestamp\n`,_jsx(_components.em,{children:`Supported Signatures`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` systimestamp() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`returns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` timestamp`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.snowflake.com/en/sql-reference/functions/systimestamp`,children:`π Official Documentation`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Context Functions","description":null,"href":"/reference/snowflake/context_functions"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"all_user_names","slug":"all_user_names","depth":2,"children":[]},{"title":"current_account","slug":"current_account","depth":2,"children":[]},{"title":"current_account_name","slug":"current_account_name","depth":2,"children":[]},{"title":"current_available_roles","slug":"current_available_roles","depth":2,"children":[]},{"title":"current_client","slug":"current_client","depth":2,"children":[]},{"title":"current_database","slug":"current_database","depth":2,"children":[]},{"title":"current_date","slug":"current_date","depth":2,"children":[]},{"title":"current_ip_address","slug":"current_ip_address","depth":2,"children":[]},{"title":"current_organization_name","slug":"current_organization_name","depth":2,"children":[]},{"title":"current_region","slug":"current_region","depth":2,"children":[]},{"title":"current_role","slug":"current_role","depth":2,"children":[]},{"title":"current_role_type","slug":"current_role_type","depth":2,"children":[]},{"title":"current_schema","slug":"current_schema","depth":2,"children":[]},{"title":"current_schemas","slug":"current_schemas","depth":2,"children":[]},{"title":"current_secondary_roles","slug":"current_secondary_roles","depth":2,"children":[]},{"title":"current_session","slug":"current_session","depth":2,"children":[]},{"title":"current_statement","slug":"current_statement","depth":2,"children":[]},{"title":"current_time","slug":"current_time","depth":2,"children":[]},{"title":"current_timestamp","slug":"current_timestamp","depth":2,"children":[]},{"title":"current_transaction","slug":"current_transaction","depth":2,"children":[]},{"title":"current_user","slug":"current_user","depth":2,"children":[]},{"title":"current_version","slug":"current_version","depth":2,"children":[]},{"title":"current_warehouse","slug":"current_warehouse","depth":2,"children":[]},{"title":"getdate","slug":"getdate","depth":2,"children":[]},{"title":"getvariable","slug":"getvariable","depth":2,"children":[]},{"title":"invoker_role","slug":"invoker_role","depth":2,"children":[]},{"title":"invoker_share","slug":"invoker_share","depth":2,"children":[]},{"title":"is_database_role_in_session","slug":"is_database_role_in_session","depth":2,"children":[]},{"title":"is_granted_to_invoker_role","slug":"is_granted_to_invoker_role","depth":2,"children":[]},{"title":"is_role_in_session","slug":"is_role_in_session","depth":2,"children":[]},{"title":"last_query_id","slug":"last_query_id","depth":2,"children":[]},{"title":"last_transaction","slug":"last_transaction","depth":2,"children":[]},{"title":"localtime","slug":"localtime","depth":2,"children":[]},{"title":"localtimestamp","slug":"localtimestamp","depth":2,"children":[]},{"title":"sysdate","slug":"sysdate","depth":2,"children":[]},{"title":"systimestamp","slug":"systimestamp","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"promise-sdf","siteName":"SDF","title":"Context Functions - SDF","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-12T15:16:02.750Z","originalFileLocation":"reference/snowflake/context_functions.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"SDF\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/promise-sdf/8sRhP2LknlfvxNPU/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/promise-sdf/8sRhP2LknlfvxNPU/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/promise-sdf/8sRhP2LknlfvxNPU/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/promise-sdf/8sRhP2LknlfvxNPU/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/promise-sdf/8sRhP2LknlfvxNPU/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/promise-sdf/8sRhP2LknlfvxNPU/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/promise-sdf/8sRhP2LknlfvxNPU/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/promise-sdf/8sRhP2LknlfvxNPU/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/promise-sdf/8sRhP2LknlfvxNPU/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Context Functions - SDF\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SDF\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.sdf.com/reference/snowflake/context_functions\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://promise-sdf.mintlify.site/_mintlify/api/og/v2?division=Snowflake+Functions\u0026amp;title=Context+Functions\u0026amp;theme=385eeb9cf6f02860534b7728\u0026amp;signature=c88b31ae8bcc67d2322a61d000ff199ec178ef3cc644790ae9d9914ff2adbdaf\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Context Functions - SDF\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://promise-sdf.mintlify.site/_mintlify/api/og/v2?division=Snowflake+Functions\u0026amp;title=Context+Functions\u0026amp;theme=385eeb9cf6f02860534b7728\u0026amp;signature=c88b31ae8bcc67d2322a61d000ff199ec178ef3cc644790ae9d9914ff2adbdaf\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/promise-sdf/8sRhP2LknlfvxNPU/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SDF\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#527398\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.sdf.com/reference/snowflake/context_functions\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/reference/snowflake/context_functions.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.sdf.com/#organization\",\"name\":\"SDF\",\"url\":\"https://docs.sdf.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/promise-sdf/DO4pvPF5_fwFXGN4/assets/logo/light.svg?fit=max\u0026auto=format\u0026n=DO4pvPF5_fwFXGN4\u0026q=85\u0026s=81b54453175e2919ce43ff83e6a48e25\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.sdf.com#website\",\"name\":\"SDF\",\"url\":\"https://docs.sdf.com\",\"publisher\":{\"@id\":\"https://docs.sdf.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.sdf.com/reference/snowflake/context_functions#webpage\",\"url\":\"https://docs.sdf.com/reference/snowflake/context_functions\",\"name\":\"Context Functions\",\"dateModified\":\"2026-05-12T15:16:02.750Z\",\"isPartOf\":{\"@id\":\"https://docs.sdf.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.sdf.com/reference/snowflake/context_functions#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.sdf.com/reference/snowflake/context_functions#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"SQL Functions\",\"item\":\"https://docs.sdf.com/reference/snowflake/account_usage_table_functions\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Snowflake Functions\",\"item\":\"https://docs.sdf.com/reference/snowflake/account_usage_table_functions\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Context Functions\",\"item\":\"https://docs.sdf.com/reference/snowflake/context_functions\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.sdf.com/reference/snowflake/context_functions#article\",\"headline\":\"Context Functions\",\"name\":\"Context Functions\",\"url\":\"https://docs.sdf.com/reference/snowflake/context_functions\",\"mainEntityOfPage\":{\"@id\":\"https://docs.sdf.com/reference/snowflake/context_functions#webpage\"},\"dateModified\":\"2026-05-12T15:16:02.750Z\",\"publisher\":{\"@id\":\"https://docs.sdf.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.sdf.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"SDF\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"SDF\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/reference/snowflake/context_functions.md","siteName":"SDF","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction/welcome"}]},{"tab":"Database","pages":[{"title":"Database","href":"/database/introduction"}]},{"tab":"Cloud","pages":[{"title":"Cloud","href":"/cloud/introduction"}]},{"tab":"Linter","pages":[{"title":"Linter","href":"/linter/overview"}]},{"tab":"Releases","pages":[{"title":"Releases","href":"/releases/latest"}]},{"tab":"Reference","groups":[{"group":"Reference","pages":[{"title":"SDF CLI Reference","href":"/reference/sdf-cli"},{"title":"SDF YML Schema","href":"/reference/sdf-yml"},{"title":"SDF Information Schema","href":"/reference/sdf-information-schema"},{"title":"Submit a Support Request","href":"/reference/support"},{"title":"SDF Error Codes","href":"/reference/error-codes"}]},{"group":"SQL Functions","pages":[{"group":"Snowflake Functions","pages":[{"title":"Account Usage Table Functions","href":"/reference/snowflake/account_usage_table_functions"},{"title":"Aggregate Functions","href":"/reference/snowflake/aggregate_functions"},{"title":"Bitwise Expression Functions","href":"/reference/snowflake/bitwise_expression_functions"},{"title":"Conditional Expression Functions","description":null,"href":"/reference/snowflake/conditional_expression_functions"},{"title":"Context Functions","href":"/reference/snowflake/context_functions"},{"title":"Conversion Functions","description":null,"href":"/reference/snowflake/conversion_functions"},{"title":"Data Generation Functions","href":"/reference/snowflake/data_generation_functions"},{"title":"Date \u0026 Time Functions","href":"/reference/snowflake/date_and_time_functions"},{"title":"Encryption Functions","href":"/reference/snowflake/encryption_functions"},{"title":"Geospatial Functions","href":"/reference/snowflake/geospatial_functions"},{"title":"Hash Functions","href":"/reference/snowflake/hash_functions"},{"title":"Information Schema","href":"/reference/snowflake/information_schema"},{"title":"Metadata Functions","href":"/reference/snowflake/metadata_functions"},{"title":"Numeric Functions","href":"/reference/snowflake/numeric_functions"},{"title":"Semi-Structured and Structured Data Functions","href":"/reference/snowflake/semi-structured_and_structured_data_functions"},{"title":"String \u0026 Binary Functions","href":"/reference/snowflake/string_and_binary_functions"},{"title":"String Functions","href":"/reference/snowflake/string_functions"},{"title":"System Functions","href":"/reference/snowflake/system_functions"},{"title":"Table Functions","href":"/reference/snowflake/table_functions"},{"title":"Vector Similarity Functions","href":"/reference/snowflake/vector_similarity_functions"},{"title":"Window Functions","href":"/reference/snowflake/window_functions"}]},{"group":"Redshift Functions","pages":[{"title":"Aggregate Functions","href":"/reference/redshift/aggregate_functions"},{"title":"Math Functions","href":"/reference/redshift/math_functions"},{"title":"Other Expressions","href":"/reference/redshift/other_expressions"},{"title":"String Functions","href":"/reference/redshift/string_functions"},{"title":"Temporal Functions","href":"/reference/redshift/temporal_functions"}]},{"group":"Trino Functions","pages":[{"group":"SDF Execution Support","pages":[{"title":"All Supported Functions","href":"/reference/trino/sdf_execution_support/all_functions"}]},{"title":"Aggregate Functions","href":"/reference/trino/aggregate_functions"},{"title":"Array Functions","href":"/reference/trino/array_functions"},{"title":"Binary Functions","href":"/reference/trino/binary_functions"},{"title":"Bitwise Functions","href":"/reference/trino/bitwise_functions"},{"title":"Color Functions","href":"/reference/trino/color_functions"},{"title":"Comparison Functions","href":"/reference/trino/comparison_functions"},{"title":"Conditional Functions","href":"/reference/trino/conditional_functions"},{"title":"Conversion Functions","href":"/reference/trino/conversion_functions"},{"title":"Datetime Functions","href":"/reference/trino/datetime_functions"},{"title":"Geospatial Functions","href":"/reference/trino/geospatial_functions"},{"title":"Hyperloglog Functions","href":"/reference/trino/hyperloglog_functions"},{"title":"Json Functions","href":"/reference/trino/json_functions"},{"title":"Lambda Functions","href":"/reference/trino/lambda_functions"},{"title":"Map Functions","href":"/reference/trino/map_functions"},{"title":"Math Functions","href":"/reference/trino/math_functions"},{"title":"Ml Functions","href":"/reference/trino/ml_functions"},{"title":"Mongodb Functions","href":"/reference/trino/mongodb_functions"},{"title":"Qdigest Functions","href":"/reference/trino/qdigest_functions"},{"title":"Regexp Functions","href":"/reference/trino/regexp_functions"},{"title":"Session Functions","href":"/reference/trino/session_functions"},{"title":"Setdigest Functions","href":"/reference/trino/setdigest_functions"},{"title":"String Functions","href":"/reference/trino/string_functions"},{"title":"T-digest Functions","href":"/reference/trino/t-digest_functions"},{"title":"Teradata Functions","href":"/reference/trino/teradata_functions"},{"title":"Url Functions","href":"/reference/trino/url_functions"},{"title":"Uuid Functions","href":"/reference/trino/uuid_functions"},{"title":"Window Functions","href":"/reference/trino/window_functions"}]},{"group":"Bigquery Functions","pages":[{"title":"Aggregate Functions","href":"/reference/bigquery/aggregate_functions"},{"title":"Math Functions","href":"/reference/bigquery/math_functions"},{"title":"Other Expressions","href":"/reference/bigquery/other_expressions"},{"title":"String Functions","href":"/reference/bigquery/string_functions"},{"title":"Temporal Functions","href":"/reference/bigquery/temporal_functions"},{"title":"Approximate Aggregate Functions","href":"/reference/bigquery/approximate_aggregate_functions"},{"title":"Array Functions","href":"/reference/bigquery/array_functions"},{"title":"Bit Functions","href":"/reference/bigquery/bit_functions"},{"title":"Date Functions","href":"/reference/bigquery/date_functions"},{"title":"Datetime Functions","href":"/reference/bigquery/datetime_functions"},{"title":"Debugging Functions","href":"/reference/bigquery/debugging_functions"},{"title":"Geography Functions","href":"/reference/bigquery/geography_functions"},{"title":"Hash Functions","href":"/reference/bigquery/hash_functions"},{"title":"Interval Functions","href":"/reference/bigquery/interval_functions"},{"title":"JSON Functions","href":"/reference/bigquery/json_functions"},{"title":"Interval Functions","href":"/reference/bigquery/search_functions"},{"title":"Security Functions","href":"/reference/bigquery/security_functions"},{"title":"Statistical Aggregation Functions","href":"/reference/bigquery/statistical_aggregate_functions"},{"title":"Time Functions","href":"/reference/bigquery/time_functions"},{"title":"Timestamp Functions","href":"/reference/bigquery/timestamp_functions"},{"title":"Utility Functions","href":"/reference/bigquery/utility_functions"}]}]}]}]},"basePath":"","title":"Context Functions - SDF","deploymentId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","buildId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","dynamics":["10e4515597"],"chunks":["BannerMarkdown-C4eRUFHa.js","dist-DzZqOeCq.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}