

 Amazon Redshift は、2026 年 6 月 30 日以降、Python UDF の使用をサポートしなくなります。これは段階的に実施されます。Python のサポート終了と移行オプションの詳細については、2025 年 6 月 30 日に公開された[ブログ記事](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/)を参照してください。

# ネステッドループにあるクエリの特定
<a name="identify-queries-with-nested-loops"></a>

次のクエリは、ネステッドループに関して記録されたアラートイベントを持つクエリを特定します。ネステッドループ状態を修正する方法については、「[Nested Loop](query-performance-improvement-opportunities.md#nested-loop)」を参照してください。

```
select query, trim(querytxt) as SQL, starttime 
from stl_query 
where query in (
select distinct query 
from stl_alert_event_log 
where event like 'Nested Loop Join in the query plan%') 
order by starttime desc;
```