[CBRD-26443] [Regression] Server restart repeatedly when querying partitioned table with functions requiring val_descr #6769
+0
−11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
http://jira.cubrid.org/browse/CBRD-26443
#6727
Purpose
#6727 에서 val_descr을 필요로 하는 함수는 파티션 키로 사용할 수 없도록 제한하였습니다.
rand/random 함수는 인자가 NULL인 경우에만 val_descr을 필요로 합니다.
INSERT 시점에 주어진 인자가 NULL인지는 CREATE TABLE 시점에서는 알 수 없기 때문에,
CREATE TABLE 시점에 rand/random 함수의 인자가 NULL이 아니더라도 파티션 키로 사용할 수 없도록 제한합니다.
Implementation
create table 시점에 rand/random 함수의 인자가 NULL 이 아니더라도 파티션 키로 사용할 수 없도록 제한합니다.
Remarks
N/A