-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-54629][CONNECT][TEST] Supplement getString with BINARY type (UTF-8) test #53402
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
base: master
Are you sure you want to change the base?
Conversation
…s to imports in SparkConnectJdbcDataTypeSuite
|
#53385 (comment) I create new pull request based on the new commits. |
pan3793
left a comment
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.
LGTM, cc @LuciferYang
This is not mandatory; there are numerous similar cases in the current codebase.
| assert(bytes.sameElements(testBytes2)) | ||
| assert(!rs.wasNull) | ||
|
|
||
| val stringValue = rs.getString("test_binary") |
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.
I think these 3 lines would be fine.
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.
I restore to only leave these three lines.
…s to imports in SparkConnectJdbcDataTypeSuite
LuciferYang
left a comment
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.
+1, LGTM(pending tests)

What changes were proposed in this pull request?
Add getString test coverage for BINARY type with UTF-8 encoding in "get binary type by column label" test
Why are the changes needed?
Test coverage
Does this PR introduce any user-facing change?
No
How was this patch tested?
./build/sbt -Phive "connect-client-jdbc/testOnly *SparkConnectJdbcDataTypeSuite"
[info] Run completed in 26 seconds, 574 milliseconds.
[info] Total number of tests run: 21
[info] Suites: completed 1, aborted 0
[info] Tests: succeeded 21, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.
Was this patch authored or co-authored using generative AI tooling?
No