pub struct CreateTableRequest {
pub name: String,
pub schema_name: String,
pub catalog_name: String,
pub table_type: EnumValue<TableType>,
pub data_source_format: EnumValue<DataSourceFormat>,
pub columns: Vec<Column>,
pub storage_location: Option<String>,
pub comment: Option<String>,
pub properties: HashMap<String, String>,
pub view_definition: Option<String>,
pub view_dependencies: MessageField<DependencyList>,
/* private fields */
}Expand description
Create a table
WARNING: this API is experimental and subject to change.
Fields§
§name: StringName of table, relative to parent schema.
Field 1: name
schema_name: StringName of parent schema relative to its parent catalog.
Field 2: schema_name
catalog_name: StringName of parent catalog.
Field 3: catalog_name
table_type: EnumValue<TableType>Field 4: table_type
data_source_format: EnumValue<DataSourceFormat>Field 5: data_source_format
columns: Vec<Column>The array of Column definitions of the table’s columns.
Field 6: columns
storage_location: Option<String>Storage root URL for external table.
Field 7: storage_location
comment: Option<String>User-provided free-form text description.
Field 8: comment
properties: HashMap<String, String>A map of key-value properties attached to the securable.
Field 9: properties
view_definition: Option<String>Definition text for view-like table types (VIEW, MATERIALIZED_VIEW, STREAMING_TABLE, METRIC_VIEW). The format depends on the table type: SQL for views, YAML for metric views. Required for METRIC_VIEW.
Field 10: view_definition
view_dependencies: MessageField<DependencyList>Tables and functions the view-like table reads. For metric views the server derives this from view_definition and rejects a supplied list that diverges from the derived set (the definition is the single source of truth).
Field 11: view_dependencies
Implementations§
Source§impl CreateTableRequest
impl CreateTableRequest
Sourcepub fn with_storage_location(self, value: impl Into<String>) -> Self
pub fn with_storage_location(self, value: impl Into<String>) -> Self
Sets Self::storage_location to Some(value), consuming and returning self.
Sourcepub fn with_comment(self, value: impl Into<String>) -> Self
pub fn with_comment(self, value: impl Into<String>) -> Self
Sets Self::comment to Some(value), consuming and returning self.
Sourcepub fn with_view_definition(self, value: impl Into<String>) -> Self
pub fn with_view_definition(self, value: impl Into<String>) -> Self
Sets Self::view_definition to Some(value), consuming and returning self.
Trait Implementations§
Source§impl Clone for CreateTableRequest
impl Clone for CreateTableRequest
Source§fn clone(&self) -> CreateTableRequest
fn clone(&self) -> CreateTableRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateTableRequest
impl Debug for CreateTableRequest
Source§impl Default for CreateTableRequest
impl Default for CreateTableRequest
Source§fn default() -> CreateTableRequest
fn default() -> CreateTableRequest
Source§impl DefaultInstance for CreateTableRequest
impl DefaultInstance for CreateTableRequest
Source§fn default_instance() -> &'static Self
fn default_instance() -> &'static Self
Source§impl<'de> Deserialize<'de> for CreateTableRequestwhere
CreateTableRequest: Default,
impl<'de> Deserialize<'de> for CreateTableRequestwhere
CreateTableRequest: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl ExtensionSet for CreateTableRequest
impl ExtensionSet for CreateTableRequest
Source§const PROTO_FQN: &'static str = "unitycatalog.tables.v1.CreateTableRequest"
const PROTO_FQN: &'static str = "unitycatalog.tables.v1.CreateTableRequest"
"google.protobuf.FieldOptions". Read moreSource§fn unknown_fields(&self) -> &UnknownFields
fn unknown_fields(&self) -> &UnknownFields
Source§fn unknown_fields_mut(&mut self) -> &mut UnknownFields
fn unknown_fields_mut(&mut self) -> &mut UnknownFields
Source§fn extension<C>(&self, ext: &Extension<C>) -> <C as ExtensionCodec>::Outputwhere
C: ExtensionCodec,
fn extension<C>(&self, ext: &Extension<C>) -> <C as ExtensionCodec>::Outputwhere
C: ExtensionCodec,
Source§fn set_extension<C>(
&mut self,
ext: &Extension<C>,
value: <C as ExtensionCodec>::Value,
)where
C: ExtensionCodec,
fn set_extension<C>(
&mut self,
ext: &Extension<C>,
value: <C as ExtensionCodec>::Value,
)where
C: ExtensionCodec,
Source§fn has_extension<C>(&self, ext: &Extension<C>) -> boolwhere
C: ExtensionCodec,
fn has_extension<C>(&self, ext: &Extension<C>) -> boolwhere
C: ExtensionCodec,
true if any record at the extension’s field number is present. Read moreSource§fn clear_extension<C>(&mut self, ext: &Extension<C>)where
C: ExtensionCodec,
fn clear_extension<C>(&mut self, ext: &Extension<C>)where
C: ExtensionCodec,
Source§fn extension_or_default<C>(
&self,
ext: &Extension<C>,
) -> <C as ExtensionCodec>::Valuewhere
C: ExtensionCodec<Output = Option<<C as ExtensionCodec>::Value>>,
<C as ExtensionCodec>::Value: Default,
fn extension_or_default<C>(
&self,
ext: &Extension<C>,
) -> <C as ExtensionCodec>::Valuewhere
C: ExtensionCodec<Output = Option<<C as ExtensionCodec>::Value>>,
<C as ExtensionCodec>::Value: Default,
[default = ...]
value if absent, or the type’s Default if no proto default was declared. Read moreSource§impl HasMessageView for CreateTableRequest
impl HasMessageView for CreateTableRequest
Source§type View<'a> = CreateTableRequestView<'a>
type View<'a> = CreateTableRequestView<'a>
Self, borrowing from a buffer with lifetime
'a.Source§type ViewHandle = CreateTableRequestOwnedView
type ViewHandle = CreateTableRequestOwnedView
'static owned-view handle for Self
(FooOwnedView).Source§fn decode_view_handle(bytes: Bytes) -> Result<Self::ViewHandle, DecodeError>
fn decode_view_handle(bytes: Bytes) -> Result<Self::ViewHandle, DecodeError>
Source§fn decode_view_handle_with_options(
bytes: Bytes,
opts: &DecodeOptions,
) -> Result<Self::ViewHandle, DecodeError>
fn decode_view_handle_with_options( bytes: Bytes, opts: &DecodeOptions, ) -> Result<Self::ViewHandle, DecodeError>
Source§impl Message for CreateTableRequest
impl Message for CreateTableRequest
Source§fn compute_size(&self, __cache: &mut SizeCache) -> u32
fn compute_size(&self, __cache: &mut SizeCache) -> u32
Returns the total encoded size in bytes.
The result is a u32; the protobuf specification requires all
messages to fit within 2 GiB (2,147,483,647 bytes), so a
compliant message will never overflow this type.
Source§fn write_to(&self, __cache: &mut SizeCache, buf: &mut impl BufMut)
fn write_to(&self, __cache: &mut SizeCache, buf: &mut impl BufMut)
cache (populated by a prior
compute_size call on the same cache). Read moreSource§fn merge_field(
&mut self,
tag: Tag,
buf: &mut impl Buf,
depth: u32,
) -> Result<(), DecodeError>
fn merge_field( &mut self, tag: Tag, buf: &mut impl Buf, depth: u32, ) -> Result<(), DecodeError>
buf. Read moreSource§fn encode(&self, buf: &mut impl BufMut)
fn encode(&self, buf: &mut impl BufMut)
Source§fn encode_with_cache(&self, cache: &mut SizeCache, buf: &mut impl BufMut)
fn encode_with_cache(&self, cache: &mut SizeCache, buf: &mut impl BufMut)
SizeCache, for
reuse across many encodes in a hot loop. Clears the cache first.Source§fn encoded_len(&self) -> u32
fn encoded_len(&self) -> u32
Source§fn encode_length_delimited(&self, buf: &mut impl BufMut)
fn encode_length_delimited(&self, buf: &mut impl BufMut)
Source§fn encode_to_bytes(&self) -> Bytes
fn encode_to_bytes(&self) -> Bytes
bytes::Bytes. Read moreSource§fn decode(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
fn decode(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
Source§fn decode_from_slice(data: &[u8]) -> Result<Self, DecodeError>where
Self: Sized,
fn decode_from_slice(data: &[u8]) -> Result<Self, DecodeError>where
Self: Sized,
Source§fn decode_length_delimited(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
fn decode_length_delimited(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
Source§fn merge_to_limit(
&mut self,
buf: &mut impl Buf,
depth: u32,
limit: usize,
) -> Result<(), DecodeError>
fn merge_to_limit( &mut self, buf: &mut impl Buf, depth: u32, limit: usize, ) -> Result<(), DecodeError>
Source§fn merge_group(
&mut self,
buf: &mut impl Buf,
depth: u32,
field_number: u32,
) -> Result<(), DecodeError>
fn merge_group( &mut self, buf: &mut impl Buf, depth: u32, field_number: u32, ) -> Result<(), DecodeError>
buf, reading fields until an
EndGroup tag with the given field_number is encountered. Read moreSource§fn merge(&mut self, buf: &mut impl Buf, depth: u32) -> Result<(), DecodeError>
fn merge(&mut self, buf: &mut impl Buf, depth: u32) -> Result<(), DecodeError>
Source§fn merge_from_slice(&mut self, data: &[u8]) -> Result<(), DecodeError>
fn merge_from_slice(&mut self, data: &[u8]) -> Result<(), DecodeError>
Source§fn merge_length_delimited(
&mut self,
buf: &mut impl Buf,
depth: u32,
) -> Result<(), DecodeError>
fn merge_length_delimited( &mut self, buf: &mut impl Buf, depth: u32, ) -> Result<(), DecodeError>
Source§impl MessageName for CreateTableRequest
impl MessageName for CreateTableRequest
Source§const PACKAGE: &'static str = "unitycatalog.tables.v1"
const PACKAGE: &'static str = "unitycatalog.tables.v1"
Source§const NAME: &'static str = "CreateTableRequest"
const NAME: &'static str = "CreateTableRequest"
. between nesting levels. Read more