JingsongLi opened a new pull request, #465: URL: https://github.com/apache/paimon-rust/pull/465
## Summary Adds a `video_frame(video, frame_index)` SQL UDF to the Python DataFusion binding so callers can extract PNG frames by zero-based frame index while keeping the existing `video_snapshot` timestamp-based behavior. ## Changes - Register video-related SQL UDFs together, including the new `video_frame` built-in. - Reuse shared frame-to-image encoding for timestamp-based and frame-index-based extraction. - Return NULL for NULL inputs, negative frame indices, out-of-range frame indices, still images, non-video inputs, and decode failures. - Extend Python DataFusion tests for built-in registration and frame-index extraction. ## Testing - [x] `cargo fmt --check` - [x] `cargo check -p pypaimon_rust` - [x] `uv run --no-sync pytest tests/test_datafusion.py -k 'video_snapshot or video_frame or video_builtins'` ## Notes `video_frame` uses zero-based frame indices: `video_frame(video, 0)` returns the first decoded video frame. -- 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]
