-
Notifications
You must be signed in to change notification settings - Fork 127
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
SNOW-1313648 GO - Verify value bindings for all field types while exceeding CLIENT_STAGE_ARRAY_BINDING_THRESHOLD #1297
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1297 +/- ##
==========================================
- Coverage 82.16% 82.03% -0.14%
==========================================
Files 55 55
Lines 13634 13670 +36
==========================================
+ Hits 11203 11214 +11
- Misses 2431 2456 +25 ☔ View full report in Codecov by Sentry. |
bindings_test.go
Outdated
@@ -1423,3 +1547,11 @@ func testInsertLOBData(t *testing.T, useArrowFormat bool, isLiteral bool) { | |||
dbt.mustExec(unsetFeatureMaxLOBSize) | |||
}) | |||
} | |||
|
|||
func getRandomDate() time.Time { | |||
return time.Date(rand.Intn(1700)+1, time.January, rand.Intn(40), rand.Intn(40), rand.Intn(40), rand.Intn(40), rand.Intn(40), time.UTC) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why date is > 1700? we should test also values below 1582 (julian to gregorian calendar switch)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I reproduced the error, the time shift occurred in the year before 1700/1/1 as far as I remember. However, we can use 1582 in this case. I replaced the value. Thank you!
Description
SNOW-313648 Please explain the changes you made here.
Checklist