[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[[["\u003cp\u003eThis page describes how to join two columns and swap two column names within the Wrangler workspace in Cloud Data Fusion.\u003c/p\u003e\n"],["\u003cp\u003eJoining columns combines the values of two selected columns into a new column, excluding boolean and bytes data types.\u003c/p\u003e\n"],["\u003cp\u003eTo join columns, you select the two columns, choose the "Join two columns" option, specify the order, delimiter, and new column name, then apply the \u003ccode\u003emerge\u003c/code\u003e directive.\u003c/p\u003e\n"],["\u003cp\u003eSwapping column names exchanges the names of two selected columns without altering their values, using the \u003ccode\u003eswap\u003c/code\u003e directive.\u003c/p\u003e\n"],["\u003cp\u003eTo swap columns you select the two columns, then choose the "Swap two column names" option.\u003c/p\u003e\n"]]],[],null,["# Join and swap two columns\n\nThis page explains how to join column values and swap column names when you\nprepare data in the Wrangler workspace of the Cloud Data Fusion Studio.\n\nJoin two columns\n----------------\n\nThe Wrangler workspace supports joining two columns of the same or different\ndata types. The `JOIN` operation's output is stored in a new column containing\nthe joined fields from both columns. Wrangler doesn't support joining columns of\nthe boolean and bytes data types with other columns.\n\nTo join two columns, follow these steps:\n\n1. [Go to Wrangler workspace in Cloud Data Fusion](/data-fusion/docs/concepts/wrangler-overview#navigate-to-wrangler).\n2. On the **Data** tab, select the checkbox by two column names.\n3. Click the arrow_drop_down expander arrow by one of the column names.\n4. Select **Join two columns** , and select an option---for example, **Custom\n selection**.\n5. Choose an order, delimiter, and new column name for the `JOIN` operation's output.\n6. Click **Join**.\n\nWrangler joins the columns and adds the `merge` directive to the recipe. When\nyou run the data pipeline, the transformation is applied to all values in the\ncolumn.\n\nSwap two column names\n---------------------\n\nThe Wrangler workspace supports swapping (or interchanging) two column names.\nOnly the column names interchange, the values in the column rows don't change.\n\nTo swap two column names, follow these steps:\n\n1. [Go to Wrangler workspace in Cloud Data Fusion](/data-fusion/docs/concepts/wrangler-overview#navigate-to-wrangler).\n2. On the **Data** tab, select the checkbox by two column names.\n3. Click the arrow_drop_down expander arrow by one of the column names.\n4. Select **Swap two column names**\n\nWrangler swaps the column names and adds the `swap` directive to the recipe.\n\nWhat's next\n-----------\n\n- Learn more about [Wrangler directives](/data-fusion/docs/concepts/wrangler-overview#apply_directives)."]]