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

[CBRD-24467] backport for 11.2.2 #3852

Merged
merged 4 commits into from
Oct 12, 2022

Conversation

shparkcubrid
Copy link
Contributor

http://jira.cubrid.org/browse/CBRD-24467

backport for 11.2.2
[CBRD-24467] Sort-limit optimization does not work when host variable is used in limit clause.
[CBRD-24482] Core dump occurs after function index scan
[CBRD-24487] Core dump occurs when query execution is canceled in the middle of inserting dk bucket of FHS
[CBRD-24473] Index scan cannot be used when a stored function is used in a where condition.

… is used in limit clause. (CUBRID#3793)

http://jira.cubrid.org/browse/CBRD-24467

A problem occurred when the XASL header that stores the sort-limit optimization status was not properly fetched.
I fixed it (xqmgr_prepare_query)

A problem occurs because TYPE_INARITH is excluded when checking whether ntopsort(IMS) optimization is possible.
An arithmetic expression was added to the limit clause, but it seems that the related routine has not been modified together.
(qexec_get_orderbynum_upper_bound)
… in a where condition. (CUBRID#3811)

http://jira.cubrid.org/browse/CBRD-24473

I fixed it so that the method is treated as a pseudo constant in qo_analyze_terms().

'col1 = const' <== it is indexable.

There is one more problem. Index scan on correlated columns is not possible due to query rewrite in meth_translate() (check test cases for CBRD-24473.txt). I hope this will be fixed in the future.
http://jira.cubrid.org/browse/CBRD-24482

I revert the case3 of CBRD-23905
I revert case 3 for the following reasons.
- Not much performance improvement. (3%)
- Due to malloc in scan_open_scan(), performance degradation occurs in correlated subquery.
… middle of inserting dk bucket of FHS (CUBRID#3827)

http://jira.cubrid.org/browse/CBRD-24487

Core dump occurs because of free the uninitialized variable.
I fixed it so that bucket_recdes is initialized.

Additionally, by adding the last dk bucket, it is modified so that the entire connected bucket page is not FIXed every time.
@shparkcubrid shparkcubrid self-assigned this Oct 12, 2022
@shparkcubrid shparkcubrid merged commit 2655f26 into CUBRID:release/11.2 Oct 12, 2022
@shparkcubrid shparkcubrid deleted the CBRD-24467_112 branch October 12, 2022 07:31
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