MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / num_columns

Method num_columns

src/sql/src/plan.rs:1644–1649  ·  view source on GitHub ↗

Returns the number of columns needed to represent our headers.

(&self)

Source from the content-addressed store, hash-verified

1642impl WebhookHeaders {
1643 /// Returns the number of columns needed to represent our headers.
1644 pub fn num_columns(&self) -> usize {
1645 let header_column = self.header_column.as_ref().map(|_| 1).unwrap_or(0);
1646 let mapped_headers = self.mapped_headers.len();
1647
1648 header_column + mapped_headers
1649 }
1650}
1651
1652#[derive(Clone, Debug, Default, PartialEq, Eq, Serialize)]

Callers 3

decode_parquet_file_kvtdFunction · 0.80
resolveMethod · 0.80
pack_headerFunction · 0.80

Calls 3

mapMethod · 0.45
as_refMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected