You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by yi...@apache.org on 2022/04/28 05:51:57 UTC

[hudi] branch asf-site updated: [MINOR] Add schema type change matrix for schema evolution doc (#5446)

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

yihua pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/hudi.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 83437abbf6 [MINOR] Add schema type change matrix for schema evolution doc (#5446)
83437abbf6 is described below

commit 83437abbf67ae502edcfab91db9a72938dbccc7d
Author: xiarixiaoyao <me...@qq.com>
AuthorDate: Thu Apr 28 13:51:48 2022 +0800

    [MINOR] Add schema type change matrix for schema evolution doc (#5446)
---
 website/docs/schema_evolution.md | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/website/docs/schema_evolution.md b/website/docs/schema_evolution.md
index 101623147f..4830d8a1d1 100644
--- a/website/docs/schema_evolution.md
+++ b/website/docs/schema_evolution.md
@@ -113,15 +113,15 @@ ALTER TABLE table1 ALTER COLUMN a.b.c DROP NOT NULL
 
 **column type change**
 
-| old_type         | new_type                         |
-|:-----------------|:---------------------------------|
-| int              | long/float/double/string/decimal |
-| long             | double/string/decimal            |
-| float            | double/String/decimal            |
-| double           | string/decimal                   |
-| decimal          | decimal/string                   |
-| string           | decimal/date                     |
-| date             | string                           |
+| Source\Target      | long  | float | double | string | decimal | date | int |
+|--------------------|-------|-------|--------|--------|---------|------|-----|
+| int                |   Y   |   Y   |    Y   |    Y   |    Y    |   N  |  Y  |
+| long               |   Y   |   N   |    Y   |    Y   |    Y    |   N  |  N  |
+| float              |   N   |   Y   |    Y   |    Y   |    Y    |   N  |  N  |
+| double             |   N   |   N   |    Y   |    Y   |    Y    |   N  |  N  |
+| decimal            |   N   |   N   |    N   |    Y   |    Y    |   N  |  N  |
+| string             |   N   |   N   |    N   |    Y   |    Y    |   Y  |  N  |
+| date               |   N   |   N   |    N   |    Y   |    N    |   Y  |  N  |
 
 ### Deleting Columns
 **Syntax**