Uh oh!
There was an error while loading. Please reload this page.
[Enhancement](test) Add tests for Python UDF - #60499
Conversation
hello-stephen
commented
Feb 4, 2026
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
c603d9b to
0d0d55eComparelinrrzqqq
commented
Feb 4, 2026
run buildall |
doris-robot
commented
Feb 4, 2026
TPC-H: Total hot run time: 31987 ms |
doris-robot
commented
Feb 4, 2026
ClickBench: Total hot run time: 28.32 s |
0d0d55e to
c9f8249Comparelinrrzqqq
commented
Feb 5, 2026
run buildall |
doris-robot
commented
Feb 5, 2026
TPC-H: Total hot run time: 31022 ms |
doris-robot
commented
Feb 5, 2026
ClickBench: Total hot run time: 28.57 s |
hello-stephen
commented
Feb 5, 2026
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
hello-stephen
commented
Feb 5, 2026
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
1 similar comment
hello-stephen
commented
Feb 5, 2026
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
linrrzqqq
commented
Feb 5, 2026
run cloud_p0 |
hello-stephen
commented
Feb 5, 2026
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
hello-stephen
commented
Feb 5, 2026
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
c9f8249 to
3a1efb2Comparelinrrzqqq
commented
Feb 5, 2026
run buildall |
doris-robot
commented
Feb 5, 2026
TPC-H: Total hot run time: 30958 ms |
doris-robot
commented
Feb 5, 2026
ClickBench: Total hot run time: 28.25 s |
hello-stephen
commented
Feb 5, 2026
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
3a1efb2 to
07824b3Comparelinrrzqqq
commented
Feb 6, 2026
run buildall |
doris-robot
commented
Feb 6, 2026
TPC-H: Total hot run time: 30632 ms |
doris-robot
commented
Feb 6, 2026
ClickBench: Total hot run time: 28.43 s |
hello-stephen
commented
Feb 6, 2026
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
hello-stephen
commented
Feb 6, 2026
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
07824b3 to
fefff94Comparelinrrzqqq
commented
Feb 6, 2026
run buildall |
doris-robot
commented
Feb 6, 2026
TPC-H: Total hot run time: 29931 ms |
doris-robot
commented
Feb 6, 2026
ClickBench: Total hot run time: 28.44 s |
hello-stephen
commented
Feb 6, 2026
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
hello-stephen
commented
Feb 6, 2026
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
Uh oh!
There was an error while loading. Please reload this page.
Some versions of pyarrow do not support directly converting Python's `dict` type to the `arrow Map` type, so we need to manually convert the `dict` type to a `list of tuple` before converting it to `arrow Map` (consistent with the type mapping in `convert_arrow_field_to_python`). ```python def convert_arrow_field_to_python(field, column_metadata=None): if pa.types.is_map(field.type): # pyarrow.lib.MapScalar's as_py() returns a list of tuples, convert to dict list_of_tuples = field.as_py() return dict(list_of_tuples) if list_of_tuples is not None else None ```
Some versions of pyarrow do not support directly converting Python's `dict` type to the `arrow Map` type, so we need to manually convert the `dict` type to a `list of tuple` before converting it to `arrow Map` (consistent with the type mapping in `convert_arrow_field_to_python`). ```python def convert_arrow_field_to_python(field, column_metadata=None): if pa.types.is_map(field.type): # pyarrow.lib.MapScalar's as_py() returns a list of tuples, convert to dict list_of_tuples = field.as_py() return dict(list_of_tuples) if list_of_tuples is not None else None ```
Some versions of pyarrow do not support directly converting Python's `dict` type to the `arrow Map` type, so we need to manually convert the `dict` type to a `list of tuple` before converting it to `arrow Map` (consistent with the type mapping in `convert_arrow_field_to_python`). ```python def convert_arrow_field_to_python(field, column_metadata=None): if pa.types.is_map(field.type): # pyarrow.lib.MapScalar's as_py() returns a list of tuples, convert to dict list_of_tuples = field.as_py() return dict(list_of_tuples) if list_of_tuples is not None else None ```
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Add some test for python udf
Some versions of pyarrow do not support directly converting Python's
dicttype to thearrow Maptype, so we need to manually convert thedicttype to alist of tuplebefore converting it toarrow Map(consistent with the type mapping inconvert_arrow_field_to_python).Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)