Skip to content

branch-4.0: [bug](parquet) fix parquet type not handle float16 type #58528 - #58630

Merged
yiguolei merged 1 commit into
branch-4.0from
auto-pick-58528-branch-4.0
Jan 13, 2026
Merged

branch-4.0: [bug](parquet) fix parquet type not handle float16 type #58528#58630
yiguolei merged 1 commit into
branch-4.0from
auto-pick-58528-branch-4.0

Conversation

@github-actions

@github-actionsgithub-actionsBot commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

need this pr: #57959
before merge to other branch

Cherry-picked from #58528

@hello-stephen

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@hello-stephen

Copy link
Copy Markdown
Contributor

run buildall

@zhangstar333
zhangstar333force-pushed the auto-pick-58528-branch-4.0 branch from b727e30 to 2906657CompareJanuary 9, 2026 14:10
@zhangstar333

Copy link
Copy Markdown
Contributor

run buildall

2 similar comments
@zhangstar333

Copy link
Copy Markdown
Contributor

run buildall

@zhangstar333

Copy link
Copy Markdown
Contributor

run buildall

### What problem does this PR solve?
Problem Summary:
before not deal with float16 type, so it's mapping to string type, and
the result is invaild eg:
```
mysql> select * from HDFS("uri" = "hdfs://127.0.0.1:8020/user/doris/tvf_data/test_hdfs_parquet/group0/float16_nonzeros_and_nans.parquet", "hadoop.username" = "doris", "format" = "parquet");
+------+
| x |
+------+
| NULL |
| < |
| � |
| ~ |
| |
| � |
| � |
| @ |
+------+
```
but it's could mapping to float type, eg:
```
mysql> select x from file( "fs.local.support" = "true", "file_path" = "float16_nonzeros_and_nans.parquet", "format" = "parquet",'shared_storage'='true' );
+------+
| x |
+------+
| NULL |
| 1 |
| -2 |
| NaN |
| 0 |
| -1 |
| -0 |
| 2 |
+------+
```
@zhangstar333
zhangstar333force-pushed the auto-pick-58528-branch-4.0 branch from 2906657 to 715178eCompareJanuary 12, 2026 09:18
@zhangstar333

Copy link
Copy Markdown
Contributor

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

BE UT Coverage Report

Increment line coverage 7.84% (4/51) 🎉

Increment coverage report
Complete coverage report

CategoryCoverage
Function Coverage53.41% (18803/35203)
Line Coverage39.21% (174413/444766)
Region Coverage33.92% (134969/397926)
Branch Coverage34.85% (58291/167243)

@yiguolei
yiguolei merged commit 16b404a into branch-4.0Jan 13, 2026
24 of 29 checks passed
@github-actions
github-actionsBot deleted the auto-pick-58528-branch-4.0 branch January 13, 2026 02:11
ybtsdst pushed a commit to ybtsdst/doris that referenced this pull request Feb 27, 2026
…pache#58528 (apache#58630)
need this pr: apache#57959
before merge to other branch
Cherry-picked from apache#58528
Co-authored-by: zhangstar333 <zhangsida@selectdb.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@hello-stephen@zhangstar333@yiguolei@dataroaring