pub fn add_parquet(&mut self, info: &CatalogParquetInfo) -> Result<()> {
        let CatalogParquetInfo {
            path,
            file_size_bytes,
            metadata,
        } = info;

        self.transaction
            .as_mut()
            .expect("transaction handle w/o transaction?!")
            .record_action(proto::transaction::action::Action::AddParquet(
                proto::AddParquet {
                    path: Some(unparse_dirs_and_filename(path)),
                    metadata: metadata.to_thrift().context(MetadataEncodingFailed)?,
                    file_size_bytes: *file_size_bytes as u64,
                },
            ));

        Ok(())
    }
/// Add a new parquet file to the catalog.
///
/// If a file with the same path already exists an error will be returned.
Add a new parquet file to the catalog.
If a file with the same path already exists an error will be returned.
Add a new parquet file to the catalog . If a file with the same path already exists an error will be returned .
pub fn add_parquet(&mut self, info: &CatalogParquetInfo) -> Result<()> {
        let CatalogParquetInfo {
            path,
            file_size_bytes,
            metadata,
        } = info;
        self.transaction
            .as_mut()
            .expect("transaction handle w/o transaction?!")
            .record_action(proto::transaction::action::Action::AddParquet(
                proto::AddParquet {
                    path: Some(unparse_dirs_and_filename(path)),
                    metadata: metadata.to_thrift().context(MetadataEncodingFailed)?,
                    file_size_bytes: *file_size_bytes as u64,
                },
            ));
        Ok(())
    }
pub fn add_parquet ( & mut self , info : & CatalogParquetInfo ) -> Result < ( ) > { let CatalogParquetInfo { path , file_size_bytes , metadata , } = info ; self . transaction . as_mut ( ) . expect ( " " ) . record_action ( proto :: transaction :: action :: Action :: AddParquet ( proto :: AddParquet { path : Some ( unparse_dirs_and_filename ( path ) ) , metadata : metadata . to_thrift ( ) . context ( MetadataEncodingFailed ) ? , file_size_bytes : * file_size_bytes as u64 , } , ) ) ; Ok ( ( ) ) }
Add a new parquet file to the catalog.
Add a new parquet file to the catalog .
&mut self
info
&CatalogParquetInfo
&mut self
info
&CatalogParquetInfo