Skip to content

GH-38483: [C#] Add support for more decimal conversions#38508

Merged
CurtHagenlocher merged 2 commits into
apache:mainfrom
CurtHagenlocher:dev/curth/MoreDecimal
Oct 30, 2023
Merged

GH-38483: [C#] Add support for more decimal conversions#38508
CurtHagenlocher merged 2 commits into
apache:mainfrom
CurtHagenlocher:dev/curth/MoreDecimal

Conversation

@CurtHagenlocher
Copy link
Copy Markdown
Contributor

@CurtHagenlocher CurtHagenlocher commented Oct 30, 2023

What changes are included in this PR?

Adds support for decimal128 <-> string and decimal256 <-> string.
Adds support for decimal256 <-> SqlDecimal.

Are these changes tested?

Yes

Are there any user-facing changes?

APIs have been added to support these conversions.

Adds support for decimal128 <-> string and decimal256 <-> string.
Adds support for decimal256 <-> SqlDecimal.
Comment thread csharp/test/Apache.Arrow.Tests/DecimalUtilityTests.cs
Comment thread csharp/test/Apache.Arrow.Tests/DecimalUtilityTests.cs
@github-actions github-actions Bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Oct 30, 2023
@CurtHagenlocher CurtHagenlocher merged commit 2628d49 into apache:main Oct 30, 2023
@CurtHagenlocher CurtHagenlocher removed the awaiting committer review Awaiting committer review label Oct 30, 2023
@conbench-apache-arrow
Copy link
Copy Markdown

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

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

@CurtHagenlocher CurtHagenlocher deleted the dev/curth/MoreDecimal branch October 30, 2023 16:36
CurtHagenlocher pushed a commit to apache/arrow-adbc that referenced this pull request Oct 31, 2023
This PR:

- Adds support for SqlDecimal for Decimal128 (follow up to
apache/arrow#38481)
- Treats Decimal256 values as string (follow up to
apache/arrow#38508)
- Adds a new DecimalBehavior to the Client to allow the caller to
determine how to treat decimal values
- Standardizes the test frameworks to Xunit

Addresses #1230

---------

Co-authored-by: David Coe <coedavid@umich.edu>
vleslief-ms pushed a commit to vleslief-ms/arrow-adbc that referenced this pull request Nov 9, 2023
This PR:

- Adds support for SqlDecimal for Decimal128 (follow up to
apache/arrow#38481)
- Treats Decimal256 values as string (follow up to
apache/arrow#38508)
- Adds a new DecimalBehavior to the Client to allow the caller to
determine how to treat decimal values
- Standardizes the test frameworks to Xunit

Addresses apache#1230

---------

Co-authored-by: David Coe <coedavid@umich.edu>
loicalleyne pushed a commit to loicalleyne/arrow that referenced this pull request Nov 13, 2023
…#38508)

### What changes are included in this PR?

Adds support for decimal128 <-> string and decimal256 <-> string.
Adds support for decimal256 <-> SqlDecimal.

### Are these changes tested?

Yes

### Are there any user-facing changes?

APIs have been added to support these conversions.
* Closes: apache#38483

Authored-by: Curt Hagenlocher <curt@hagenlocher.org>
Signed-off-by: Curt Hagenlocher <curt@hagenlocher.org>
vleslief-ms pushed a commit to vleslief-ms/arrow-adbc that referenced this pull request Nov 15, 2023
This PR:

- Adds support for SqlDecimal for Decimal128 (follow up to
apache/arrow#38481)
- Treats Decimal256 values as string (follow up to
apache/arrow#38508)
- Adds a new DecimalBehavior to the Client to allow the caller to
determine how to treat decimal values
- Standardizes the test frameworks to Xunit

Addresses apache#1230

---------

Co-authored-by: David Coe <coedavid@umich.edu>
dgreiss pushed a commit to dgreiss/arrow that referenced this pull request Feb 19, 2024
…#38508)

### What changes are included in this PR?

Adds support for decimal128 <-> string and decimal256 <-> string.
Adds support for decimal256 <-> SqlDecimal.

### Are these changes tested?

Yes

### Are there any user-facing changes?

APIs have been added to support these conversions.
* Closes: apache#38483

Authored-by: Curt Hagenlocher <curt@hagenlocher.org>
Signed-off-by: Curt Hagenlocher <curt@hagenlocher.org>
ianmcook pushed a commit to adbc-drivers/bigquery that referenced this pull request Sep 24, 2025
This PR:

- Adds support for SqlDecimal for Decimal128 (follow up to
apache/arrow#38481)
- Treats Decimal256 values as string (follow up to
apache/arrow#38508)
- Adds a new DecimalBehavior to the Client to allow the caller to
determine how to treat decimal values
- Standardizes the test frameworks to Xunit

Addresses apache/arrow-adbc#1230

---------

Co-authored-by: David Coe <coedavid@umich.edu>
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#] Better support for decimal values which exceed the range of the BCL's System.Decimal in Decimal256

2 participants