Struct datafusion_expr::logical_plan::DescribeTable
source · pub struct DescribeTable {
pub schema: Arc<Schema>,
pub output_schema: DFSchemaRef,
}Expand description
Describe the schema of table
§Example output:
> describe traces;
+--------------------+-----------------------------+-------------+
| column_name | data_type | is_nullable |
+--------------------+-----------------------------+-------------+
| attributes | Utf8 | YES |
| duration_nano | Int64 | YES |
| end_time_unix_nano | Int64 | YES |
| service.name | Dictionary(Int32, Utf8) | YES |
| span.kind | Utf8 | YES |
| span.name | Utf8 | YES |
| span_id | Dictionary(Int32, Utf8) | YES |
| time | Timestamp(Nanosecond, None) | NO |
| trace_id | Dictionary(Int32, Utf8) | YES |
| otel.status_code | Utf8 | YES |
| parent_span_id | Utf8 | YES |
+--------------------+-----------------------------+-------------+
Fields§
§schema: Arc<Schema>Table schema
output_schema: DFSchemaRefschema of describe table output
Trait Implementations§
source§impl Clone for DescribeTable
impl Clone for DescribeTable
source§fn clone(&self) -> DescribeTable
fn clone(&self) -> DescribeTable
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Hash for DescribeTable
impl Hash for DescribeTable
source§impl PartialEq for DescribeTable
impl PartialEq for DescribeTable
source§fn eq(&self, other: &DescribeTable) -> bool
fn eq(&self, other: &DescribeTable) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for DescribeTable
impl StructuralPartialEq for DescribeTable
Auto Trait Implementations§
impl Freeze for DescribeTable
impl RefUnwindSafe for DescribeTable
impl Send for DescribeTable
impl Sync for DescribeTable
impl Unpin for DescribeTable
impl UnwindSafe for DescribeTable
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.