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

*: support "add session binding" #10238

Conversation

iamzhoug37
Copy link
Contributor

What problem does this PR solve?

associated iusse: #8935
feature: support add session binding
use case:
create table t(i int, s varchar(20))
create index index_t on t(i,s)
if we want to create a binding for current session, then we execute such SQL:
create session binding for select * from t using select * from t use index for join(index_t)

What is changed and how it works?

Check List

Tests

  • Unit test
  • Integration test

Code changes
N/A

Side effects
N/A

Related changes
N/A

@zhouqiang-cl
Copy link
Contributor

/run-all-tests

func NewBindHandle(parser *parser.Parser) *BindHandle {
handle := &BindHandle{}
handle.Parser = parser
handle.bindInfo.Value.Store(make(cache, 32))
Copy link
Contributor

Choose a reason for hiding this comment

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

What about only allocate it on demand for session handle?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK

@zz-jason zz-jason added the contribution This PR is from a community contributor. label Apr 24, 2019
@iamzhoug37 iamzhoug37 closed this Apr 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution This PR is from a community contributor.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants