File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -589,12 +589,19 @@ pub(crate) fn gen_create_table_plan(
589
589
590
590
let pk_names = bind_sql_pk_names ( & column_defs, bind_table_constraints ( & constraints) ?) ?;
591
591
592
+ let watermark_descs = bind_source_watermark (
593
+ context. session_ctx ( ) ,
594
+ table_name. real_value ( ) ,
595
+ source_watermarks,
596
+ & columns,
597
+ ) ?;
598
+
592
599
gen_create_table_plan_without_source (
593
600
context,
594
601
table_name,
595
602
columns,
596
603
pk_names,
597
- source_watermarks ,
604
+ watermark_descs ,
598
605
col_id_gen. into_version ( ) ,
599
606
props,
600
607
)
@@ -605,20 +612,13 @@ pub(crate) fn gen_create_table_plan_without_source(
605
612
table_name : ObjectName ,
606
613
columns : Vec < ColumnCatalog > ,
607
614
pk_names : Vec < String > ,
608
- source_watermarks : Vec < SourceWatermark > ,
615
+ watermark_descs : Vec < WatermarkDesc > ,
609
616
version : TableVersion ,
610
617
props : CreateTableProps ,
611
618
) -> Result < ( PlanRef , PbTable ) > {
612
619
let ( columns, pk_column_ids, row_id_index) =
613
620
bind_pk_and_row_id_on_relation ( columns, pk_names, true ) ?;
614
621
615
- let watermark_descs: Vec < WatermarkDesc > = bind_source_watermark (
616
- context. session_ctx ( ) ,
617
- table_name. real_value ( ) ,
618
- source_watermarks,
619
- & columns,
620
- ) ?;
621
-
622
622
let session = context. session_ctx ( ) . clone ( ) ;
623
623
624
624
let db_name = session. database ( ) ;
You can’t perform that action at this time.
0 commit comments