kylebarron commented on code in PR #6320:
URL: https://github.com/apache/arrow-rs/pull/6320#discussion_r1735178851


##########
arrow-pyarrow-integration-testing/tests/test_sql.py:
##########
@@ -476,6 +476,35 @@ def test_tensor_array():
 
     del b
 
+
+def test_empty_recordbatch_with_row_count():
+    """
+    The result of a `count` on a dataset is a RecordBatch with no columns but 
with `num_rows` set
+    """
+
+    # If you know how to create an empty RecordBatch with a specific number of 
rows, please share

Review Comment:
   ```py
   batch = pa.record_batch({"a": [1, 2, 3, 4]}).select([])
   assert len(batch) == 4
   assert batch.num_columns == 0
   ```



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