lidavidm commented on code in PR #13820:
URL: https://github.com/apache/arrow/pull/13820#discussion_r941309890


##########
python/pyarrow/_dataset.pyx:
##########
@@ -1278,11 +1301,18 @@ cdef class CsvFragmentScanOptions(FragmentScanOptions):
 
     @property
     def read_options(self):
-        return ReadOptions.wrap(self.csv_options.read_options)
+        read_options = ReadOptions.wrap(self.csv_options.read_options)
+        if self.read_options_py is not None:
+            read_options.encoding = self.read_options_py.encoding
+        return read_options
 
     @read_options.setter
     def read_options(self, ReadOptions read_options not None):
         self.csv_options.read_options = deref(read_options.options)
+        self.read_options_py = read_options
+        if (read_options.encoding != 'utf8'):

Review Comment:
   nit: redundant parens



-- 
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]

Reply via email to