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-13304][FLINK-13322][FLINK-13323][table-runtime-blink] Fix implementation of getString and getBinary method in NestedRow, fix serializer restore in BaseArray/Map serializer and add tests for complex data formats #9139

Closed
wants to merge 3 commits into from

Conversation

tsreaper
Copy link
Contributor

@tsreaper tsreaper commented Jul 17, 2019

What is the purpose of the change

The getString and getBinary methods are not implemented correctly in NestedRow. This PR fixes the implementation and adds test cases for complex data formats.

Also, the config snapshot of BaseArray/Map serializer is not implemented correctly. When user specifies his custom kryo serializer as the element/key/value serializer and later restore the serializers from the snapshot, the element/key/value serializer may change. This PR also fixes this issue.

(This PR ought to be split into 3 PRs... I discover this problem after @wuchong reviewed this, so I'll keep this PR and let @wuchong continues his review. Sorry for the inconvenience caused)

Brief change log

  • Fix implementation of getString and getBinary in NestedRow.
  • Fix serializer restoring in BaseArray/Map serializer.
  • Add tests for complex data formats.

Verifying this change

This change added tests and can be verified as follows: run the newly added unit tests.

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): no
  • The serializers: no
  • The runtime per-record code paths (performance sensitive): no
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: no
  • 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

Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community
to review your pull request. We will use this comment to track the progress of the review.

Review Progress

  • ❓ 1. The [description] looks good.
  • ❓ 2. There is [consensus] that the contribution should go into to Flink.
  • ❓ 3. Needs [attention] from.
  • ❓ 4. The change fits into the overall [architecture].
  • ❓ 5. Overall code [quality] is good.

Please see the Pull Request Review Guide for a full explanation of the review process.


The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commands
The @flinkbot bot supports the following commands:

  • @flinkbot approve description to approve one or more aspects (aspects: description, consensus, architecture and quality)
  • @flinkbot approve all to approve all aspects
  • @flinkbot approve-until architecture to approve everything until architecture
  • @flinkbot attention @username1 [@username2 ..] to require somebody's attention
  • @flinkbot disapprove architecture to remove an approval you gave earlier

@tsreaper tsreaper changed the title [FLINK-13304][table-runtime-blink] Fix implementation of getString and getBinary method in NestedRow [FLINK-13304][table-runtime-blink] Fix implementation of getString and getBinary method in NestedRow and add tests for complex data formats Jul 17, 2019
@flinkbot
Copy link
Collaborator

flinkbot commented Jul 17, 2019

CI report:

@tsreaper
Copy link
Contributor Author

Travis: https://travis-ci.com/TsReaper/flink/builds/119435583

The failed python tests are not related to this PR.

Copy link
Contributor

@JingsongLi JingsongLi left a comment

Choose a reason for hiding this comment

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

Thanks @tsreaper , just left a minor comment.

@tsreaper
Copy link
Contributor Author

@JingsongLi
Copy link
Contributor

LGTM +1

Copy link
Member

@wuchong wuchong left a comment

Choose a reason for hiding this comment

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

Thanks @tsreaper for the effort. Overall looks good to me. I left some comment regarding to the tests. Please also add some comments to the test codes to explain what's the purpose as much as possible.

@tsreaper tsreaper changed the title [FLINK-13304][table-runtime-blink] Fix implementation of getString and getBinary method in NestedRow and add tests for complex data formats [FLINK-13304][FLINK-13322][FLINK-13323][table-runtime-blink] Fix implementation of getString and getBinary method in NestedRow, fix serializer restore in BaseArray/Map serializer and add tests for complex data formats Jul 18, 2019
@tsreaper
Copy link
Contributor Author

Travis: https://travis-ci.com/TsReaper/flink/jobs/217472587

Note that I reverted the modification about flink-mapr-fs in this travis.

@tsreaper
Copy link
Contributor Author

Copy link
Member

@wuchong wuchong left a comment

Choose a reason for hiding this comment

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

Thanks @tsreaper . LGTM.

Could you update the corresponding PR for 1.9?

@wuchong
Copy link
Member

wuchong commented Jul 22, 2019

@wuchong wuchong closed this in e53a85d Jul 22, 2019
@tsreaper tsreaper deleted the nested-row-fix branch July 22, 2019 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants