Amazon Redshift non supporterà più la creazione di nuovi Python a UDFs partire dal 1° novembre 2025. Se vuoi usare Python UDFs, crea la UDFs data precedente a quella data. Python esistente UDFs continuerà a funzionare normalmente. Per ulteriori informazioni, consulta il post del blog
Le traduzioni sono generate tramite traduzione automatica. In caso di conflitto tra il contenuto di una traduzione e la versione originale in Inglese, quest'ultima prevarrà.
Registrazione di log sicura
Quando Amazon Redshift registra una query che fa riferimento a una o più AWS Glue Data Catalog viste, Amazon Redshift maschera automaticamente i campi in determinate tabelle di sistema e colonne di visualizzazione durante la registrazione dei metadati relativi a tale query.
Il mascheramento sicuro dei log si applica a tutte le voci delle tabelle e delle viste di sistema generate da Amazon Redshift durante l’esecuzione di una query che soddisfa le condizioni di mascheramento. La tabella seguente elenca le viste di sistema e le colonne a cui è applicata la registrazione di log sicura, che maschera il testo con ****** e i numeri con -1. Il numero di asterischi utilizzati per mascherare il testo corrisponde al numero di caratteri del testo originale, per un massimo di sei caratteri. Le stringhe più lunghe di sei caratteri continuano a essere visualizzate con sei asterischi.
| Tabelle di sistema | Colonne sensibili |
|---|---|
| SYS_EXTERNAL_QUERY_DETAIL | Colonne: source_type, total_partitions, qualified_partitions, scanned_files, returned_rows, returned_bytes, file_format, file_location, external_query_text, warning_message. |
| SYS_EXTERNAL_QUERY_ERROR | Colonne: file_location, rowid, column_name, original_value, modified_value, trigger, action, action_value, error_code. |
| SYS_QUERY_DETAIL | Colonne: step_id, step_name, table_id, table_name, input_bytes, input_rows, output_bytes, output_rows, blocks_read, blocks_write, local_read_IO, remote_read_IO, spilled_block_local_disk, spilled_block_remote_disk, step_attribute. |
| SYS_QUERY_HISTORY | Colonne: returned_rows, returned_bytes. |
| STL_AGGR | Colonne: rows, bytes, tbl, type. |
| STL_BCAST | Colonne: rows, bytes, packets. |
| TESTO STL_DDL | Colonne: label, text. |
| STL_DELETE | Colonne: rows, tbl. |
| STL_DIST | Colonne: rows, bytes, packets. |
| ERRORE STL | Colonne: file, linenum, context, error. |
| STL_EXPLAIN | Colonne: plannode, info. |
| STL_FILE_SCAN | Colonne: name, line, bytes. |
| STL_HASH | Colonne: rows, bytes, tbl, est_rows. |
| STL_HASHJOIN | Colonne: rows, tbl, num_parts, join_type. |
| STL_INSERT | Colonne: rows, tbl. |
| STL_LIMIT | Colonne: rows. |
| STL_MERGE | Colonne: rows. |
| STL_MERGEJOIN | Colonne: rows, tbl. |
| STL_NESTLOOP | Colonne: rows, tbl. |
| STL_PARSE | Colonne: rows. |
| STL_PLAN_INFO | Colonne: startupcost, totalcost, rows, bytes. |
| PROGETTO STL | Colonne: rows, tbl. |
| STL_QUERY | Colonne: querytxt. |
| STL_QUERY_METRICS | Colonne: max_rows, rows, max_blocks_read, blocks_read, max_blocks_to_disk, blocks_to_disk, max_query_scan_size, query_scan_size. |
| TESTO STL_QUERY | Colonne: text. |
| STL_RETURN | Colonne: rows, bytes. |
| CLIENT STL_S3 | Colonne: bucket, key, transfer_size, data_size. |
| ERRORE_CLIENT STL_S3 | Colonne: bucket, key, error, transfer_size. |
| STL_SAVE | Colonne: rows, bytes, tbl. |
| STL_SCAN | Colonne: rows, bytes, fetches, type, tbl, rows_pre_filter, rows_pre_user_filter, perm_table_name, scanned_mega_value. |
| STL_SORT | Colonne: rows, bytes, tbl. |
| ERRORE STL_SSHCLIENT | Colonne: ssh_username, endpoint, command, error. |
| STL_TR_CONFLICT | Colonne: table_id. |
| STL_UNDONE | Colonne: table_id. |
| STL_UNIQUE | Colonne: rows, type, bytes. |
| TESTO STL_UTILITYTEXT | Colonne: label, text. |
| FINESTRA_STL | Colonne: rows. |
| STV_BLOCKLIST | Colonne: col, tbl, num_values, minvalue, maxvalue. |
| STV_EXEC_STATE | Colonne: rows, bytes, label. |
| STV_INFLIGHT | Colonne: label, text. |
| STV_LOCKS | Colonne: table_id. |
| STV_QUERY_METRICS | Colonne: rows, max_rows, blocks_read, max_blocks_read, max_blocks_to_disk, blocks_to_disk, max_query_scan_size, query_scan_size. |
| STV_STARTUP_RECOVERY_STATE | Colonne: table_id, table_name. |
| STV_TBL_PERM | Colonne: id, name, rows, sorted_rows, temp, block_count, query_scan_size. |
| STV_TBL_TRANS | Colonne: id, rows, size. |
| SVCS_EXPLAIN | Colonne: plannode, info. |
| SVCS_PLAN_INFO | Colonne: rows, bytes. |
| SVCS_QUERY_SUMMARY | Colonne: step, rows, bytes, rate_row, rate_byte, label, rows_pre_filter. |
| ELENCO SVCS_S3 | Colonne: bucket, prefix, retrieved_files, max_file_size, avg_file_size. |
| SVCS_S3LOG | Colonne: message. |
| RIEPILOGO DELLA PARTIZIONE SVCS_S3 | Colonne: total_partitions, qualified_partitions, min_assigned_partitions, max_assigned_partitions, avg_assigned_partitions. |
| SVCS_S3QUERY_SUMMARY | Colonne: external_table_name, file_format, s3_scanned_rows, s3_scanned_bytes, s3query_returned_rows, s3query_returned_bytes. |
| SVL_QUERY_METRICS | Colonne: step_label, scan_row_count, join_row_count, nested_loop_join_row_count, return_row_count, spectrum_scan_row_count, spectrum_scan_size_mb. |
| SVL_QUERY_METRICS_SUMMARY | Colonne: step_label, scan_row_count, join_row_count, nested_loop_join_row_count, return_row_count, spectrum_scan_row_count, spectrum_scan_size_mb. |
| RAPPORTO SVL_QUERY | Colonne: rows, bytes, label, rows_pre_filter. |
| SVL_QUERY_SUMMARY | Colonne: rows, bytes, rows_pre_filter. |
| ELENCO SVL_S3 | Colonne: bucket, prefix, retrieved_files, max_file_size, avg_file_size. |
| SVL_S3LOG | Colonne: message. |
| PARTIZIONE SVL_S3 | Colonne: rows, bytes, label, rows_pre_filter. |
| RIEPILOGO DELLA PARTIZIONE SVL_S3 | Colonne: total_partitions, qualified_partitions, min_assigned_partitions, max_assigned_partitions, avg_assigned_partitions. |
| INTERROGAZIONE SVL_S3 | Colonne: external_table_name, file_format, s3_scanned_rows, s3_scanned_bytes, s3query_returned_rows, s3query_returned_bytes, files. |
| SVL_S3QUERY_RIEPILOGO | Colonne: external_table_name, file_format, s3_scanned_rows, s3_scanned_bytes, s3query_returned_rows, s3query_returned_bytes. |
| TENTATIVI SVL_S3R | Colonne: file_size, location, message. |
| ERRORE SVL_SPECTRUM_SCAN_ | Colonne: location, rowid, colname, original_value, modified_value, trigger, action, action_value, error_code. |
| TESTO SVL_STATEMENT | Colonne: type, text. |
| SVL_STORED_PROC_CALL | Colonne: querytxt. |
| MESSAGGI_SVL_STORED_PROC | Colonne: message, linenum, querytext. |
| SVL_UDF_LOG | Colonne: message, funcname. |
| SVV_DISKUSAGE | Colonne: name, col, tbl, blocknum, num_values, minvalue, maxvalue. |
| SVV_QUERY_STATE | Colonne: rows, bytes, label. |
| SVV_TABLE_INFO | Colonne: table_id, table. |
| SVV_TRANSACTIONS | Colonne: relation. |
Per ulteriori informazioni sulle tabelle e sulle viste di sistema, consulta la documentazione di riferimento delle tabelle e delle viste di sistema nella Guida per sviluppatori di database di Amazon Redshift. Per informazioni sulla capacità di Amazon Redshift di mascherare dinamicamente i risultati delle query, consulta Mascheramento dinamico dei dati nella Guida per sviluppatori di database di Amazon Redshift. Per informazioni sulla creazione di viste nell'AWS Glue Data Catalogutilizzo di Amazon Redshift, consulta le AWS Glue Data Catalogviste nella Amazon Redshift Database Developer Guide.