MCPcopy Create free account
hub / github.com/apache/datafusion / describe_boolean_binary

Function describe_boolean_binary

datafusion/core/tests/dataframe/describe.rs:54–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52
53#[tokio::test]
54async fn describe_boolean_binary() -> Result<()> {
55 let ctx = parquet_context().await;
56
57 //add test case for only boolean boolean/binary column
58 let result = ctx
59 .sql("select 'a' as a,true as b")
60 .await?
61 .describe()
62 .await?
63 .collect()
64 .await?;
65
66 assert_snapshot!(
67 batches_to_string(&result),
68 @r"
69 +------------+------+------+
70 | describe | a | b |
71 +------------+------+------+
72 | count | 1 | 1 |
73 | null_count | 0 | 0 |
74 | mean | null | null |
75 | std | null | null |
76 | min | a | null |
77 | max | a | null |
78 | median | null | null |
79 +------------+------+------+
80 ");
81 Ok(())
82}
83
84#[tokio::test]
85async fn describe_null() -> Result<()> {

Callers

nothing calls this directly

Calls 4

parquet_contextFunction · 0.85
collectMethod · 0.80
describeMethod · 0.80
sqlMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…