UpdateTableAddColumn - 更新表的字段信息

更新时间:
复制 MD 格式

更新MaxCompute表的字段信息。

说明

目前该API接口已标记为弃用。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求参数

名称

类型

必填

描述

示例值

TableGuid

string

MaxCompute 表的唯一标识。格式为 odps.projectName.tableName。

odps.engine_name.table_name

Column

array<object>

字段列表

object

字段对象。

ColumnNameCn

string

字段的中文名称。

中文

ColumnName

string

字段的名称。

abc

Comment

string

字段的备注信息。

Remarks

ColumnType

string

字段的类型,请参见 MaxCompute 支持的字段类型。

string

返回参数

名称

类型

描述

示例值

object

返回对象

RequestId

string

请求 ID。

abc

TaskInfo

object

请求任务的信息。 请求任务提交成功后,会被分为多个子任务有序执行。当前子任务执行成功后,才会继续执行下一个子任务,所有子任务执行完毕,该请求任务结束。如下情况,请求任务会终止,您需要根据错误码信息解决问题后重新发起请求任务:

  • 请求任务提交失败。

  • 请求任务提交成功后,任意子任务执行失败。

Status

string

当前执行的子任务的状态信息。取值如下:

  • operating 表示子任务正在执行中。

  • success 表示子任务执行成功。

  • failure 表示子任务执行失败。详细的报错信息请参见 Content 参数。

success

NextTaskId

string

即将执行的子任务 ID。如果该字段为空,则表示所有子任务均已结束。

abc1

TaskId

string

当前执行的子任务 ID。

abc2

Content

string

当前子任务的执行状态详细信息。具体如下:

  • 执行成功,则显示 success。

  • 执行失败则显示对应的报错详情。

success

示例

正常返回示例

JSON格式

{
  "RequestId": "abc",
  "TaskInfo": {
    "Status": "success",
    "NextTaskId": "abc1",
    "TaskId": "abc2",
    "Content": "success"
  }
}

错误码

HTTP status code

错误码

错误信息

描述

500 InternalError.System An internal system error occurred. Try again later.
500 InternalError.UserId.Missing An internal system error occurred. Try again later.
403 Forbidden.Access Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition. 没有权限,请授权
429 Throttling.Api The request for this resource has exceeded your available limit.
429 Throttling.Api.Risk The request for this resource has exceeded your daily available limit.
429 Throttling.System The DataWorks system is busy. Try again later.
429 Throttling.User Your request is too frequent. Try again later.

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情