westonpace commented on code in PR #13830:
URL: https://github.com/apache/arrow/pull/13830#discussion_r960997009


##########
python/pyarrow/_dataset.pyx:
##########
@@ -1046,6 +1046,32 @@ cdef class FileFragment(Fragment):
             self.partition_expression
         )
 
+    def slice(self, start, end):
+        """
+        Returns a new FileFragment object that will only read 
+        a slice of the old FileFragment defined by start (start byte)
+        and end (end byte).

Review Comment:
   We might want to add something like "Slicing is currently only supported on 
CSV and the start must be at the start of a line and the end must be at the end 
of a line"



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