Skip to content

Conversation

@morrySnow
Copy link
Contributor

Proposed changes

Issue Number: close #xxx

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@morrySnow morrySnow force-pushed the fix_between_type_coercion branch from 184ada8 to f2ec245 Compare August 24, 2023 07:46
@morrySnow
Copy link
Contributor Author

run buildall

@hello-stephen
Copy link
Contributor

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.8 seconds
stream load tsv: 540 seconds loaded 74807831229 Bytes, about 132 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 66 seconds loaded 1101869774 Bytes, about 15 MB/s
stream load parquet: 30 seconds loaded 861443392 Bytes, about 27 MB/s
insert into select: 29.2 seconds inserted 10000000 Rows, about 342K ops/s
storage size: 17161867736 Bytes

@morrySnow morrySnow force-pushed the fix_between_type_coercion branch from f2ec245 to e258634 Compare August 24, 2023 15:07
@morrySnow morrySnow force-pushed the fix_between_type_coercion branch from e258634 to fbef81b Compare August 24, 2023 15:15
@morrySnow
Copy link
Contributor Author

run buildall

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Aug 25, 2023
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@morrySnow morrySnow merged commit 372f83d into apache:master Aug 25, 2023
@xiaokang xiaokang mentioned this pull request Aug 30, 2023
@morrySnow morrySnow deleted the fix_between_type_coercion branch September 4, 2023 02:44
yujun777 added a commit to yujun777/doris that referenced this pull request Feb 19, 2025
yujun777 added a commit to yujun777/doris that referenced this pull request Feb 19, 2025
yujun777 added a commit to yujun777/doris that referenced this pull request Feb 24, 2025
yujun777 added a commit to yujun777/doris that referenced this pull request Feb 26, 2025
yujun777 added a commit to yujun777/doris that referenced this pull request Feb 28, 2025
yujun777 added a commit to yujun777/doris that referenced this pull request Mar 3, 2025
yujun777 added a commit to yujun777/doris that referenced this pull request Jul 28, 2025
yujun777 added a commit to yujun777/doris that referenced this pull request Jul 29, 2025
yujun777 added a commit to yujun777/doris that referenced this pull request Jul 31, 2025
yujun777 added a commit to yujun777/doris that referenced this pull request Jul 31, 2025
yujun777 added a commit to yujun777/doris that referenced this pull request Jul 31, 2025
924060929 pushed a commit that referenced this pull request Sep 1, 2025
in logical plan builder,  there are bugs with between:
- for sql `a between random() and random()`, since the two unbound
`'random()` are the same, it will rewrite to `a = random()`, but the two
random() should be different after bind expression;
- for sql `random() between 0.1 and 0.5`, it will rewrite to `random()
>= 0.1 and random() <= 0.5`, later when bind expression, the two unbound
random() will generate two different bounded random() function, but the
two random() need to be the same.

so, in logical plan builder, the between shouldn't compare low bound and
upper bound, and should not expand before bind expression.

relate PR:
1) unique function:   #54414 
2) remove between: #23421
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. dev/2.0.1-merged merge_conflict p0_w reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants