Categorias:

Funções de contexto (General)

CURRENT_VERSION

Retorna a versão atual do Snowflake.

Consulte também:

CURRENT_CLIENT

Sintaxe

CURRENT_VERSION()

Argumentos

Nenhum.

Retornos

O tipo de dados do valor retornado é VARCHAR.

O valor retornado contém quatro campos:

<major_version>.<minor_version>.<patch_version>  <internal_identifier>
major_version

Major version numbers change annually. For example, the major version for all releases in 2026 is 10. For all releases in 2025, the major version is 9.

minor_version

Os números das versões menores mudam a cada lançamento semanal.

patch_version

Patch version numbers represent minor changes within a weekly release. It can be 1x or 10x based on the Early Adopter release and Weekly release respectively.

internal_identifier

Este campo é apenas para uso interno.

For example, for version 10.15.10, the major version is 10, the minor version is 15, and the patch version is 10. (Early Adopter Release)

For example, for version 10.15.100, the major version is 10, the minor version is 15, and the patch version is 100. (Weekly Release - All accounts)

Notas de uso

  • Esta função retorna informações de número de versão para o Snowflake. Para obter informações sobre as versões de clientes, consulte CURRENT_CLIENT.

Exemplos

Isso mostra a versão do Snowflake na qual a consulta é feita:

SELECT CURRENT_VERSION();

Saída:

+-------------------+
| CURRENT_VERSION() |
|-------------------|
| 10.15.100         |
+-------------------+