标记列从模式 - Amazon Glue DataBrew
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

标记列从模式

根据现有列中是否存在用户指定的模式创建新列。

Parameters
  • sourceColumn— 现有列的名称。

  • targetColumn— 要创建的新列的名称。

  • flagType— 必须设置为Pattern.

  • pattern— 一个正则表达式,指示要计算的模式。

  • trueString— 新列的值(如果在源中找到空值)。如果未指定值,则默认值为 True

  • falseString— 如果在源中找到非 null 值,则新列的值。如果未指定值,则默认值为 False

例 Example

{ "RecipeAction": { "Operation": "FLAG_COLUMN_FROM_PATTERN", "Parameters": { "falseString": "No", "flagType": "Pattern", "pattern": "N.*", "sourceColumn": "wind_direction", "targetColumn": "northerly", "trueString": "yes" } } }