Skip to content

[Bug]: No error is reported when modifying one of the columns in the composite primary key column. #11247

Closed

Description

@Ariznawlll

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Environment

- Version or commit-id (e.g. v0.1.0 or 8b23a93):b0002bfac60998670ed15b164f51e44ada872697
- Hardware parameters:
- OS type:
- Others:

Actual Behavior

image

Expected Behavior

image

Steps to Reproduce

drop table if exists primary07;
create table primary07(col1 int ,col2 float, col3 decimal, primary key (col1, col2));
insert into primary07 values (1, 213412.32143, 3214312.34243214242);
insert into primary07 values (2, -324.2342432423, -1243.42334234242);
alter table primary07 modify col1 double default null;
alter table primary07 modify col2 decimal(28,10);
show create table primary07;
drop table primary07;

Additional information

No response

Activity

  1. added
    kind/bug
    severity/s0
    on Aug 16, 2023
  2. added this to the 1.0.0 milestone on Aug 16, 2023
  3. aronchanisme commented on Aug 16, 2023

    @aronchanisme
    Contributor

    Verifiing if any column of a compisite primary key cannot be defined as null value from MO product feature desgin's perspective.

  4. aronchanisme commented on Aug 16, 2023

    @aronchanisme
    Contributor

    Verifiing if any column of a compisite primary key cannot be defined as null value from MO product feature desgin's perspective.

    Confirmed with product manager that no column of a composite key can be defined as null. Docs will add more illustration here.
    https://docs.matrixorigin.cn/0.8.0/MatrixOne/Develop/schema-design/data-integrity/primary-key-constraints/#_2

    Thus, this issue seems to be a bug. The expected behavior should throw an error indicating the above message. @qingxinhome Please kindly help take a look, thanks.

  5. lacrimosaprinz commented on Aug 18, 2023

    @lacrimosaprinz
    Contributor

    doc added more information:matrixorigin/matrixorigin.io.cn#656

  6. qingxinhome commented on Aug 18, 2023

    @qingxinhome
    Contributor

    The issue has been resolved, please verify and test @Ariznawlll @daviszhen @lacrimosaprinz

  7. Ariznawlll commented on Aug 18, 2023

    @Ariznawlll
    CollaboratorAuthor
    image

    Verified!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s0

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions