MCPcopy Create free account
hub / github.com/apache/arrow-rs / schema

Method schema

arrow-flight/tests/flight_sql_client_cli.rs:372–387  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

370 }
371
372 fn schema() -> Schema {
373 Schema::new(vec![
374 Field::new("field_string", DataType::Utf8, false),
375 Field::new("field_int", DataType::Int64, true),
376 Field::new(
377 "field_timestamp_nano_notz",
378 DataType::Timestamp(TimeUnit::Nanosecond, None),
379 true,
380 ),
381 Field::new(
382 "field_timestamp_nano_berlin",
383 DataType::Timestamp(TimeUnit::Nanosecond, Some(Arc::from("Europe/Berlin"))),
384 true,
385 ),
386 ])
387 }
388
389 fn fake_result() -> Result<RecordBatch, ArrowError> {
390 let schema = Self::schema();

Callers 12

do_get_catalogsMethod · 0.45
do_get_schemasMethod · 0.45
do_get_tablesMethod · 0.45
do_get_table_typesMethod · 0.45
test_empty_batchFunction · 0.45
test_schema_metadataFunction · 0.45
test_primitive_emptyFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected