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

[FLINK-32977] Deprecate IOReadableWritable serialization in Path #23072

Closed
wants to merge 2 commits into from

Conversation

WencongLiu
Copy link
Contributor

What is the purpose of the change

Deprecate IOReadableWritable serialization in Path.

Brief change log

  • Deprecate IOReadableWritable serialization in Path

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (yes)
  • The serializers: (no)
  • The runtime per-record code paths (performance sensitive): (no)
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
  • The S3 file system connector: (no)

Documentation

  • Does this pull request introduce a new feature? (no)
  • If yes, how is the feature documented? (not applicable)

@flinkbot
Copy link
Collaborator

flinkbot commented Jul 25, 2023

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

Copy link
Contributor

@lsyldliu lsyldliu left a comment

Choose a reason for hiding this comment

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

@WencongLiu Thanks for contribution, LGTM

@WencongLiu WencongLiu changed the title Deprecate IOReadableWritable serialization in Path [FLINK-5336] Deprecate IOReadableWritable serialization in Path Aug 23, 2023
@WencongLiu WencongLiu closed this Aug 23, 2023
@WencongLiu WencongLiu reopened this Aug 23, 2023
* @return the path
* @throws IOException if an error happened.
*/
public static Path deserializeFromDataInputView(DataInputView in) throws IOException {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should deduplicate, by calling deserializeFromDataInputView from read.

throw new IOException("Error reconstructing URI", e);
}
}
return result;
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we return null if isNotNull is false?

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, I wonder if we should forbid null values.

@WencongLiu WencongLiu changed the title [FLINK-5336] Deprecate IOReadableWritable serialization in Path [FLINK-32977] Deprecate IOReadableWritable serialization in Path Aug 28, 2023
Copy link
Contributor

@xintongsong xintongsong left a comment

Choose a reason for hiding this comment

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

LGTM. Merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants