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

Method get_type

src/repr/src/relation.rs:1314–1317  ·  view source on GitHub ↗

Gets the [`SqlColumnType`] of the column at `idx`. # Panics Panics if no column exists at `idx`.

(&self, idx: &ColumnIndex)

Source from the content-addressed store, hash-verified

1312 ///
1313 /// Panics if no column exists at `idx`.
1314 pub fn get_type(&self, idx: &ColumnIndex) -> &SqlColumnType {
1315 let typ_idx = self.metadata.get(idx).expect("should exist").typ_idx;
1316 &self.typ.column_types[typ_idx]
1317 }
1318
1319 /// Gets the name of the `i`th column if that column name is unambiguous.
1320 ///

Callers 3

plan_copy_from_rowsFunction · 0.45
col_jsonMethod · 0.45
col_valuesMethod · 0.45

Calls 2

expectMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected