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

fix: skip negative scale checks for creating decimals #722

Closed
wants to merge 2 commits into from

Conversation

kazuyukitanimura
Copy link
Contributor

Which issue does this PR close?

Part of #679 and #670

Rationale for this change

This PR improves the getDecimal performance

What changes are included in this PR?

The new createDecimal method skips the negative scale check

How are these changes tested?

Existing tests

@@ -30,7 +30,7 @@ public class CometDictionary implements AutoCloseable {
private final int numValues;

/** Decoded dictionary values. We only need to copy values for decimal type. */
private ByteArrayWrapper[] binaries;
private volatile ByteArrayWrapper[] binaries;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not directly related but forgot to add based on #705 (comment)

@kazuyukitanimura kazuyukitanimura changed the title Create decimal ix: skip negative scale checks for creating decimals Jul 25, 2024
@kazuyukitanimura kazuyukitanimura changed the title ix: skip negative scale checks for creating decimals fix: skip negative scale checks for creating decimals Jul 25, 2024
@kazuyukitanimura kazuyukitanimura deleted the create-decimal branch July 25, 2024 04:41
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.

1 participant