View a markdown version of this page

UNNEST_STRUCT - AWS Glue DataBrew開發人員指南

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

UNNEST_STRUCT

將 類型的資料欄取消巢狀化,struct並為結構中存在的每個索引鍵產生資料欄。此函數只會解除巢狀結構層級 1。

Parameters
  • sourceColumn — 現有資料欄的名稱。此欄必須為結構類型。

  • removeSourceColumn — 如果為 true,來源資料欄會在函數完成後刪除。

  • targetColumn — 如果提供,則每個產生的資料欄都會以此字首開頭。

範例範例

{ "RecipeAction": { "Operation": "UNNEST_STRUCT", "Parameters": { "sourceColumn": "address", "removeSourceColumn": "false" "targetColumn": "add" } } }