Skip to content

Apache DataFusion SQL Query Engine

docs: Remove extra commas in count results (#25552)

Nuno Fariaaf86b375d1a5
diff --git a/datafusion/core/src/datasource/memory_test.rs b/datafusion/core/src/datasource/memory_test.rs
index ff464ec3d3..c7b8e06b34 100644
--- a/datafusion/core/src/datasource/memory_test.rs
+++ b/datafusion/core/src/datasource/memory_test.rs
@@ -377,11 +377,11 @@ mod tests {
/// Returns the value of results. For example, returns 6 given the following
///
/// ```text
- /// +-------+,
- /// | count |,
- /// +-------+,
- /// | 6 |,
- /// +-------+,
+ /// +-------+
+ /// | count |
+ /// +-------+
+ /// | 6 |
+ /// +-------+
/// ```
fn extract_count(res: Vec<RecordBatch>) -> u64 {
assert_eq!(res.len(), 1, "expected one batch, got {}", res.len());
diff --git a/datafusion/datasource/src/sink.rs b/datafusion/datasource/src/sink.rs
index 1557e41531..6851c9d7f4 100644
--- a/datafusion/datasource/src/sink.rs
+++ b/datafusion/datasource/src/sink.rs
@@ -385,11 +385,11 @@ impl ExecutionPlan for DataSinkExec {
/// Create a output record batch with a count
///
/// ```text
-/// +-------+,
-/// | count |,
-/// +-------+,
-/// | 6 |,
-/// +-------+,
+/// +-------+
+/// | count |
+/// +-------+
+/// | 6 |
+/// +-------+
/// ```
fn make_count_batch(count: u64) -> RecordBatch {
let array = Arc::new(UInt64Array::from(vec![count])) as ArrayRef;
diff --git a/datafusion/session/src/table.rs b/datafusion/session/src/table.rs
index 112d281741..999ec16b89 100644
--- a/datafusion/session/src/table.rs
+++ b/datafusion/session/src/table.rs
@@ -335,11 +335,11 @@ pub trait TableProvider: Any + Debug + Sync + Send {
/// column called "count" such as the following
///
/// ```text
- /// +-------+,
- /// | count |,
- /// +-------+,
- /// | 6 |,
- /// +-------+,
+ /// +-------+
+ /// | count |
+ /// +-------+
+ /// | 6 |
+ /// +-------+
/// ```
///
/// # See Also