Sxnan commented on code in PR #26740:
URL: https://github.com/apache/flink/pull/26740#discussion_r2190058252


##########
docs/content/docs/dev/table/types.md:
##########
@@ -1467,6 +1468,38 @@ DataTypes.DESCRIPTOR()
 {{< /tab >}}
 {{< /tabs >}}
 
+#### `VARIANT`
+
+Data type of semi-structured data.
+
+The type supports storing any semi-structured data, including `ARRAY`, `MAP`, 
and scalar types.
+`VARIANT` can only store `MAP` types with keys of type `STRING`. The data type 
of the fields are 
+stored in the data structure, which is close to the semantics of JSON. 
Compared to `ROW` and 
+`STRUCTURED` type, `VARIANT` type has the flexibility that supports highly 
nested and evolving 
+schema.
+
+**Declaration**
+
+{{< tabs "25c30432-8460-441d-a036-9416d8202882" >}}
+{{< tab "SQL" >}}
+```text
+VARIANT

Review Comment:
   An example is added.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to