-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-27159][SQL]update mssql server dialect to support binary type #24091
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
Conversation
|
What's the difference in SQL Server? I'm just wondering if there are any compatibility problems with older versions, or whether there's an upside to changing the type? |
|
ok to test |
|
Test build #103523 has finished for PR 24091 at commit
|
@srowen This is a bug fix for writing binary data back to MsSql Server. Line 170 in 9ee60a6
|
|
Test build #103527 has finished for PR 24091 at commit
|
|
What is this test that is failing -- something you have added locally? Looks OK though. Indeed BLOB doesn't seem to be supported. |
Yes, I just add a unit test to read/write Mssql Server through jdbc. I have added this test case to MsSql server docker integration test suite in another PR. #24099 |
|
Merged to master |
## What changes were proposed in this pull request? Change the binary type mapping from default blob to varbinary(max) for mssql server. https://docs.microsoft.com/en-us/sql/t-sql/data-types/binary-and-varbinary-transact-sql?view=sql-server-2017  ## How was this patch tested? Unit test. Closes apache#24091 from lipzhu/SPARK-27159. Authored-by: Zhu, Lipeng <[email protected]> Signed-off-by: Sean Owen <[email protected]>
## What changes were proposed in this pull request? Change the binary type mapping from default blob to varbinary(max) for mssql server. https://docs.microsoft.com/en-us/sql/t-sql/data-types/binary-and-varbinary-transact-sql?view=sql-server-2017  ## How was this patch tested? Unit test. Closes #24091 from lipzhu/SPARK-27159. Authored-by: Zhu, Lipeng <[email protected]> Signed-off-by: Sean Owen <[email protected]>
## What changes were proposed in this pull request? Change the binary type mapping from default blob to varbinary(max) for mssql server. https://docs.microsoft.com/en-us/sql/t-sql/data-types/binary-and-varbinary-transact-sql?view=sql-server-2017  ## How was this patch tested? Unit test. Closes apache#24091 from lipzhu/SPARK-27159. Authored-by: Zhu, Lipeng <[email protected]> Signed-off-by: Sean Owen <[email protected]>
## What changes were proposed in this pull request? Change the binary type mapping from default blob to varbinary(max) for mssql server. https://docs.microsoft.com/en-us/sql/t-sql/data-types/binary-and-varbinary-transact-sql?view=sql-server-2017  ## How was this patch tested? Unit test. Closes apache#24091 from lipzhu/SPARK-27159. Authored-by: Zhu, Lipeng <[email protected]> Signed-off-by: Sean Owen <[email protected]>


What changes were proposed in this pull request?
Change the binary type mapping from default blob to varbinary(max) for mssql server.

https://docs.microsoft.com/en-us/sql/t-sql/data-types/binary-and-varbinary-transact-sql?view=sql-server-2017
How was this patch tested?
Unit test.