Learn extra at:
With the two.1 launch, Apache Flink additionally now helps Course of Desk Capabilities (PTFs), essentially the most highly effective type of operate for Flink SQL and Desk API, the PMC stated. Conceptually, a PTF is a superset of all different user-defined features, mapping zero, one, or a number of tables to zero, one, or a number of rows. This permits implementing user-defined operators that may be as feature-rich as built-in operations, the PMC stated. PTFs have entry to Flink’s managed state, event-time, desk change logs, and timer companies.
Apache Flink 2.1 additionally provides VARIANT
as an information kind for semi-structured knowledge equivalent to JSON. This new kind helps storing any semi-structured knowledge together with ARRAY
, MAP
(with STRING
keys), and scalar sorts whereas preserving discipline kind data in a JSON-like construction. Not like the ROW
and STRUCTURED
sorts, VARIANT
supplies superior flexibility for dealing with deeply nested and evolving schemas. Customers can use PARSE_JSON
or TRY_PARSE_JSON
to transform JSON-formatted VARCHAR
knowledge to VARIANT
.
Additionally in Apache Flink 2.1: