Skip to content

[flash 855] support add primary key#409

Merged
hanfei1991 merged 17 commits intomasterfrom
hanfei/ddl-add-primary
Feb 8, 2020
Merged

[flash 855] support add primary key#409
hanfei1991 merged 17 commits intomasterfrom
hanfei/ddl-add-primary

Conversation

@hanfei1991
Copy link
Member

add primary key is equal to alter multi columns in tiflash.

@hanfei1991
Copy link
Member Author

/run-integration-tests

@zanmato1984
Copy link
Contributor

How is drop pk handled?

@hanfei1991
Copy link
Member Author

@zanmato1984 drop pk will not change any column properties , so nothing need to do

@hanfei1991
Copy link
Member Author

/rebuild

@hanfei1991
Copy link
Member Author

/run-integration-tests

1 similar comment
@hanfei1991
Copy link
Member Author

/run-integration-tests

@zanmato1984
Copy link
Contributor

Other than test scripts LGTM.

I'll leave test scripts to @lidezhu to review.

for output_line in outputs:
if not output_line.startswith('+'):
parsed_line = MySQLCompare.parse_mysql_line(output_line)
results.add(parsed_line)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the parsed_line is already in the set, this operation doesn't have any effect. You can follow the way in match function.

results = set()
for output_line in outputs:
parsed_line = MySQLCompare.parse_output_line(output_line)
results.add(parsed_line)
Copy link
Contributor

@lidezhu lidezhu Feb 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same as above.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed, PTAL

Copy link
Contributor

@lidezhu lidezhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test scripts LGTM

@hanfei1991
Copy link
Member Author

/run-integration-tests

2 similar comments
@hanfei1991
Copy link
Member Author

/run-integration-tests

@hanfei1991
Copy link
Member Author

/run-integration-tests

@hanfei1991
Copy link
Member Author

/rebuild

@hanfei1991
Copy link
Member Author

/run-integration-tests

@hanfei1991
Copy link
Member Author

/run-integrated-tests

@hanfei1991
Copy link
Member Author

/run-integration-tests

@hanfei1991 hanfei1991 merged commit 30dc43c into master Feb 8, 2020
@hanfei1991 hanfei1991 deleted the hanfei/ddl-add-primary branch February 8, 2020 05:36
yongman added a commit to yongman/tiflash that referenced this pull request Jun 18, 2025
…t_committed observer (pingcap#409)

Signed-off-by: yongman <yming0221@gmail.com>
Signed-off-by: Calvin Neo <calvinneo1995@gmail.com>
Co-authored-by: Ray Yan <yming0221@gmail.com>
Co-authored-by: Calvin Neo <CalvinNeo@users.noreply.github.com>
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