Write support for nested namespaces in catalog-linked databases
Catalog-linked databases in Snowflake now support creating and writing to tables in nested namespaces.
O que mudou
Catalog-linked databases now allow creating and managing Iceberg tables within nested namespaces in remote catalogs. Snowflake has also added the is_nested column to the SHOW SCHEMAS output to identify hierarchical structures.
Use cases
Imagine you organize your Iceberg tables into parent and child namespaces in an external catalog and need to write data directly to these structures from Snowflake.
- Create schemas pointing to nested namespaces.
- Write and query data in Iceberg tables located in hierarchical namespaces.
- Quickly identify nested namespaces using schema metadata.
How to use
Configure the NAMESPACE_MODE parameter to FLATTEN_NESTED_NAMESPACE and define a valid delimiter in NAMESPACE_FLATTEN_DELIMITER. Then, create the child schema using the flattened name.
CREATE SCHEMA namespace1_namespace1a;
What happens in this code:
- Snowflake interprets the composite name using the configured delimiter.
- A new schema corresponding to the nested namespace is created in the external catalog.
To check if a schema belongs to a nested namespace, run:
SHOW SCHEMAS IN DATABASE my_db;
What happens in this code:
- The command lists the schemas in the catalog-linked database.
- The
is_nestedcolumn returns 'Y' for nested namespaces and 'N' for top-level namespaces.
Limitations and requirements
- The parent namespace must already exist in the remote catalog; Snowflake does not automatically create parent namespaces.
- The
NAMESPACE_FLATTEN_DELIMITERparameter only supports punctuation, symbols, or digits (letters and whitespace are not allowed). - Do not use a period (
.) in the schema name unless a period is explicitly set as the delimiter.
Using it in a pipeline
Useful in the Bronze or Silver layer when integrating Snowflake with external cloud catalogs that rely on hierarchical namespaces to organize Iceberg data.
- snowflake
- iceberg
- catalog-linked databases
- namespaces
- sql
Catalog-linked databases: Write support for nested namespaces
Resumo e explicação gerados por IA a partir da release note oficial. Em caso de dúvida, a documentação oficial da plataforma prevalece.
Relacionadas
- SnowflakeGA
Geração de documentos em PDF, Word e PowerPoint no Snowflake CoWork
O Snowflake CoWork agora gera arquivos PDF, Word, PowerPoint e HTML diretamente de suas análises usando a ferramenta de execução de código do Cortex Agent.
snowflake cowork · cortex agent - SnowflakePublic Preview
Cortex Agent SDK para Python e TypeScript no Snowflake
O Cortex Agent SDK permite criar aplicações que utilizam Cortex Agents e Cortex Code em Python e TypeScript.
cortex agents · python - SnowflakeAtualização
Mensagens de erro mais detalhadas na classificação de dados sensíveis
A view DATA_CLASSIFICATION_LATEST agora traz mensagens de erro específicas e códigos do Snowflake para falhas na classificação.
data governance · trust center