-
Notifications
You must be signed in to change notification settings - Fork 173
feat(csharp/src/Drivers/Apache/Spark): add user agent entry + thrift version for spark http connections #2711
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
feat(csharp/src/Drivers/Apache/Spark): add user agent entry + thrift version for spark http connections #2711
Conversation
|
Let's also try to add ThriftClient information to userAgent, e.g. https://src.dev.databricks.com/databricks/databricks-jdbc@ee2828dced23bd42c65ba5658b2b266891dbef6a/-/blob/src/main/java/com/databricks/jdbc/api/impl/DatabricksConnectionContext.java?L320 |
35dc2a4 to
0f70d05
Compare
9c6119b to
b1bb50d
Compare
CurtHagenlocher
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.
Thanks! Can you mollify the linter by adding a final newline to the added test file and removing the trailing spaces from the others?
| string userAgent = GetUserAgentFromConnection(properties); | ||
|
|
||
| // Assert | ||
| Assert.Matches(@"ADBCSparkDriver/[\d\.]+ Thrift(/[\d\.]+)?", userAgent); |
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.
There are also trailing spaces somewhere around here.
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 they're fixed now? Thanks for giving me the headsup
4b658df to
e846be3
Compare
CurtHagenlocher
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.
Thanks!
…version for spark http connections (apache#2711) Enables user agent entry to be passed via SparkParameters, such as "user_agent_entry = PowerBi". Also adds Thrift version to user agent header Verified in Databricks HTTP Logs for the user agent: ADBCSparkDriver/1.0.0 Thrift/0.21.0 PowerBI
Enables user agent entry to be passed via SparkParameters, such as "user_agent_entry = PowerBi".
Also adds Thrift version to user agent header
Verified in Databricks HTTP Logs for the user agent:
ADBCSparkDriver/1.0.0 Thrift/0.21.0 PowerBI