HuangXingBo commented on a change in pull request #15063:
URL: https://github.com/apache/flink/pull/15063#discussion_r586043837
##########
File path: flink-python/pyflink/fn_execution/coder_impl_fast.pyx
##########
@@ -700,8 +700,8 @@ cdef class FlattenRowCoderImpl(BaseCoderImpl):
# Row
row_field_coders = (<RowCoderImpl> field_coder).field_coders
row_field_count = len(row_field_coders)
- leading_complete_bytes_num = row_field_count // 8
- remaining_bits_num = row_field_count % 8
+ leading_complete_bytes_num = (row_field_count + ROW_KIND_BIT_SIZE)
// 8
+ remaining_bits_num = (row_field_count + ROW_KIND_BIT_SIZE % 8
Review comment:
```suggestion
remaining_bits_num = (row_field_count + ROW_KIND_BIT_SIZE) % 8
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]