Mr-Nobody-Anonymous commented on code in PR #54691:
URL: https://github.com/apache/arrow/pull/54691#discussion_r4709789006
##########
python/pyarrow/_csv.pyx:
##########
@@ -588,12 +605,20 @@ cdef class ParseOptions(_Weakrefable):
def __getstate__(self):
return (self.delimiter, self.quote_char, self.double_quote,
self.escape_char, self.newlines_in_values,
- self.ignore_empty_lines, self.invalid_row_handler)
+ self.ignore_empty_lines, self.invalid_row_handler,
+ self.pad_short_rows)
def __setstate__(self, state):
- (self.delimiter, self.quote_char, self.double_quote,
- self.escape_char, self.newlines_in_values,
- self.ignore_empty_lines, self.invalid_row_handler) = state
+ if len(state) == 7:
Review Comment:
Thanks @pitrou and @HuaHuaY for clarifying. I have updated
ParseOptions.__setstate__ in commit 7fe1153c37 to unpack all 8 fields directly
(consistent with ReadOptions and ConvertOptions) and removed the legacy
7-element state handling and test. Please let me know if anything else is
needed once CI completes.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]