-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[fix](ip)fix default value for ip #45194
Conversation
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
run buildall |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
run buildall |
PR approved by at least one committer and no changes requested. |
run buildall |
run buildall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR approved by at least one committer and no changes requested. |
before this pr: we do not support create table for IP type with default value like this: ``` mysql> CREATE TABLE table2 -> ( -> col0 BIGINT NOT NULL DEFAULT '1' , -> col24 IPV4 NULL DEFAULT '127.0.0.1' -> ) -> DUPLICATE KEY(col0) -> DISTRIBUTED BY HASH(col0) BUCKETS 4 -> PROPERTIES ( -> "replication_num" = "1" -> ); ERROR 1105 (HY000): errCode = 2, detailMessage = Unsupported type: ipv4 ``` after this pr we deal with this problem
before this pr: we do not support create table for IP type with default value like this: ``` mysql> CREATE TABLE table2 -> ( -> col0 BIGINT NOT NULL DEFAULT '1' , -> col24 IPV4 NULL DEFAULT '127.0.0.1' -> ) -> DUPLICATE KEY(col0) -> DISTRIBUTED BY HASH(col0) BUCKETS 4 -> PROPERTIES ( -> "replication_num" = "1" -> ); ERROR 1105 (HY000): errCode = 2, detailMessage = Unsupported type: ipv4 ``` after this pr we deal with this problem
Cherry-picked from #45194 Co-authored-by: amory <[email protected]>
Cherry-picked from #45194 Co-authored-by: amory <[email protected]>
What problem does this PR solve?
before this pr: we do not support create table for IP type with default value
like this:
after this pr we deal with this problem
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)