

 O Amazon Redshift não permitirá mais a criação de UDFs do Python a partir do Patch 198. As UDFs do Python existentes continuarão a funcionar normalmente até 30 de junho de 2026. Para ter mais informações, consulte a [publicação de blog ](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/). 

# Visualização dos estilos de distribuição
<a name="viewing-distribution-styles"></a>

Para exibir o estilo de distribuição de uma tabela, consulte a exibição PG\_CLASS\_INFO ou a exibição SVV\_TABLE\_INFO.

A coluna RELEFFECTIVEDISTSTYLE em PG\_CLASS\_INFO indica o estilo de distribuição atual da tabela. Se a tabela usar distribuição automática, RELEFFECTIVEDISTSTYLE será 10, 11 ou 12, o que indica se o estilo de distribuição efetivo é AUTO (ALL) ou AUTO (EVEN) ou AUTO (KEY). Se a tabela usar distribuição automática, o estilo de distribuição poderá mostrar inicialmente AUTO (ALL) e mudar para AUTO (EVEN) ou AUTO (KEY) quando a tabela crescer. 

A tabela a seguir fornece o estilo de distribuição para cada valor na coluna RELEFFECTIVEDISTSTYLE: 


| RELEFFECTIVEDISTSTYLE | Estilo de distribuição atual | 
| --- | --- | 
| 0 | EVEN | 
| 1 | KEY | 
| 8 | ALL | 
| 10 | AUTO (ALL) | 
| 11 | AUTO (EVEN) | 
| 12 | AUTO (KEY) | 

A coluna DISTSTYLE em SVV\_TABLE\_INFO indica o estilo de distribuição atual da tabela. Se a tabela usar distribuição automática, DISTSTYLE será AUTO (ALL) ou AUTO (EVEN) ou AUTO (KEY).

O exemplo a seguir cria quatro tabelas usando os três estilos de distribuição e distribuição automática e, em seguida, consulta SVV\_TABLE\_INFO para visualizar os estilos de distribuição. 

```
create table public.dist_key (col1 int)
diststyle key distkey (col1);

insert into public.dist_key values (1);

create table public.dist_even (col1 int)
diststyle even;

insert into public.dist_even values (1);

create table public.dist_all (col1 int)
diststyle all;

insert into public.dist_all values (1);

create table public.dist_auto (col1 int);

insert into public.dist_auto values (1);

select "schema", "table", diststyle from SVV_TABLE_INFO
where "table" like 'dist%';

        schema   |    table        | diststyle
     ------------+-----------------+------------
      public     | dist_key        | KEY(col1)
      public     | dist_even       | EVEN
      public     | dist_all        | ALL
      public     | dist_auto       | AUTO(ALL)
```