Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Halaman ini menjelaskan cara menggabungkan nilai kolom dan menukar nama kolom saat Anda menyiapkan data di ruang kerja Wrangler di Cloud Data Fusion Studio.
Menggabungkan dua kolom
Workspace Wrangler mendukung penggabungan dua kolom dari jenis data yang sama atau berbeda. Output operasi JOIN disimpan dalam kolom baru yang berisi
kolom gabungan dari kedua kolom. Wrangler tidak mendukung penggabungan kolom jenis data boolean dan byte dengan kolom lain.
Untuk menggabungkan dua kolom, ikuti langkah-langkah berikut:
Di tab Data, centang kotak berdasarkan dua nama kolom.
Klik panah peluas
arrow_drop_down
di samping salah satu nama kolom.
Pilih Gabungkan dua kolom, lalu pilih salah satu opsi—misalnya, Custom
selection.
Pilih urutan, pemisah, dan nama kolom baru untuk output operasi JOIN.
Klik Gabung.
Wrangler menggabungkan kolom dan menambahkan perintah merge ke resep. Saat
Anda menjalankan pipeline data, transformasi akan diterapkan ke semua nilai dalam
kolom.
Menukar dua nama kolom
Ruang kerja Wrangler mendukung pertukaran (atau pertukaran) dua nama kolom.
Hanya nama kolom yang dipertukarkan, nilai di baris kolom tidak berubah.
Untuk menukar dua nama kolom, ikuti langkah-langkah berikut:
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-04 UTC."],[[["\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)."]]