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

Function validate_non_empty_multi

crates/paimon/src/api/rest_api.rs:66–71  ·  view source on GitHub ↗

Validate that multiple strings are not empty after trimming. # Arguments `values` - Slice of (value, field_name) pairs to validate. # Returns `Ok(())` if all valid, `Err` if any is empty.

(values: &[(&str, &str)])

Source from the content-addressed store, hash-verified

64/// # Returns
65/// `Ok(())` if all valid, `Err` if any is empty.
66fn validate_non_empty_multi(values: &[(&str, &str)]) -> Result<()> {
67 for (value, field_name) in values {
68 validate_non_empty(value, field_name)?;
69 }
70 Ok(())
71}
72
73/// REST API wrapper for Paimon catalog operations.
74///

Callers 10

create_tableMethod · 0.85
get_tableMethod · 0.85
rename_tableMethod · 0.85
drop_tableMethod · 0.85
list_partitionsMethod · 0.85
list_partitions_pagedMethod · 0.85
load_table_tokenMethod · 0.85
commit_snapshotMethod · 0.85
rollback_to_snapshotMethod · 0.85
rollback_to_tagMethod · 0.85

Calls 1

validate_non_emptyFunction · 0.85

Tested by

no test coverage detected