Skip to content

Commit 2be18aa

Browse files
committed
fix(tsql): carry the bucket-width floor into child printer contexts
createChildContext forwarded every other context-carried option, including fillGaps, but not minBucketSeconds, so a nested query part would have computed an unfloored bucket interval. No caller reaches this today, so it is latent rather than broken, but it is the same omission that would have been a live bug for fillGaps.
1 parent 461cebf commit 2be18aa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

internal-packages/tsql/src/query/printer_context.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,8 @@ export class PrinterContext {
241241
this.fieldMappings,
242242
this.enforcedWhereClause,
243243
this.timeRange,
244-
this.fillGaps
244+
this.fillGaps,
245+
this.minBucketSeconds
245246
);
246247
// Share the same values map so parameters are unified
247248
child.values = this.values;

0 commit comments

Comments
 (0)