[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間: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)."]]