1996fanrui opened a new pull request, #30129: URL: https://github.com/apache/flink/pull/30129
## What is the purpose of the change Backport of #29297 to release-2.2. ## Verifying this change - `./mvnw install -DskipTests -Dfast -Pskip-webui-build -pl flink-python,flink-dist -am` (JDK 17): `BUILD SUCCESS`, to provide the Flink distribution and test jars the PyFlink tests use. - `python -m pytest pyflink/fn_execution/tests/test_coders.py pyflink/table/tests/test_pandas_conversion.py` in `flink-python` (Python 3.11, JDK 17): `56 passed, 5 skipped, 275 subtests passed`. The fix's tests `ArrowSchemaTests::test_pandas_collection_schema_allows_nested_rows_but_not_nested_ltz`, `test_to_pandas_with_nested_rows`, `test_to_pandas_with_nested_types` and `test_to_pandas_still_rejects_nested_local_zoned_timestamps` (batch and stream variants) all passed. - The fix's tests with only `pyflink/table/table.py` and `pyflink/table/types.py` reverted to release-2.2: `21 failed` subtests, including the Jira's query failing with `ValueError: ROW is not supported to be used as the element type of ArrayType.` - `flake8==7.2.0 --config=tox.ini` on the four changed files: no findings. - `./mvnw -q -pl flink-python spotless:check checkstyle:check`: passed. ## Difference from the original | Original commit | Conflict | Byte-identical | Changes | | --- | --- | --- | --- | | 93e97fd99b9 | No | Yes | None | ## Notes - Cherry-picked from the release-2.3 commit 93e97fd99b9, the full #29297 as adapted to release-2.3 by @dianfu. The master commit c16a788da0e conflicts on release-2.2 in `types.py` and `test_coders.py`; release-2.2 has the same pre-fix test files as release-2.3. - The Jira's fix versions do not list a 2.2.x version yet (2.2.2 is unreleased). The bug is present on release-2.2: `to_arrow_type()` there rejects `ROW` as an array element or row field for non-empty results. - The 5 skips are pre-existing `Compiled coders are not installed` skips in `test_coders.py`, unrelated to this change. ##### Was generative AI tooling used to co-author this PR? - [X] Yes (please specify the tool below) Generated-by: Claude Code (Claude Opus 5.5) 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
