MCPcopy Create free account
hub / github.com/apache/datafusion / csv_values

Function csv_values

datafusion/core/src/datasource/file_format/csv.rs:1331–1337  ·  view source on GitHub ↗
(line_number: usize)

Source from the content-addressed store, hash-verified

1329 }
1330
1331 fn csv_values(line_number: usize) -> (i32, f64, bool, String) {
1332 let int_value = line_number as i32;
1333 let float_value = line_number as f64;
1334 let bool_value = line_number.is_multiple_of(2);
1335 let char_value = format!("{line_number}-string");
1336 (int_value, float_value, bool_value, char_value)
1337 }
1338
1339 fn csv_schema() -> SchemaRef {
1340 Arc::new(Schema::new(vec![

Callers 2

csv_expected_batchFunction · 0.85
csv_lineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…