-
Notifications
You must be signed in to change notification settings - Fork 683
Distinguish ambiguous column value of None
#489
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
Merged
sean-k1
merged 18 commits into
julien-duponchelle:main
from
python-mysql-replication-kr:feature/categorize-none-column
Oct 14, 2023
Merged
Changes from 15 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
5c1846c
feat: add category_of_none
heehehe 7d5da67
categorize test when null value
sean-k1 6f5939e
feat: add self.none_sources
mjs1995 a74e3ff
feat: add categorize test when invalid mode
mjs1995 b507673
docs: add binlog_row_image comment in read_values_name
starcat37 c9733f9
refactor: change the name of variables and functions
starcat37 edb5242
refactor: change the name of variables and the string formatting
mikaniz f2f991e
fix: resolve conflict with main branch
heehehe 5107c77
refactor: modify scripts by black
heehehe 26f036c
fix: check when none sources exist
heehehe ab1c5fb
fix: do not add none_sources when column_name is None
heehehe 6a506eb
refactor: get none_sources as variable
heehehe 154bf88
feat: add TestColumnValueNoneSources testcase
heehehe cb37436
Merge branch 'main' of github.com:23-OSSCA-python-mysql-replication/p…
heehehe 4c797a1
feat: inherit PyMySQLReplicationVersion8TestCase in TestColumnValueNo…
heehehe be89cc5
feat: add constants/NONE_SOURCE.py
heehehe f6a8eb4
fix: resolve conflict of f-string
heehehe f1e9df2
fix: remove deprecated test class
heehehe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Maybe it should be a constant this will allow people to code behavior based on that. What do you think?
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.
@julien-duponchelle Thanks for your review!
Do you mean that setting constant like
OUTDATETIME = "out of datetime range"
and set __none_source like below?
self.__none_source[name] = OUTDATETIME
If this is right, I'm going to set constant by enum and set values with that :)
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.
Yes
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.
@julien-duponchelle
I added
pymysqlreplication/constants/NONE_SOURCE.py
and changed
row_event.py
to handle values according to the variables inNONE_SORUCE.py
.Please let me know if there's anything need to change :)