

 Amazon Redshift は、パッチ 198 以降、新しい Python UDF の作成をサポートしなくなります。既存の Python UDF は、2026 年 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-tables-with-missing-statistics"></a>

次のクエリは、統計がないテーブルに対して実行中のクエリの数を示します。このクエリが任意の行を返す場合、`plannode`値を調べて影響を受けるテーブルを特定した後、そのテーブルで [ANALYZE](r_ANALYZE.md) を実行します。

```
select substring(trim(plannode),1,100) as plannode, count(*) 
from stl_explain 
where plannode like '%missing statistics%' 
group by plannode 
order by 2 desc;
```