MCPcopy Create free account
hub / github.com/apache/paimon-rust / test_schema

Function test_schema

crates/paimon/src/table/table_commit.rs:1110–1118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1108 }
1109
1110 fn test_schema() -> TableSchema {
1111 use crate::spec::{DataType, IntType, Schema, VarCharType};
1112 let schema = Schema::builder()
1113 .column("id", DataType::Int(IntType::new()))
1114 .column("name", DataType::VarChar(VarCharType::string_type()))
1115 .build()
1116 .unwrap();
1117 TableSchema::new(0, &schema)
1118 }
1119
1120 fn test_partitioned_schema() -> TableSchema {
1121 use crate::spec::{DataType, IntType, Schema, VarCharType};

Callers 1

test_tableFunction · 0.70

Calls 2

columnMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected