-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-17119][python] Add Cython support for composite types #11767
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
|
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit f59cc08 (Thu Apr 16 07:05:33 UTC 2020) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. DetailsThe 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 commandsThe @flinkbot bot supports the following commands:
|
f59cc08 to
0f591d4
Compare
| else: | ||
| self._encode_byte(True) | ||
| self._encode_field(value_coder_type, value_type, value_coder, value) | ||
|
|
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.
remove the empty line
| cdef class TimestampCoderImpl(BaseCoder): | ||
| cdef readonly bint is_compact | ||
|
|
||
| cdef class LocalZonedTimestampCoderImpl(BaseCoder): |
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.
inherits TimestampCoderImpl?
| for i in range(self._output_field_count): | ||
| item = value[i] | ||
| if item is not None: | ||
| if self._output_coder_type[i] == SIMPLE: |
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.
use _encode_field?
| self.row[i] = None | ||
| else: | ||
| if self._input_coder_type[i] == SIMPLE: | ||
| self.row[i] = self._decode_field_simple(self._input_field_type[i]) |
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.
use _decode_field
dianfu
left a comment
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.
LGTM.
|
Not sure why the tests have not been triggered by CiBot. The tests have passed in my personal travis: https://travis-ci.org/github/HuangXingBo/flink/builds/675692170 |
|
Thanks. Merging... |
|
Guys, can you please pay attention to test failures? This failed in this PR: https://issues.apache.org/jira/browse/FLINK-17205 I'm reverting this change CC @sunjincheng121 |
|
Thanks @pnowojski |
|
@pnowojski Sorry about this. The CiBot has not been triggered for about 10 hours after pushing a new commit. So just merge the PR when the tests passed in the personal travis. I'll pay more attention to this and will keep an eye on the tests both in travis and azure for the next time. Sorry about this again! |
|
Yes, we have some build queue issues, but that doesn't mean we should be ignoring CI. For couple of PRs that I was merging recently I had to wait before merging them. Also as far as I know there is a way to have a private azure setup similar to travis, maybe that would help in such situations. I'm fine with merging PRs if private azure/travis builds have passed. But not fine if just travis passed - travis is running way fewer tests. |
|
@pnowojski Definitely agree with you. Thanks! |
|
Currently, there is no gcc in azure which makes it impossible to run the cython tests in azure pipelines. I have created a JIRA https://issues.apache.org/jira/browse/FLINK-17212 to disable cython tests until flink-container install gcc. |
What is the purpose of the change
This pull request will support complex DataTypes in Cython
Brief change log
Verifying this change
This change added tests and can be verified as follows:
Does this pull request potentially affect one of the following parts:
@Public(Evolving): (no)Documentation