Amazon Redshift non supporterà più la creazione di nuove UDF Python a partire dal 1º novembre 2025. Se desideri utilizzare le UDF Python, creale prima di tale data. Le UDF Python esistenti continueranno a funzionare normalmente. Per ulteriori informazioni, consulta il post del blog
interval_forbid_composite_literals
Valori (valore predefinito in grassetto)
false, true
Description
Una configurazione di sessione che modifica il valore di un intervallo che contiene entrambe le parti YEAR TO MONTH e DAY TO SECOND.
Se interval_forbid_composite_literals è true, viene restituito un errore se viene rilevato un intervallo con entrambe le parti YEAR TO MONTH e DAY TO SECOND. Ad esempio, il comando SQL seguente contiene INTERVAL DAY TO SECOND con entrambe le parti YEAR TO MONTH e DAY TO SECOND.
SELECT INTERVAL '1 year 1 day' DAY TO SECOND;ERROR: Interval Day To Second literal cannot contain year-month parts. Disable the GUC interval_forbid_composite_literals to suppress this error and silently discard the year-month part.
Se interval_forbid_composite_literals è false, Amazon Redshift elimina un errore e tronca la parte YEAR TO MONTH di un valore INTERVAL DAY TO SECOND. Ad esempio, il comando SQL seguente contiene INTERVAL DAY TO SECOND con entrambe le parti YEAR TO MONTH e DAY TO SECOND.
SET interval_forbid_composite_literals to "false"; SELECT INTERVAL '1 year 1 day' DAY TO SECOND;intervald2s ------------------------------ 1 days 0 hours 0 mins 0.0 secs