[Fix][MongoDB] The Long type cannot handle string values in scientific notation#8783
Conversation
author lee <liqifan@cvte.com> 1740121208 +0800 committer lee <liqifan@cvte.com> 1741076125 +0800 parent a3a7b49 author lee <liqifan@cvte.com> 1740121208 +0800 committer lee <liqifan@cvte.com> 1741076105 +0800 [Fix][MongoDB] The Long type cannot handle string values in scientific notation. (apache#8783)
Okay, I've submitted it. |
|
@Hisoka-X Any other questions here? |
| Method method = SamplingSplitStrategy.class.getDeclaredMethod("getDocumentNumAndAvgSize"); | ||
| method.setAccessible(true); | ||
| ImmutablePair<Long, Long> result = (ImmutablePair<Long, Long>) method.invoke(strategy); |
There was a problem hiding this comment.
Try not to use reflection to test your code. Let's set getDocumentNumAndAvgSize scope to default and add @VisibleForTesting annotation. Then you can invoke it in here.
There was a problem hiding this comment.
Thanks for the suggestion, I have modified it to see if there are any other issues. I need to modify the visibility of getDocumentNumAndAvgSize if I use @VisibleForTesting, private doesn't work.
Hisoka-X
left a comment
There was a problem hiding this comment.
LGTM if ci passes. Thanks @qifanlili
author lee <liqifan@cvte.com> 1740121208 +0800 committer lee <liqifan@cvte.com> 1741076125 +0800 parent a3a7b49 author lee <liqifan@cvte.com> 1740121208 +0800 committer lee <liqifan@cvte.com> 1741076105 +0800 [Fix][MongoDB] The Long type cannot handle string values in scientific notation. (apache#8783)
Purpose of this pull request
The purpose is to fix bug: 8775
Does this PR introduce any user-facing change?
How was this patch tested?
Check list
New License Guide
release-note.