Skip to content

GH-34620: [C#] Support DateOnly and TimeOnly on .NET 6.0+ - #36125

Merged
westonpace merged 6 commits into
apache:mainfrom
CurtHagenlocher:DateOnly
Jul 19, 2023
Merged

westonpace merged 6 commits into
apache:mainfrom
CurtHagenlocher:DateOnly

Conversation

@CurtHagenlocher

@CurtHagenlocher CurtHagenlocher commented Jun 16, 2023 •

Copy link
Copy Markdown
Contributor

What changes are included in this PR?

Date32Array and Date64Array now support DateOnly values for construction and reading on .NET 6.0 and later.
Time32Array and Time64Array now support TimeOnly values for construction and reading on .NET 6.0 and later.
A new TimeArrayBuilder type is used to share logic between Time32Array.Builder and Time64Array.Builder just as the DateArrayBuilder does for the date array types.

Are these changes tested?

Yes

@github-actions

Copy link
Copy Markdown

⚠️ GitHub issue #34620 has been automatically assigned in GitHub to PR creator.

@github-actions

Copy link
Copy Markdown

⚠️ GitHub issue #34620 has been automatically assigned in GitHub to PR creator.

@westonpace westonpace left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks pretty solid. Just one question about the microsecond/nanosecond tick constants.

@westonpace westonpace left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing the feedback.

@westonpace
westonpace merged commit bebd2bf into apache:main Jul 19, 2023
@CurtHagenlocher
CurtHagenlocher deleted the DateOnly branch July 21, 2023 20:08
@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit bebd2bf.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about possible false positives for unstable benchmarks that are known to sometimes produce them.

loicalleyne pushed a commit to loicalleyne/arrow that referenced this pull request Nov 13, 2023
…he#36125)

### What changes are included in this PR?

Date32Array and Date64Array now support DateOnly values for construction and reading on .NET 6.0 and later.
Time32Array and Time64Array now support TimeOnly values for construction and reading on .NET 6.0 and later.
A new TimeArrayBuilder type is used to share logic between Time32Array.Builder and Time64Array.Builder just as the DateArrayBuilder does for the date array types.

### Are these changes tested?

Yes
* Closes: apache#34620

Authored-by: Curt Hagenlocher <curt@hagenlocher.org>
Signed-off-by: Weston Pace <weston.pace@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[C#] Support encoding DateOnly and TimeOnly values on .NET 6.

2 participants