Skip to content

Conversation

@holicc
Copy link
Collaborator

@holicc holicc commented May 15, 2025

longshan.lu and others added 4 commits May 15, 2025 19:04
… Postgres transport mappings

- Implemented ArrowAssoc for Decimal and Option<Decimal> with appropriate builders and append methods.
- Added Decimal128 support in the ArrowTypeSystem.
- Updated PostgresArrowTransport to convert Numeric types to Decimal128.
- Enhanced tests for Decimal128 handling in Arrow and Postgres integration.
- Changed the conversion of Numeric types from Float64 to Decimal in Postgres transport mappings.
- Simplified the TypeConversion implementation for Decimal to return Decimal directly.
…ansport

- Updated the conversion mappings for Numeric types to use 'conversion auto' instead of 'conversion option'.
- Removed redundant TypeConversion implementations for Decimal and Vec<Option<Decimal> as they were unnecessary.
@wangxiaoying
Copy link
Contributor

Hi @holicc , thanks for the PR!

The code looks good to me. I made some simple changes to fix the CI errors. I also left a few comments on some minor issues.

…egration

- Added DEFAULT_ARROW_DECIMAL_PRECISION, DEFAULT_ARROW_DECIMAL_SCALE, and DEFAULT_ARROW_DECIMAL constants to support Decimal128 in Arrow.
- Updated imports in arrow_assoc modules to utilize the new constants.
- Removed redundant constant definitions from arrow_assoc implementations.
@holicc
Copy link
Collaborator Author

holicc commented May 21, 2025

Thank you for taking the time to review the code. I have addressed the issues you pointed out. :)

@wangxiaoying wangxiaoying merged commit dd45a24 into sfu-db:main May 21, 2025
2 checks passed
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.

2 participants