Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(csharp): Add support for SqlDecimal #1241

Merged
merged 13 commits into from
Oct 31, 2023

Conversation

davidhcoe
Copy link
Contributor

This PR:

Addresses #1230

@davidhcoe davidhcoe requested a review from lidavidm as a code owner October 31, 2023 15:54
Copy link

⚠️ Please follow the Conventional Commits format in CONTRIBUTING.md for PR titles.

@lidavidm lidavidm changed the title feat(charp): Add support for SqlDecimal feat(csharp): Add support for SqlDecimal Oct 31, 2023
@@ -331,155 +331,72 @@ public override unsafe UpdateResult ExecuteUpdate()

public override object GetValue(IArrowArray arrowArray, Field field, int index)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any real difference between this and the BigQueryStatement implementaton now? Could a base implementation be moved to AdbcStatement?

if (value == null)
return null;

if(value.GetType() == typeof(SqlDecimal))
Copy link
Contributor

Choose a reason for hiding this comment

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

if (value is SqlDecimal dvalue)
?

@CurtHagenlocher CurtHagenlocher merged commit 2a74e8e into apache:main Oct 31, 2023
2 checks passed
@lidavidm lidavidm added this to the ADBC Libraries 0.8.0 milestone Oct 31, 2023
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>
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>
@davidhcoe davidhcoe deleted the dev/sqldecimal branch April 17, 2024 15:49
Sign up for free to 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.

3 participants