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

Function test_partitioned_schema

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

Source from the content-addressed store, hash-verified

1118 }
1119
1120 fn test_partitioned_schema() -> TableSchema {
1121 use crate::spec::{DataType, IntType, Schema, VarCharType};
1122 let schema = Schema::builder()
1123 .column("pt", DataType::VarChar(VarCharType::string_type()))
1124 .column("id", DataType::Int(IntType::new()))
1125 .partition_keys(["pt"])
1126 .build()
1127 .unwrap();
1128 TableSchema::new(0, &schema)
1129 }
1130
1131 fn test_table(file_io: &FileIO, table_path: &str) -> Table {
1132 Table::new(

Callers 1

test_partitioned_tableFunction · 0.70

Calls 3

partition_keysMethod · 0.80
columnMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected