File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1423,13 +1423,13 @@ where
1423
1423
}
1424
1424
} ;
1425
1425
1426
- let max_rows: u64 = xtype
1426
+ let max_rows = xtype
1427
1427
. schema
1428
1428
. context
1429
1429
. schemas
1430
1430
. values ( )
1431
1431
. find ( |s| s. oid == xtype. table . schema_oid )
1432
- . map ( |x| x . directives . max_rows )
1432
+ . map ( |schema| xtype . table . max_rows ( schema ) )
1433
1433
. unwrap_or ( 30 ) ;
1434
1434
1435
1435
let before: Option < Cursor > = read_argument_cursor (
Original file line number Diff line number Diff line change @@ -591,7 +591,7 @@ impl Table {
591
591
/// Get the effective max_rows value for this table.
592
592
/// If table-specific max_rows is set, use that.
593
593
/// Otherwise, fall back to schema-level max_rows.
594
- /// If neither is set, use the global default.
594
+ /// If neither is set, use the global default(set in load_sql_context.sql)
595
595
pub fn max_rows ( & self , schema : & Schema ) -> u64 {
596
596
self . directives . max_rows . unwrap_or ( schema. directives . max_rows )
597
597
}
You can’t perform that action at this time.
0 commit comments