Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.
ALTER TABLE ADD COLUMNS
Menambahkan satu atau lebih kolom ke tabel Iceberg yang ada.
Sinopsis
ALTER TABLE [
db_name
.]table_name
ADD COLUMNS (col_name
data_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>>)