Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[PECO-1117] Allow legacy codepath for parameterized queries to be used.#241

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
nithinkdb wants to merge2 commits intodatabricks:mainfromnithinkdb:PECO-1117

Conversation

@nithinkdb
Copy link
Contributor

We need to allow for parameterized queries to be used in a legacy matter.

"""
ifparametersisNone:
parameters= []
elifself.thrift_backend._use_legacy_parameters:
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we need to add unit tests to cover the behavior. Any new code should have unit tests.

What about an app which can connect to different dbrs (thinking of dbt). This new property can serve as a forcing function but the default behaviors should be allow the client code to continue to function. Would you check the server version and decide to use the server support or the old client support of the server does not support it?
If it is going to be addressed in a separate PR, it's fine.

Copy link
Contributor

Choose a reason for hiding this comment

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

We'll circulate a document internally about this decision. I don't think it should be handled / discussed in the Github code review comments as this isn't great visibility across the team.

Agree that this code should be tested and should not merge without tests.

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
elifself.thrift_backend._use_legacy_parameters:
elifself.thrift_backend._use_inline_params:

I'd propose naming this as obviously unsafe / inline sincelegacy isn't indicative of what the change actuallydoes.

@yunbodeng-db
Copy link
Collaborator

Please sign your DCO. It's easy to do it now before you have more commits later.

Copy link
Contributor

@susodapopsusodapop left a comment

Choose a reason for hiding this comment

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

Don't merge this. We'll circulate a document internally so we can have multiple eyes on the design.

"""
ifparametersisNone:
parameters= []
elifself.thrift_backend._use_legacy_parameters:
Copy link
Contributor

Choose a reason for hiding this comment

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

We'll circulate a document internally about this decision. I don't think it should be handled / discussed in the Github code review comments as this isn't great visibility across the team.

Agree that this code should be tested and should not merge without tests.

"""
ifparametersisNone:
parameters= []
elifself.thrift_backend._use_legacy_parameters:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
elifself.thrift_backend._use_legacy_parameters:
elifself.thrift_backend._use_inline_params:

I'd propose naming this as obviously unsafe / inline sincelegacy isn't indicative of what the change actuallydoes.

@susodapop
Copy link
Contributor

Closing as we implemented this in#267 with tests.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@yunbodeng-dbyunbodeng-dbyunbodeng-db left review comments

@arikfrarikfrAwaiting requested review from arikfr

@andrefurlan-dbandrefurlan-dbAwaiting requested review from andrefurlan-db

+1 more reviewer

@susodapopsusodapopsusodapop requested changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@nithinkdb@yunbodeng-db@susodapop

[8]ページ先頭

©2009-2025 Movatter.jp