davidradl commented on code in PR #26740:
URL: https://github.com/apache/flink/pull/26740#discussion_r2189451594
##########
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:
Examples for all the cases that this is useful - will help people want to
use it. projection pushdown with shredding sounds interesting.
--
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]