Repository navigation
Conversation
… fails --start-cursor/--end-cursor on a loader SQLLoad runs reached it as a timestamp whatever the loader's cursor type. For a DATE cursor SQLLoad blocked the table, and SQLBuild read the run as a success with no rows, so `OK rows=0` and nothing loaded. - A loader's window now reaches SQLLoad in the type its source declares for the cursor column, which SQLLoad checks against that column: dates for a DATE cursor, and timestamps, integers or numbers for those cursors, so a DECIMAL cursor's window loads too. - A bound that doesn't fit a date, timestamp or integer cursor (a time of day for a DATE cursor, integers for a timestamp cursor, timestamps for an integer cursor), or any bound on a text cursor, fails the run before anything loads, naming the loader and its cursor type. - A table SQLLoad plans but doesn't load, such as one it blocks, fails with SQLLoad's reason, naming the table. This applies to `load:` projects as well as loaders. BREAKING CHANGE: a load whose table SQLLoad blocked used to report success with zero rows and now fails with the reason, and window bounds that don't fit a loader's declared cursor type now fail the run before it loads. To upgrade, give --start-cursor/--end-cursor in the cursor's type (dates for a DATE cursor) and fix what the reported reason names.
kvlonge
enabled auto-merge
November 30, 2026 12:57
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 30, 2026
A source column declared TIMESTAMP on ClickHouse was handed to SQLLoad
pinned as native("TIMESTAMP"). ClickHouse stores it as DateTime and
reports that back, so SQLLoad saw the column drift on the next load and
blocked the table. Declared types are now pinned under ClickHouse's own
name for them, as toTypeName prints it. ClickHouse's DateTime with a
precision is DateTime64 of that precision, and plain DateTime at
precision 0.
A cursor SQLLoad keeps as a warehouse-native type reached the loader as
text, since SQLLoad has no portable kind to read it in. It is now read
as an untyped cursor is on a first load, so ISO timestamps, dates and
integers arrive as such.
kvlonge
enabled auto-merge
November 30, 2026 15:02
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
--start-cursor/--end-cursoron a@loaderthat SQLLoad runs reached SQLLoad as a timestamp whatever the cursor type. For a DATE cursor SQLLoad blocked the table, and SQLBuild read that as success:OK rows=0, exit 0. On ClickHouse aTIMESTAMPsource column also blocked its table on the second load, since ClickHouse reports it asDateTime.Changes
load:projects too.TIMESTAMPasDateTime,TIMESTAMP(3)asDateTime64(3)), and a cursor kept as a native type reaches the loader typed instead of as text.sqb loadflags.BREAKING CHANGE: a load whose table SQLLoad blocked now fails with the reason instead of reporting zero rows, and window bounds that don't fit a loader's cursor type fail before loading. Give
--start-cursor/--end-cursorin the cursor's type.Verification
sqbagainst the pinned SQLLoad: DATE, timestamp, integer and DECIMAL windows, four refusals (also for an intermediate loader), a blocked table failing by name, and a DATE window into PostgreSQL. On main the DATE windows, refusals and blocked case fail.TIMESTAMPcursor; fails on main.make check-ci.