MCPcopy Create free account
hub / github.com/apache/paimon-rust / handle_update

Method handle_update

crates/integrations/datafusion/src/sql_context.rs:921–938  ·  view source on GitHub ↗
(&self, update: &Update)

Source from the content-addressed store, hash-verified

919 }
920
921 async fn handle_update(&self, update: &Update) -> DFResult<DataFrame> {
922 let table_name = match &update.table.relation {
923 TableFactor::Table { name, .. } => name.clone(),
924 other => {
925 return Err(DataFusionError::Plan(format!(
926 "Unsupported target table in UPDATE: {other}"
927 )))
928 }
929 };
930 let (catalog, _catalog_name, identifier) = self.resolve_catalog_and_table(&table_name)?;
931
932 let table = catalog
933 .get_table(&identifier)
934 .await
935 .map_err(to_datafusion_error)?;
936
937 crate::update::execute_update(self, update, table).await
938 }
939
940 async fn handle_delete(&self, delete: &Delete) -> DFResult<DataFrame> {
941 let tables = match &delete.from {

Callers 1

sqlMethod · 0.80

Calls 4

execute_updateFunction · 0.85
PlanClass · 0.50
get_tableMethod · 0.45

Tested by

no test coverage detected