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

Function test_pk_schema

crates/paimon/src/table/table_write.rs:1378–1387  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1376 // -----------------------------------------------------------------------
1377
1378 fn test_pk_schema() -> TableSchema {
1379 let schema = Schema::builder()
1380 .column("id", DataType::Int(IntType::new()))
1381 .column("value", DataType::Int(IntType::new()))
1382 .primary_key(["id"])
1383 .option("bucket", "1")
1384 .build()
1385 .unwrap();
1386 TableSchema::new(0, &schema)
1387 }
1388
1389 fn test_pk_table(file_io: &FileIO, table_path: &str) -> Table {
1390 Table::new(

Callers 1

test_pk_tableFunction · 0.85

Calls 4

optionMethod · 0.80
primary_keyMethod · 0.80
columnMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected