-
Notifications
You must be signed in to change notification settings - Fork 3k
Reuse the common methods in serveral RandomData classes. #1102
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
Conversation
|
Hi @rdblue , Mind to take a look ? the next flink patch will depends on this patch (so that we could reuse parts of the random utility methods), thanks. https://github.com/openinx/incubator-iceberg/commit/72cf683656dd993334742f0edc514e0289f543f8 |
| public class RandomUtil { | ||
|
|
||
| private RandomUtil() { | ||
|
|
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.
Nit: no need for a blank line here.
| import org.apache.iceberg.types.Type; | ||
| import org.apache.iceberg.types.Types; | ||
|
|
||
| public class RandomUtil { |
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.
I don't think this class should be in src/main. Can you move it to src/test?
|
Looks good other than the class in the wrong source tree. |
|
Merged. Thanks, @openinx! |
When I try to pull request the flink parquet reader & writer (#1096), I scanned the unit test and found that the RandomData was copied and pasted in several unit test files. So I made this pull request to put it into the utility class and let the unit test files share it.