JunRuiLee commented on code in PR #428:
URL: https://github.com/apache/paimon-rust/pull/428#discussion_r3505426024
##########
bindings/python/src/read.rs:
##########
@@ -114,6 +155,39 @@ impl PyTableScan {
}
}
+#[pyclass(name = "TableRead", module = "pypaimon_rust.datafusion")]
+pub struct PyTableRead {
+ table: Arc<Table>,
+ projection: Option<Vec<String>>,
+ limit: Option<usize>,
+ filter: Option<Predicate>,
+}
+
+#[pymethods]
+impl PyTableRead {
+ /// Read the given splits into a list of PyArrow RecordBatches.
+ fn read(&self, py: Python<'_>, splits: &Bound<'_, PyAny>) ->
PyResult<Vec<Py<PyAny>>> {
+ let splits = extract_splits(splits)?;
+ if splits.is_empty() {
Review Comment:
Good catch — fixed in 79836ad.
--
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]