Skip to content

branch-4.0: [fix](outfile)Preserve DateTimeV2 scale in OUTFILE CSV. #64344 - #64713

Open
github-actions[bot] wants to merge 1 commit into
branch-4.0from
auto-pick-64344-branch-4.0
Open

branch-4.0: [fix](outfile)Preserve DateTimeV2 scale in OUTFILE CSV. #64344#64713
github-actions[bot] wants to merge 1 commit into
branch-4.0from
auto-pick-64344-branch-4.0

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Cherry-picked from #64344

@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

@hello-stephen

Copy link
Copy Markdown
Contributor

BE UT Coverage Report

Increment line coverage 100.00% (1/1) 🎉

Increment coverage report
Complete coverage report

CategoryCoverage
Function Coverage53.33% (19458/36483)
Line Coverage36.45% (181865/498930)
Region Coverage33.05% (141340/427594)
Branch Coverage33.91% (61153/180360)

@hello-stephen

Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 100.00% (1/1) 🎉

Increment coverage report
Complete coverage report

CategoryCoverage
Function Coverage71.55% (25554/35714)
Line Coverage54.42% (271022/498056)
Region Coverage52.02% (224671/431912)
Branch Coverage53.44% (96725/180993)

@github-actionsgithub-actionsBot added the approved Indicates a PR has been approved by one committer. label Jun 24, 2026
@github-actions

Copy link
Copy Markdown
ContributorAuthor

PR approved by at least one committer and no changes requested.

@github-actions

Copy link
Copy Markdown
ContributorAuthor

PR approved by anyone and no changes requested.

CSV OUTFILE serialization for DateTimeV2 was using the value-level
default formatter, which emits six fractional digits whenever
microseconds are present. The serializer already carries the declared
DateTimeV2 scale, so pass it through and cover the local OUTFILE CSV
path with a focused Groovy regression.
example : ```
table:
CREATE TABLE test_outfile_datetimev2 (
id INT,
dt3 DATETIMEV2(3) ) ...
data :
1 2026-06-06 15:54:51.442
before outfile : 2026-06-06 15:54:51.442000
after outfile:
2026-06-06 15:54:51.442
```
@morrySnow
morrySnowforce-pushed the auto-pick-64344-branch-4.0 branch from 0e6edbf to e5703e4CompareAugust 31, 2026 07:06
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approvedIndicates a PR has been approved by one committer.reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@hello-stephen@morningman@hubgeter