-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Upgrade sqlserver driver to version 12.8.1 #24686
base: master
Are you sure you want to change the base?
Upgrade sqlserver driver to version 12.8.1 #24686
Conversation
pom.xml
Outdated
@@ -1385,7 +1385,7 @@ | |||
<dependency> | |||
<groupId>com.microsoft.sqlserver</groupId> | |||
<artifactId>mssql-jdbc</artifactId> | |||
<version>7.0.0.jre8</version> | |||
<version>8.2.1.jre8</version> |
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.
Can we try to use the latest stable release 12.8.1.jre8?
We will have to upgrade it again to use the jre11+ dependency once the Java Upgrade PR is merged.
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.
My bad, actually i meant for 12.8.1. I will change it
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.
@imjalpreet when are we planning for the java upgrade?
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.
We hope to be running mostly java 17 bytecode by end of H1/beginning of H2. For now, we will be on java 8
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.
@lukmanulhakkeem can you please look into the CI failures?
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.
@ZacBlanco So this driver needs to be updated with the java 17 upgrade right? How can we ensure that? Is there any parent ticket that track all the dependencies for the java 17 upgrade?
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.
@lukmanulhakkeem you might find this helpful - https://github.com/orgs/prestodb/projects/31/views/1
15c74ab
to
22c1bbe
Compare
442f6e1
to
19aa45e
Compare
@imjalpreet ci failures are fixed. could you review it again? |
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.
thank you for the fix, looks good.
Consider if we should add a mention in the SQL Server Connector doc that NTLM is supported. There isn't a mention in the doc of the current absence of NTLM as a limitation. |
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.
@lukmanulhakkeem Thanks for the fix, in addition to what Steve suggested can we also update the documentation to highlight that the default value of encrypt
is true
after the driver upgrade?
@steveburnett @imjalpreet I will update |
This default value is already updated in the documentation by mistake. So I can update only the NTLM auth support ![]() |
Microsoft supports multiple authentication mechanisms, including NTLM, and has provided documentation for each ![]() It would be difficult to include all of them in the Presto documentation. I don't think it’s ideal to document only NTLM authentication while leaving out other popular ones like Kerberos. @imjalpreet @steveburnett Please suggest an approach here |
This way, NTLM is at least in the Presto documentation as a searchable term for people to find if they search for it, and in the context of the SQL Server connector.
Authentication The following authentication methods are supported: If you feel comfortable with doing this third ask in this PR, please do. You don't have to be complete, just list the ones you know to work successfully. The doc can be iterated on and expanded later. If you do not feel comfortable with doing this third ask in this PR, I can open a new issue about adding an Authentication topic to the SQL Server page and the issue can be addressed in a later PR. In that case I would welcome your input as a contributor and reviewer. |
@steveburnett I added authentication properties in brief. Could you please review |
Should I edit any files to add it to the release note? |
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.
Thanks for this! I think this is perfect.
I really appreciate you providing an example of a sample connection URL with the NTLM authentication.
Other authentication method examples can be added in future documentation PRs, and this new Authentication topic gives a place for that new doc to be added.
I would suggest that you link to the new documentation from the release note. I tested this link (linking to a page is easy, linking to a heading within a page is a little trickier) and confirmed that it works in a local doc build.
|
b194ab3
to
d971bd8
Compare
@lukmanulhakkeem I believe we should add a note stating that the default value of |
@imjalpreet Can i add the below note?
|
@lukmanulhakkeem Yes, looks good. @steveburnett can also review it once added. You can use a note similar to the one used in this overview section: https://prestodb.github.io/docs/0.291/connector/druid.html. |
d971bd8
to
7fb09c9
Compare
Updated the doc. |
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.
@lukmanulhakkeem just a small nit, otherwise LGTM, can you please squash your commits too? Thanks.
@@ -62,6 +62,46 @@ A connection string using a truststore would be similar to the following example | |||
|
|||
connection-url=jdbc:sqlserver://<host>:<port>;databaseName=<databaseName>;encrypt=true;trustServerCertificate=false;trustStoreType=PEM;hostNameInCertificate=hostname;trustStore=path/to/truststore.pem;trustStorePassword=password | |||
|
|||
.. note:: |
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.
nit: let's move this to above the current documentation of the encrypt
property.
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.
Above this line:
To disable encryption in the connection string, use the ``encrypt`` property: |
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.
Okay
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.
Done
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.
Done
Could you check this move of text? I'm not seeing it in the current branch.
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.
7fb09c9
to
2354bc0
Compare
Extra space added with the commit. I am fixing |
2354bc0
to
797ebff
Compare
797ebff
to
2b835a0
Compare
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! (docs)
Pull updated branch, new local doc build, looks good.
Thanks @steveburnett |
Description
NTLM authentication is not supported in the current driver. We will get below error if we specify NTLM in the connection URL
integratedSecurity=true;authenticationScheme=NTLM;
We need to upgrade the driver to get this support
Motivation and Context
Impact
Test Plan
Contributor checklist
Release Notes
Please follow release notes guidelines and fill in the release notes below.