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

[PECO-1356] Removed protocol check in GO #185

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

nithinkdb
Copy link
Contributor

Customers have reached out in Node and GO about protocol versioning not being correctly reflected by the server. We've decided to revert these changes in Node, this PR does the same for GO.

@@ -112,9 +112,6 @@ func (c *conn) ExecContext(ctx context.Context, query string, args []driver.Name
defer log.Duration(msg, start)

corrId := driverctx.CorrelationIdFromContext(ctx)
if len(args) > 0 && c.session.ServerProtocolVersion < cli_service.TProtocolVersion_SPARK_CLI_SERVICE_PROTOCOL_V8 {
return nil, dbsqlerrint.NewDriverError(ctx, dbsqlerr.ErrParametersNotSupported, nil)

Choose a reason for hiding this comment

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

Should we also remove ErrParametersNotSupported from dbsqlerr?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was considering leaving it in just in case we reintroduce the check at some point.

Signed-off-by: nithinkdb <nithin.krishnamurthi@databricks.com>
@rcypher-databricks rcypher-databricks merged commit ad8bb37 into databricks:main Jan 17, 2024
3 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.

4 participants