Skip to content
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

fix(csharp/src/Drivers/Apache/Spark): fix parameter naming convention #1895

Merged
merged 2 commits into from
Jun 3, 2024

Conversation

davidhcoe
Copy link
Contributor

  • Adds the parameter naming convention to match other adbc projects
  • Fixes the UserAgent name

@@ -38,7 +38,7 @@ namespace Apache.Arrow.Adbc.Drivers.Apache.Spark
{
public class SparkConnection : HiveServer2Connection
{
const string UserAgent = "MicrosoftSparkODBCDriver/2.7.6.1014";
private readonly string UserAgent = $"{InfoDriverName.Replace(" ", "")}/{ProductVersionDefault}";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that some servers actually change their behavior based on the reported client version -- Snowflake definitely does this -- so while this change is right in principle it may have consequences in practice.

@CurtHagenlocher CurtHagenlocher merged commit 92cecce into apache:main Jun 3, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants