全部產品
Search
文件中心

DataWorks:UpdateTableAddColumn

更新時間:Jul 31, 2026

更新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.

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情