Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.
MENGUBAH TABEL TAMBAHKAN KOLOM
Menambahkan satu atau lebih kolom ke tabel Iceberg yang ada.
Sinopsis
ALTER TABLE [db_name.]table_nameADD COLUMNS (col_namedata_type[,...])
Contoh
Contoh berikut menambahkan comment kolom tipe string ke tabel Iceberg.
ALTER TABLE iceberg_table ADD COLUMNS (comment string)
Contoh berikut menambahkan point kolom tipe struct ke tabel Iceberg.
ALTER TABLE iceberg_table ADD COLUMNS (point struct<x: double, y: double>)
Contoh berikut menambahkan points kolom yang merupakan array struct ke tabel Iceberg.
ALTER TABLE iceberg_table ADD COLUMNS (points array<struct<x: double, y: double>>)