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

[Java] Support 256 bit Decimals in JdbcToArrowUtils #39484

Closed
aiguofer opened this issue Jan 5, 2024 · 0 comments · Fixed by #39485
Closed

[Java] Support 256 bit Decimals in JdbcToArrowUtils #39484

aiguofer opened this issue Jan 5, 2024 · 0 comments · Fixed by #39485

Comments

@aiguofer
Copy link
Contributor

aiguofer commented Jan 5, 2024

Describe the enhancement requested

The current implementation breaks when a Decimal column needs 256 bits (32 bytes). For example, BigQuery's BIGNUMERIC. There's already a Decimal256Vector so I believe we'd just need to add a Decimal256Consumer and add the logic for using it in a conversion.

Component(s)

Java

lidavidm pushed a commit that referenced this issue Jan 8, 2024
### Rationale for this change

This PR allows users of `JdbcToArrowUtils` to convert 256 bit decimals.

### What changes are included in this PR?

Add a `Decimal256Consumer` and logic to 

### Are these changes tested?

No, at this point there are no good tests for JDBC consumers.

### Are there any user-facing changes?

Converting 256 bit decimals and ints bigger than 64 bit should now work

* Closes: #39484

Authored-by: Diego Fernandez <aiguo.fernandez@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
@lidavidm lidavidm added this to the 15.0.0 milestone Jan 8, 2024
clayburn pushed a commit to clayburn/arrow that referenced this issue Jan 23, 2024
…pache#39485)

### Rationale for this change

This PR allows users of `JdbcToArrowUtils` to convert 256 bit decimals.

### What changes are included in this PR?

Add a `Decimal256Consumer` and logic to 

### Are these changes tested?

No, at this point there are no good tests for JDBC consumers.

### Are there any user-facing changes?

Converting 256 bit decimals and ints bigger than 64 bit should now work

* Closes: apache#39484

Authored-by: Diego Fernandez <aiguo.fernandez@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
dgreiss pushed a commit to dgreiss/arrow that referenced this issue Feb 19, 2024
…pache#39485)

### Rationale for this change

This PR allows users of `JdbcToArrowUtils` to convert 256 bit decimals.

### What changes are included in this PR?

Add a `Decimal256Consumer` and logic to 

### Are these changes tested?

No, at this point there are no good tests for JDBC consumers.

### Are there any user-facing changes?

Converting 256 bit decimals and ints bigger than 64 bit should now work

* Closes: apache#39484

Authored-by: Diego Fernandez <aiguo.fernandez@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
zanmato1984 pushed a commit to zanmato1984/arrow that referenced this issue Feb 28, 2024
…pache#39485)

### Rationale for this change

This PR allows users of `JdbcToArrowUtils` to convert 256 bit decimals.

### What changes are included in this PR?

Add a `Decimal256Consumer` and logic to 

### Are these changes tested?

No, at this point there are no good tests for JDBC consumers.

### Are there any user-facing changes?

Converting 256 bit decimals and ints bigger than 64 bit should now work

* Closes: apache#39484

Authored-by: Diego Fernandez <aiguo.fernandez@gmail.com>
Signed-off-by: David Li <li.davidm96@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 a pull request may close this issue.

2 participants