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

[Feat](Nereids) support fold constant by fe (#40441)(#40772)(#40744)(#40745)(40820) #41837

Merged
merged 7 commits into from
Oct 17, 2024

Conversation

LiBinfeng-01
Copy link
Collaborator

@LiBinfeng-01 LiBinfeng-01 commented Oct 15, 2024

cherry-pick: (#40441)(#40772)(#40744)(#40745)(#40820)

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@LiBinfeng-01
Copy link
Collaborator Author

run buildall

LiBinfeng-01 and others added 5 commits October 16, 2024 10:15
…40441)

support string functions fold constant by fe:
Concat, Substring, Length, Lower, Upper, Trim, Ltrim, Rtrim, Replace,
Left, Right, Locate,
Instr, Ascii, Bin, ConcatWs, CharacterLength, Initcap, Md5, Md5Sum,
Field, FindInSet, Repeat, Reverse, Space, SplitByChar, SplitByString,
SplitPart,
SubstringIndex, Strcmp, StrLeft, StrRight, Overlay, ParseUrl, UrlDecode,
AppendTrailingCharIfAbsent, EndsWith, ExtractUrlParameter, Quote,
ReplaceEmpty, Password
)

change matching of function by notation to matching by inputs datatype
add fold constant on fe of numeric functions:
Coalesce, Round, Ceil, Floor, Exp, Ln, Log, Log10, Log2, Sqrt, Power,
Sin, Cos, Tan, Acos, Asin, Atan, Atan2, Sign, Bin, BitCount, BitLength,
Cbrt, Cosh, Tanh, Dexp, Dlog10, Dlog1, Dpow, Dsqrt, Fmod, Fpow, Radians,
Degrees, Xor, Pi, E, Conv, Truncate, CountEqual, Pmod.

---------

Co-authored-by: libinfeng <libinfeng@selectdb.com>
fix date and time arithmatic of: hours_add, minutes_add, seconds_add,
to_days
@LiBinfeng-01 LiBinfeng-01 changed the title [Feat](Nereids) support string functions fold constant by fe (#40441) [Feat](Nereids) support fold constant by fe (#40441)(#40772)(#40744)(40820) Oct 16, 2024
@LiBinfeng-01
Copy link
Collaborator Author

run buildall

@LiBinfeng-01
Copy link
Collaborator Author

run buildall

@LiBinfeng-01
Copy link
Collaborator Author

run p0

1 similar comment
@LiBinfeng-01
Copy link
Collaborator Author

run p0

@LiBinfeng-01
Copy link
Collaborator Author

run buildall

@LiBinfeng-01 LiBinfeng-01 changed the title [Feat](Nereids) support fold constant by fe (#40441)(#40772)(#40744)(40820) [Feat](Nereids) support fold constant by fe (#40441)(#40772)(#40744)(#40745)(40820) Oct 17, 2024
@LiBinfeng-01
Copy link
Collaborator Author

run p0

@morrySnow morrySnow merged commit 5fe37c0 into apache:branch-2.1 Oct 17, 2024
21 of 22 checks passed
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.

3 participants