fix: use full DDL of flow in information_schema.flows.flow_definition (#7704)

* fix: use full DDL of flow in information_schema.flows.flow_definition

* fix: add schema name in sink table
This commit is contained in:
Ning Sun
2026-02-12 08:09:40 +08:00
committed by GitHub
parent 77013d9085
commit bcfbd01582
8 changed files with 146 additions and 67 deletions

View File

@@ -1051,7 +1051,10 @@ pub fn show_create_flow(
let stmt = CreateFlow {
flow_name,
sink_table_name: ObjectName::from(vec![Ident::new(&flow_val.sink_table_name().table_name)]),
sink_table_name: ObjectName::from(vec![
Ident::new(&flow_val.sink_table_name().schema_name),
Ident::new(&flow_val.sink_table_name().table_name),
]),
// notice we don't want `OR REPLACE` and `IF NOT EXISTS` in same sql since it's unclear what to do
// so we set `or_replace` to false.
or_replace: false,