You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@paimon.apache.org by lz...@apache.org on 2023/04/23 06:33:02 UTC

[incubator-paimon] branch master updated: [docs] Guiding spark chaning column type (#993)

This is an automated email from the ASF dual-hosted git repository.

lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-paimon.git


The following commit(s) were added to refs/heads/master by this push:
     new 219fa3ad3 [docs] Guiding spark chaning column type (#993)
219fa3ad3 is described below

commit 219fa3ad3e0ff6b5188c2a0bfc2597dddedb706a
Author: GuojunLi <li...@bytedance.com>
AuthorDate: Sun Apr 23 14:32:58 2023 +0800

    [docs] Guiding spark chaning column type (#993)
---
 docs/content/how-to/altering-tables.md | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/docs/content/how-to/altering-tables.md b/docs/content/how-to/altering-tables.md
index 9efc9e112..774dd79df 100644
--- a/docs/content/how-to/altering-tables.md
+++ b/docs/content/how-to/altering-tables.md
@@ -240,3 +240,19 @@ ALTER TABLE my_table ALTER COLUMN col_a AFTER col_b;
 {{< /tab >}}
 
 {{< /tabs >}}
+
+## Changing Column Type
+
+The following SQL changes type of column `col_a` to `DOUBLE`.
+
+{{< tabs "change-column-type" >}}
+
+{{< tab "Spark3" >}}
+
+```sql
+ALTER TABLE my_table ALTER COLUMN col_a TYPE 'DOUBLE';
+```
+
+{{< /tab >}}
+
+{{< /tabs >}}