Uh oh!
There was an error while loading. Please reload this page.
[Feature](datatype) Add IPv4/v6 data type for doris - #24965
Conversation
sjyango
commented
Sep 27, 2023
run buildall |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
doris-robot
commented
Sep 27, 2023
TeamCity be ut coverage result: |
doris-robot
commented
Sep 27, 2023
(From new machine)TeamCity pipeline, clickbench performance test result: |
sjyango
commented
Sep 28, 2023
run p0 |
PR approved by anyone and no changes requested. |
amorynan
commented
Sep 28, 2023
@xiaokang@yiguolei@morrySnow please review this |
morrySnow
commented
Sep 28, 2023
please add rule descriptions for conversions with other types |
Uh oh!
There was an error while loading. Please reload this page.
sjyango
commented
Sep 28, 2023
What is the format of rule descriptions for conversions? Are there any relevant examples? |
In general, there are more work need to do for nereids(at least):
|
PR approved by at least one committer and no changes requested. |
This comment was marked as duplicate.
This comment was marked as duplicate.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
starocean999
left a comment
There was a problem hiding this comment.
In general, there are more work need to do for nereids(at least):
Add literal definition of IPV4 and IPV6 like old planner
modify fe/fe-core/src/main/java/org/apache/doris/nereids/types/DataType.java for IP types
modify fe/fe-core/src/main/java/org/apache/doris/nereids/util/TypeCoercionUtils.java for IP types
add 'set enable_nereids_planner=true' and 'enable_fallback_to_original_planner=false' in groovy regression test cases and verify the result
sjyango
commented
Sep 28, 2023
Thank you for reviewing my code, I will complete this work during the National Day! |
This comment was marked as duplicate.
This comment was marked as duplicate.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
sjyango
commented
Oct 17, 2023
run buildall |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
doris-robot
commented
Oct 17, 2023
TeamCity be ut coverage result: |
doris-robot
commented
Oct 17, 2023
(From new machine)TeamCity pipeline, clickbench performance test result: |
sjyango
commented
Oct 18, 2023
run p0 |
| sql """ SET enable_fallback_to_original_planner=false """ | ||
| sql """ | ||
| CREATE TABLE test_unique_ip_crud ( |
There was a problem hiding this comment.
for dml statement, even 'SET enable_fallback_to_original_planner=false', the nereids will fallback to old planner if meets any error. So to support ipv4 and ipv6 keyword in nereids, we need modiy the g4 grammer files:
src/main/antlr4/org/apache/doris/nereids/DorisLexer.g4
src/main/antlr4/org/apache/doris/nereids/DorisParser.g4
and check visitCreateTable in org/apache/doris/nereids/parser/LogicalPlanBuilder.java works
There was a problem hiding this comment.
checkValueValid is missing in nereids, shoud it be consistent with old planner?
There was a problem hiding this comment.
checkValueValid is missing in nereids, shoud it be consistent with old planner?
sjyango
commented
Oct 26, 2023
run buildall |
doris-robot
commented
Oct 26, 2023
(From new machine)TeamCity pipeline, clickbench performance test result: |
sjyango
commented
Oct 26, 2023
run buildall |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
sjyango
commented
Oct 26, 2023
run clickbench-new |
sjyango
commented
Oct 26, 2023
run p0 |
sjyango
commented
Oct 26, 2023
run p1 |
sjyango
commented
Oct 26, 2023
run p0 |
doris-robot
commented
Oct 26, 2023
(From new machine)TeamCity pipeline, clickbench performance test result: |
Proposed changes
Issue Number: close#21370
Describe your changes
Now We do not support IPv4/v6 data type for doris witch is common data type in database
So it's the time to support it ! We have some basic funnctions for data type to check the data type is supported completly
support CURD
support StreamLoad
support Serde functions
support (implicit/explicit) cast functions. The following cast functions have been implemented:
specific functions for itself data type (u can reference clickhouse or mysql)
make a Performance Test result with clickhouse or ElasticSearch in load this data type
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...