文档

Dataphin中truncate表报错“ODPS-0130071:[1,16] Semantic analysis exception - partitioned table can not be truncated”

更新时间:
一键部署

概述

本文主要介绍Dataphin中truncate表报错“ODPS-0130071:[1,16] Semantic analysis exception - partitioned table can not be truncated”

详细信息

该报错提示分区表不能被truncate。

需要使用下面语句。

一次删除一个分区。

alter table <table_name> drop [if exists] partition <pt_spec>;

一次删除多个分区。

alter table <table_name> drop [if exists] partition <pt_spec>,partition <pt_spec>[,partition <pt_spec>....];

相关文档

分区操作

适用于

  • Dataphin
  • 说明:本文是基于Dataphin 公共云 2.9.4-3进行验证。
  • 本页导读
文档反馈