-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Improve] Remove deprecated code for MultipleRowTyp #8272
base: dev
Are you sure you want to change the base?
Conversation
ae961f8
to
aa15884
Compare
if (rowType instanceof SeaTunnelRowType) { | ||
size = ((SeaTunnelRow) row).getBytesSize((SeaTunnelRowType) rowType); | ||
} else if (rowType instanceof MultipleRowType) { | ||
size = ((SeaTunnelRow) row).getBytesSize(rowTypeMap.get(tableId)); |
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.
we should use row type to init bytes size, it faster.
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.
unused
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.
SeaTunnelRow will cache the bytes size after init it. It will be used when record metrics in the next stage.
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.
You can use tableSchemas
instead of rowType
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.
fixed
6a4c5e2
to
f80f9d8
Compare
Purpose of this pull request
[Improve] Remove deprecated code for MultipleRowTyp
Does this PR introduce any user-facing change?
No
How was this patch tested?
Check list
New License Guide
release-note
.