This topic describes the major feature changes and bug fixes in VVR 11.9.0 of Realtime Compute for Apache Flink.
-
This release is being rolled out in phases across the network. For upgrade progress, check the latest announcements in the right pane of the Realtime Compute console. If the described capabilities are not yet available in your account, the grayscale upgrade has not reached your account yet. To expedite the upgrade, submit a ticket with your business requirements, and we will schedule accordingly.
-
This release also provides an engine version based on JDK 17, VVR 11.9-JDK17, which is in public preview. Use it only in development and test environments, and wait for a subsequent stable release before you use it in production.
Overview
VVR 11.9.0 of Realtime Compute for Apache Flink continues to enhance AI multimodal processing, lakehouse and data ingestion, connector security, and asynchronous computing. On the engine side, it improves the PyFlink DataFrame API, AI Function, multimodal model invocation, vector search, and async functions. On the data ingestion side, it extends pipelines for Paimon, video streams, DingTalk and Lark knowledge bases, OSS CDC, MySQL CDC, PostgreSQL CDC, and Kafka Pipeline. On the connector side, it further strengthens KMS credential management, SLS access without AccessKey pairs, and the usability of the JDBC and MySQL connectors.
Engine
PyFlink DataFrame API
-
DataFrame API enhancements: The PyFlink DataFrame API keeps evolving to improve how Python developers build real-time data processing and AI applications.
-
Arrow variable-length tensors: Arrow user-defined functions (UDFs) support custom variable-length tensors and provide a built-in method to convert variable-length tensors into NumPy ndarray objects, which strengthens complex data processing and UDF expressiveness.
-
Async Python UDFs:
mapandmap_batchessupport async Python UDFs, so that you can process entire rows or batches of data with asynchronous logic.
-
PyFlink enhancements
-
Python dependency management: You can upload
requirements.txtas an additional dependency file and configure thepython.requirementsparameter. Dependencies are automatically installed when the job starts, which simplifies dependency management for Python jobs. -
Native Python class UDFs: The
@udfdecorator supports ordinary Python callable classes. You can define the initialization and execution logic of a UDF in the__init__and__call__methods of a custom class, without extending the Flink ScalarFunction class. -
Inline Python functions: Python UDF development is simplified. SQL jobs support inline implementations of Python scalar functions and table-valued functions. YAML jobs support inline implementations of Python scalar functions.
AI Function and model invocation
-
Paimon Blob data read: Blob data in Paimon can be read, which strengthens the connection between multimodal binary objects and lakehouse data.
-
Model reuse: Multimodal Flink CDC can reuse the models configured in Flink SQL AI Model, which removes duplicate configuration and keeps data ingestion and model inference consistent.
-
Batch request optimization: AI Function supports batch request optimization, which increases the throughput of model calls and reduces token consumption.
-
OpenAI-compatible model enhancements: You can use
image_bytes,video_bytes, andvideo_urlas model inference inputs. For video data, you can configure the frame extraction rate in<column_name>.fps. -
Custom model invocation: You can implement custom models by using
PredictFunction. The framework provides the following capabilities.-
Model weight management: In the WITH clause of
CREATE MODEL, declare the model weight file by usingmodel-path. At runtime, the framework downloads the weight file and passes its local path throughload_model. -
GPU scheduling: In the WITH clause of
CREATE MODEL, declare the GPU type and the number of GPUs by usinggpu-typeandgpu-number. To use GPUs in a job, submit a ticket to apply for activation. -
Automatic batching: In
ML_PREDICT, declare the batch size by usingbundle-sizeand the maximum wait time by usingbundle-allow-latency.
-
-
Error handling for model invocation: AI Function supports the
fail_on_erroroutput parameter. If you set it tofalse, any error that occurs during execution is returned as the last column of the output, which prevents frequent job restarts caused by partial errors from increasing token costs and stalling processing. -
FETCH_CONTENTfault tolerance: TheFETCH_CONTENTfunction supports retries and fault tolerance. Exceptional content can be routed to a separate branch or processed individually, which makes content collection more stable.
Vector search and async computing
-
Projection pushdown for vector search: The
vector_searchfunction supports projection pushdown, which reduces unnecessary data reading and transmission in search scenarios. -
Custom timeout handling for async table functions:
AsyncTableFunctionsupports custom timeout handling, which improves controllability in async query scenarios. You can customize the timeout logic when you access an LLM cluster with a custom async dimension table or async table function. -
Unordered output mode for async scalar functions:
AsyncScalarFunctionsupports the unordered output mode for non-CDC streams, which further improves efficiency in scenarios that do not require strict ordering. -
PTF changelog conversion: Process Table Function (PTF) supports
FROM_CHANGELOGandTO_CHANGELOG, enabling conversion between changelog streams and table data in table function processing.
Lakehouse and data ingestion
Streaming lakehouse Paimon
-
Streaming read and write for Paimon chain tables: Paimon chain tables can be read and written in streaming mode with incremental change capture, which extends real-time lakehouse read and write scenarios.
-
Mosaic format support: The DLF Mosaic file format can be read and written, which provides more options for lakehouse data access and storage.
-
Automatic column addition for Paimon sinks: When data is written to a pre-created Paimon table, the sink can automatically add missing columns, which reduces the O&M cost of schema evolution.
Multimodal data ingestion
-
Video stream connector: The RTSP, RTMP, and HLS protocols are supported, so that real-time media sources such as cameras and live streams can be ingested. Native
ffmpegfunctions are provided for efficient preprocessing of audio, video, and images. -
DingTalk knowledge base connector: The new
dingtalk-cdcconnector continuously ingests online documents from DingTalk knowledge bases, together with subsequent additions and updates, into Flink. This applies to retrieval-augmented generation (RAG) applications built on enterprise knowledge. -
Lark knowledge base connector: The new
feishu-cdcconnector continuously ingests online documents from Lark knowledge bases, together with subsequent additions and updates, into Flink, which extends real-time processing of enterprise knowledge.
CDC and data formats
-
Presigned data in OSS CDC: Presigned URLs can be generated for OSS objects, so that downstream pipelines can download objects directly. The processing mechanism based on MNS ordered queues in the incremental phase is also optimized to improve incremental read throughput.
-
MySQL 8.4 and later: Flink CDC supports MySQL 8.4 and later versions, which resolves the
SHOW MASTER STATUScompatibility issue. -
Before-update event handling: Flink CDC can ignore before-update (
-U) events for downstream consumers that only need after-update data. -
Kafka data ingestion optimization: You can select the tables to retain based on table IDs, which makes the scope of CDC data filtering more flexible.
-
Kafka Pipeline table creation events: The way the initial
CREATE TABLEevents are sent is optimized by merging related events, which improves downstream table creation.
Connectors
Security and credential management
-
KMS credentials in JDBC connector: The JDBC connector can read sensitive information such as usernames and passwords from KMS managed credentials, which reduces the risk of plaintext credentials in configurations.
-
KMS dedicated gateway support: The connector framework and the PostgreSQL CDC connector can access credentials through a dedicated KMS gateway, which fits enterprise network and security isolation scenarios.
-
KMS integration in CDC YAML: YAML jobs of PostgreSQL CDC can integrate with KMS to obtain credentials, which simplifies the security configuration of CDC jobs.
-
SLS access without AccessKey pairs: The SLS connector supports access without an AccessKey pair and allows you to use a custom RAM role, which improves cloud access security.
Commonly used connectors
-
MySQL lookup cache optimization: The MySQL dimension table can clear empty results from its cache, which improves the consistency of query results after data changes.
Compatibility and stability improvements
-
Format adaptation, schema evolution, credential management, and exception handling are continuously improved for Paimon, CDC, video streams, and core connectors.
-
Engine capabilities such as async functions, vector search, and content collection are improved to make real-time jobs more controllable and stable.