Skip to content
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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

hailin0
Copy link
Member

@hailin0 hailin0 commented Dec 11, 2024

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

@hailin0 hailin0 marked this pull request as draft December 11, 2024 16:19
@hailin0 hailin0 force-pushed the dev-remove-MultipleRowTyp branch from ae961f8 to aa15884 Compare December 11, 2024 16:41
@hailin0 hailin0 marked this pull request as ready for review December 18, 2024 02:30
if (rowType instanceof SeaTunnelRowType) {
size = ((SeaTunnelRow) row).getBytesSize((SeaTunnelRowType) rowType);
} else if (rowType instanceof MultipleRowType) {
size = ((SeaTunnelRow) row).getBytesSize(rowTypeMap.get(tableId));
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

unused

Copy link
Member

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.

Copy link
Member Author

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

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

@hailin0 hailin0 force-pushed the dev-remove-MultipleRowTyp branch from 6a4c5e2 to f80f9d8 Compare December 25, 2024 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants